Skip to content

A big data project using deep learning method to output an recommended image based on the similarity of characteristics

License

Notifications You must be signed in to change notification settings

adhamarif/ImageRecommender

Repository files navigation

ImageRecommender

A big data project using deep learning method to output a recommended image based on the similarity of characteristics

Concept

Since images are large vectors with 3 colour channels, it requires high computational resources to calculate the mathematical operations such as Euclidean or Cosine distance to calculate similarity. Hence, we need to downscale its complexity but still retain the information of it, so that we can still measure the similarity of the images in their simplified form.

Code design: image

Image Preprocessing

  • Preprocess the image using opencv to get the colour histogram of every pixel in the images.
  • Use a transfer learning model such as MobileNet to get the image embeddings.
  • Save the information including the image path in SQLite database and .csv file as a backup.

Find image similarity

  • After all the images are preprocessed, the input image can be given so that it will output 5 similar images from the database in the ImageRecommender function. The similarity is calculated using Euclidean distance.
  • Used a dimension reductional technique such as t-SNE or UMAP to visualize high dimensional data to see the clustering patterns between all images.

Result

  • ImageRecommender with 5 similar output images combi

  • t-SNE plot for all the images in the database image

  • t-SNE plot for human face images vs all other istances image

Conclusion

  • Images are unstructured and complex data. Hence, necessary steps and techniques to downscale its complexity.
  • Specific tenchniques such as using a generator, batch processing and implementation of a database improve the computational resource and make the whole process efficient.

About

A big data project using deep learning method to output an recommended image based on the similarity of characteristics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •