Answers.Body: <p>This is a great question.  Sorry I only have 1 reputation point, so I can't upvote.  The optimal solution likely has to be empirically determined.  I don't think it can be determined a priori.  It would also depend on how you define as optimal (high sensitivity, high specificity, high AUC, or high accuracy).</p>
  <p>One approach would be to develop a segmentation model and any image with &quot;tumor pixels&quot; would be classified at the image level as &quot;tumor&quot;.  I don't know for sure (and no one really knows for sure), but I think this method would yield higher sensitivity (but possibly lower specificity) than a straight image classifier.  Which one is likely to be better depends on a lot of things, including how much training data you have, the quality of annotations, and the quality of images.</p>
  <p>To answer your second question, yes there is.  There are probably several ways to integrate the different levels of information.  One simple way is to develop a model with weak labels and a model with strong labels and then do a probability fusion, similar to how it is done for multimodal data (see <a href="https://www.nature.com/articles/s41746-020-00341-z" rel="nofollow noreferrer">article</a>).</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-10-20T01:01:43.273Z
Answers.LastActivityDate: 2022-10-20T01:10:18.320Z
Answers.LastEditDate: 2022-10-20T01:10:18.320Z
Answers.UserDisplayName: Snehal Patel
Body: <p>I have a dataset where I have the labels cancer &amp; non-cancer, and I also have localized pixel-level annotation masks of important regions/features in the images.</p>
  <p>In a binary classification task, how do I optimize my deep learning model to focus on the annotated regions of the image and ignore or pay less attention to the regions outside the annotations?</p>
  <p>Additionally, I have a set of images with only image level labels. Is there a way to use both localized labels (strong labels) and image level labels (weak labels) in the same model?</p>
  
Tags: <deep-learning><convolutional-neural-networks><computer-vision>
Title: How to use strong labels in image classification?
UserDisplayName: Tirtha
ThreadText: # How to use strong labels in image classification?
  
  (Asked by: username_0 on 2022-08-21)
  
  I have a dataset where I have the labels cancer & non-cancer, and I also have localized pixel-level annotation masks of important regions/features in the images.
  
  In a binary classification task, how do I optimize my deep learning model to focus on the annotated regions of the image and ignore or pay less attention to the regions outside the annotations?
  
  Additionally, I have a set of images with only image level labels. Is there a way to use both localized labels (strong labels) and image level labels (weak labels) in the same model?
  
  **Tags:** deep-learning, convolutional-neural-networks, computer-vision
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-10-20. Score: 1
  
  This is a great question. Sorry I only have 1 reputation point, so I can't upvote. The optimal solution likely has to be empirically determined. I don't think it can be determined a priori. It would also depend on how you define as optimal (high sensitivity, high specificity, high AUC, or high accuracy).
  
  One approach would be to develop a segmentation model and any image with "tumor pixels" would be classified at the image level as "tumor". I don't know for sure (and no one really knows for sure), but I think this method would yield higher sensitivity (but possibly lower specificity) than a straight image classifier. Which one is likely to be better depends on a lot of things, including how much training data you have, the quality of annotations, and the quality of images.
  
  To answer your second question, yes there is. There are probably several ways to integrate the different levels of information. One simple way is to develop a model with weak labels and a model with strong labels and then do a probability fusion, similar to how it is done for multimodal data (see [article](https://www.nature.com/articles/s41746-020-00341-z)).
  
  
  ---
  
  