Answers.Body: <p>It exists networks built to learn how to differentiate between classes even if there are looking quite the same. Usually, a <a href="https://towardsdatascience.com/siamese-network-triplet-loss-b4ca82c1aec8" rel="nofollow noreferrer">triplet loss</a> is used in those networks to learn the difference between the target, a positive sample, and a negative one.</p>
  
  <p>For example, those networks are used to perform identity check with face images, the algorithm learns the differences between different people instead of recognizing people.</p>
  
  <p>Here are some keywords that are possibly relevant: discriminative function, triplet loss, siamese network, one-shot learning.</p>
  
  <p>Theses papers are interesting:</p>
  
  <ul>
  <li><a href="http://arxiv.org/abs/1503.03832" rel="nofollow noreferrer">FaceNet: A Unified Embedding for Face Recognition and Clustering</a></li>
  <li><a href="http://yann.lecun.com/exdb/publis/pdf/hadsell-chopra-lecun-06.pdf" rel="nofollow noreferrer">Dimensionality Reduction by Learning an Invariant Mapping</a></li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-15T13:31:29.480Z
Answers.LastActivityDate: 2020-05-30T12:46:59.213Z
Answers.LastEditDate: 2020-05-30T12:46:59.213Z
Answers.UserDisplayName: Louis Lac
Answers.Body: <p><a href="https://arxiv.org/pdf/1703.00767.pdf" rel="nofollow noreferrer">Attentive Recurrent Comparators</a> (2017) by Pranav Shyam et al. is an interesting paper that helps to answer the question you're wondering, along with a <a href="https://medium.com/datadriveninvestor/spot-the-difference-deep-learning-edition-f1a891342e13" rel="nofollow noreferrer">blog post</a> that helps to describe it in easier terms.</p>
  
  <p>The way it's implemented is actually rather intuitive. If you have ever played a "what is different" game with two images usually what you'd do is look back and forth between the images to see what the difference is.  The network that the researchers created does just that!  It looks at one image and then remembers important features about that images and looks at the other image and goes back and forth.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-15T03:28:33.557Z
Answers.LastActivityDate: 2020-05-30T12:32:23.490Z
Answers.LastEditDate: 2020-05-30T12:32:23.490Z
Answers.UserDisplayName: juicedatom
Body: <p>I was wondering if machine learning algorithms (CNNs?) can be used/trained to differentiate between small differences in details between images (such as slight differences in shades of red or other colours, or the presence of small objects between otherwise very similar images?)? And then classify images based on these differences? If this is a difficult endeavour with our current machine learning algorithms, how can it be solved? Would using more data (more images) help?</p>
  
  <p>I would also appreciate it if people could please provide references to research that has focused on this, if possible. </p>
  
  <p>I've only just begun learning machine learning, and this is something that I've been wondering from my research.</p>
  
Tags: <machine-learning><convolutional-neural-networks><image-recognition><classification>
Title: Can machine learning algorithms be used to differentiate between small differences in details between images?
UserDisplayName: The Pointer
ThreadText: # Can machine learning algorithms be used to differentiate between small differences in details between images?
  
  (Asked by: username_0 on 2019-01-14)
  
  I was wondering if machine learning algorithms (CNNs?) can be used/trained to differentiate between small differences in details between images (such as slight differences in shades of red or other colours, or the presence of small objects between otherwise very similar images?)? And then classify images based on these differences? If this is a difficult endeavour with our current machine learning algorithms, how can it be solved? Would using more data (more images) help?
  
  I would also appreciate it if people could please provide references to research that has focused on this, if possible.
  
  I've only just begun learning machine learning, and this is something that I've been wondering from my research.
  
  **Tags:** machine-learning, convolutional-neural-networks, image-recognition, classification
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2019-01-15. Score: 5 | Accepted answer
  
  [Attentive Recurrent Comparators](https://arxiv.org/pdf/1703.00767.pdf) (2017) by Pranav Shyam et al. is an interesting paper that helps to answer the question you're wondering, along with a [blog post](https://medium.com/datadriveninvestor/spot-the-difference-deep-learning-edition-f1a891342e13) that helps to describe it in easier terms.
  
  The way it's implemented is actually rather intuitive. If you have ever played a "what is different" game with two images usually what you'd do is look back and forth between the images to see what the difference is. The network that the researchers created does just that! It looks at one image and then remembers important features about that images and looks at the other image and goes back and forth.
  
  
  ---
  
  ### Answer by username_1 on 2019-01-15. Score: 3
  
  It exists networks built to learn how to differentiate between classes even if there are looking quite the same. Usually, a [triplet loss](https://towardsdatascience.com/siamese-network-triplet-loss-b4ca82c1aec8) is used in those networks to learn the difference between the target, a positive sample, and a negative one.
  
  For example, those networks are used to perform identity check with face images, the algorithm learns the differences between different people instead of recognizing people.
  
  Here are some keywords that are possibly relevant: discriminative function, triplet loss, siamese network, one-shot learning.
  
  Theses papers are interesting:
  
  * [FaceNet: A Unified Embedding for Face Recognition and Clustering](http://arxiv.org/abs/1503.03832)
  * [Dimensionality Reduction by Learning an Invariant Mapping](http://yann.lecun.com/exdb/publis/pdf/hadsell-chopra-lecun-06.pdf)
  
  
  ---
  
  