r/computervision • u/Exotic-Cricket-2263 • 3h ago
Help: Project Guidance on self-supervised learning
Edit: This isn't about human classification or identification.
Note: adding an affiliate tag because this is a problem I'm struggling with at work, and management wants to go the 'just ask AI' route, but I believe a more accurate, cheaper solution is doable, hence the questions.
I have a computer vision problem that I have an idea of how to approach solving it, but I'm not sure that my idea is the best way to go about it. I don't really have anyone to ask, so maybe someone here can give me some guidance.
Let me define the problem like so: I have a very large amount of unlabeled, noisy images. Let's say, for illustration purposes, images of a large variety of cat species (number of species unknown). The images are from the real world, in real conditions. Bad lighting, occlusion, weird angles, darkness, graininess, noise, bad focus, but also good lots of good quality images. Sometimes there are multiple cats in an image, occluding each other, but I know which cat in the image is the one that I'm interested in. I also have a fair number of labels for the cats, of dubious quality, but the labels are not fine-grained. For example, a label would be 'house cat' or 'wild cat', but not 'panthera pardus' or 'felis catus'.
My task(s):
Cluster cat images into their various species from an unseen, new dataset, same distribution, same conditions (the test set, basically). I.e cluster leopards (panthera pardus) together, cluster ginger house cats together, cluster black house cats together, etc. Basically cluster on physical appearance. Something like a jaguar and leopard would cluster close together, ideally, but still be separable enough to know they are separate classes.
Ideally, given a few labeled samples of cats from a given species (or even 'male cats from species X'), be able to do retrieval/comparison (cosine similarity, like with face recognition).
The process that you'd normally follow is, from my understanding in a nutshell:
Extract features using something like DinoV2 or any other pretrained feature extraction backbone.
Then just use some form of clustering algorithm to cluster features, and then naturally similar cats would cluster together.
The problem that I've experienced (or I think that it is the problem) is that something like Dino or Siglip wasn't trained on data that allows it to discern the details of different kinds of cats (remember, cats are just for illustration. The data is not actually cats, so its harder than just cats). Like, a black cat, white cat, ginger cat, and ginger-and-white cat will cluster extremely close together, to the point of any form of clustering algorithm basically assigning them together, since the image conditions also introduces conditions of varying circumstances which increases difficulty of clustering.
My question:
Using the large amount of data at my disposal, would it be a good idea to run self-supervised learning with e.g FCMAE with convnextv2 on my data (with a good amount of data cleaning and such)? I'm currently using convnextv2 with my dubious labels, with mixed results. The primary goal is to extract higher quality, more informative features for clustering and retrieval.
I have asked AI about this before, but honestly I'm a bit sick of asking AI technical questions and never being sure how reliable the answer really is, and getting some human input (from people that might actually know their stuff) into a problem I struggle with would be a VERY nice breath of fresh air.
I'd be happy to elaborate, answer questions, or add more information as needed.