Back to results
US 2024/0005650 A1Published application
Representation learning
AssigneeBayer Aktiengesellschaft
InventorsJonas DIPPEL, Steffen VOGLER, Johannes HÖHNE
Life of this patent
Estimating the term…
Abstract
Systems, methods, and computer programs disclosed herein relate to training of machine learning models on the basis of image training data with a limited number of labeled images.
Claims17
1:
- A computer-implemented method comprising:
- receiving a plurality of unlabeled images;
- generating an augmented training data set from the plurality of unlabeled images, wherein the augmented training data set comprises a first set of augmented images and a second set of augmented images, wherein the first set of augmented images is generated from the unlabeled images by applying one or more spatial augmentation techniques to the unlabeled images, wherein the second set of augmented images is generated from the images of the first set of augmented images by applying one or more masking augmentation techniques to the images of the first set of augmented images;
- training a first machine learning model on the first set of augmented images and the second set of augmented images, wherein the first machine learning model comprises an encoder-decoder structure with a contrastive output at the end of the encoder, and a reconstruction output at the end of the decoder, wherein the first machine learning model is trained:
- to output, for each image of the second set of augmented images, the respective image of the first set of augmented images via the reconstruction output, and
- to discriminate augmented images which originate from the same unlabeled image from augmented images which do not originate from the same unlabeled image via the contrastive output.
3 more elements
2:
- The method of claim 1, wherein the unlabeled images are medical images.
3:
- The method of claim 1, wherein the unlabeled images are photos of plants or parts thereof.
4:
- The method of claim 1, wherein one or more of the following techniques are applied to the unlabeled images:
- rotation, elastic deformation, flipping, scaling, stretching, shearing, cropping, resizing and/or combinations thereof.
5:
- The method of claim 1, wherein one or more of the following techniques are applied to the images of the first set of augmented images:
- inner cutouts, outer cutouts, erasing and/or combinations thereof.
6:
- The method of claim 1, wherein
- training the first machine learning model comprises:
- inputting a first image of the second set of augmented images into the first machine learning model;
- receiving, via the reconstruction output of the first machine learning model, a first reconstructed image;
- comparing the first reconstructed image with the image of the first set of augmented images from which the first image of the second set of augmented images was generated, wherein comparing comprises calculating a reconstruction loss using a reconstruction loss function, wherein the reconstruction loss is an objective function for a reconstruction task performed by the first machine learning model;
- inputting a second image of the second set of augmented images into the first machine learning model;
- receiving, via the contrastive output, information indicating whether the first image of the second set of augmented images and the second image of the second set of augmented images originate from the same unlabeled image or from different unlabeled images;
- calculating a contrastive loss using a contrastive loss function, wherein the contrastive loss function is an objective function for a contrasting task performed by the first machine learning model;
- calculating a combined loss from the reconstruction loss and the contrastive loss;
- and
- modifying parameters of the first machine learning model to minimize the combined loss.
8 more elements
7:
- The method of claim 1, wherein a neural network projection head is introduced at the end of the encoder, wherein the projection head maps the representations to a space where contrastive loss is applied, wherein the projection head performs a learnable nonlinear transformation.
8:
- The method of claim 1, further comprising:
- generating a second machine learning model from the first machine learning model, wherein generating the second machine learning model comprises creating a classifier based on the encoder from the encoder-decoder structure;
- and
- training the classifier on a training set comprising labeled images.
1 more element
9:
- The method of claim 1, further comprising:
- generating a second machine learning model from the first machine learning model, wherein generating the second machine learning model comprises extracting the encoder-decoder structure from the first machine learning model;
- and
- training the encoder-decoder structure based on labeled images to segment images.
1 more element
10:
- The method of claim 1, comprising generating a pre-trained neural network by executing the steps of receiving the plurality of unlabeled images, generating the augmented training data set from the plurality of unlabeled images, and training the first machine learning model on the first set of augmented images and the second set of augmented images generate a pre-trained neural network.
11:
- The method of claim 8, comprising generating a trained neural network by executing the steps of receiving the plurality of unlabeled images, generating the augmented training data set from the plurality of unlabeled images, training the first machine learning model on the first set of augmented images and the second set of augmented images generate a pre-trained neural network, generating the second machine learning model from the first machine learning model, and training the classifier on the training set comprising labeled images.
12:
- The method of claim 10, comprising generating a classifier using the pre-trained neural network, wherein generating the classifier comprises extracting the encoder from the encoder-decoder structure of the first machine model training and training the extracted encoder on a set comprising labeled images.
13:
- The method of claim 11, comprising classifying and/or segmenting images using the trained neural network, in particular classifying and/or segmenting medical images or photos of diseased plants or pest-infected plants or parts thereof.
14:
- A computer system comprising:
- a processor;
- and
- a memory storing an application program configured to perform, when executed by the processor, an operation, the operation comprising:
- receiving a plurality of unlabeled images;
- generating an augmented training data set from the plurality of unlabeled images, wherein the augmented training data set comprises a first set of augmented images and a second set of augmented images, wherein the first set of augmented images is generated from the unlabeled images by applying one or more spatial augmentation techniques to the unlabeled images, wherein the second set of augmented images is generated from the images of the first set of augmented images by applying one or more masking augmentation techniques to the images of the first set of augmented images;
- training a machine learning model on the first set of augmented images and the second set of augmented images, wherein the machine learning model comprises an encoder-decoder structure with a contrastive output at the end of the encoder, and a reconstruction output at the end of the decoder, wherein the machine learning model is trained:
- to output for each image of the second set of augmented images the respective image of the first set of augmented images via the reconstruction output, and
- to discriminate augmented images which originate from the same unlabeled image from augmented images which do not originate from the same unlabeled image via the contrastive output.
6 more elements
15:
- A non-transitory computer readable medium storing software instructions that, when executed by a processor of a computer system, cause the computer system to:
- receive a plurality of unlabeled images,
- generate an augmented training data set from the plurality of unlabeled images, wherein the augmented training data set comprises a first set of augmented images and a second set of augmented images, wherein the first set of augmented images is generated from the unlabeled images by applying one or more spatial augmentation technique to the unlabeled images, wherein the second set of augmented images is generated from the images of the first set of augmented images by applying one or more masking augmentation technique to the images of the first set of augmented images,
- train a machine learning model on the first set of augmented images and the second set of augmented images, wherein the machine learning model comprises an encoder-decoder structure with a contrastive output at the end of the encoder, and a reconstruction output at the end of the decoder, wherein the machine learning model is trained;
- to output, for each image of the second set of augmented images, the respective image of the first set of augmented images via the reconstruction output, and
- to discriminate augmented images which originate from the same unlabeled image from augmented images which do not originate from the same unlabeled image via the contrastive output.
3 more elements
16:
- The method of claim 9, comprising generating a trained neural network by executing the steps of receiving the plurality of unlabeled images, generating the augmented training data set from the plurality of unlabeled images, training the first machine learning model on the first set of augmented images and the second set of augmented images generate a pre-trained neural network, generating the second machine learning model from the first machine learning model, and training the encoder-decoder structure based on labeled images to segment images.
17:
- The method of claim 16, comprising classifying and/or segmenting images using the trained neural network, in particular classifying and/or segmenting medical images or photos of diseased plants or pest-infected plants or parts thereof.