1. A computer-implemented method performed at least in part by one or more processors executing computer-executable instructions that are stored in memory, the computer-implemented method comprising: determining an object associated with a previously submitted query; gathering positive training data and negative training data for the object; training a multi-instance learning (MIL) model associated with the object to identify a common pattern of the object using the positive training data and the negative training data; receiving, from a user device and after the training of the MIL model, a query that is associated with the object; generating query results comprising images associated with the object based at least in part on the receiving of the query; segmenting the images into regions and extracting features from the regions; comparing the extracted features from the regions to the common pattern of the object from the MIL model to identify images from the query results that include the common pattern of the object; ranking the images that include the common pattern of the object based at least in part on a quality of each of the regions comprising the common pattern of the object; and providing the query results comprising the images to the user device based at least in part on the ranking of the images.
1. A computer-implemented method performed at least in part by one or more processors executing computer-executable instructions that are stored in memory, the computer-implemented method comprising: determining an object associated with a previously submitted query; gathering positive training data and negative training data for the object; training a multi-instance learning (MIL) model associated with the object to identify a common pattern of the object using the positive training data and the negative training data; receiving, from a user device and after the training of the MIL model, a query that is associated with the object; generating query results comprising images associated with the object based at least in part on the receiving of the query; segmenting the images into regions and extracting features from the regions; comparing the extracted features from the regions to the common pattern of the object from the MIL model to identify images from the query results that include the common pattern of the object; ranking the images that include the common pattern of the object based at least in part on a quality of each of the regions comprising the common pattern of the object; and providing the query results comprising the images to the user device based at least in part on the ranking of the images. 2. The computer-implemented method of claim 1 , wherein the quality comprises a calculated size of a region comprising the common pattern.