I think my problem can easier be explained via an example: Assume we have a dataset containing the images of 10 different mammals, let's say lion, elephant, cat, ... and horse. We have a 20-class image classification task where we want to detect whether an image belongs to lion-male or lion-female or cat-male or cat-female or ... horse-male or horse-female. As you see, the classes can be simply clustered into 10 mammal classes, i.e., (some) classes are highly dependent.
This example is a kind of made up. Two strategies, imaginable to solve this problem is either we ignore this dependency and treat it as a 20-class classification task or use a hierarchical structure to first classify them into 10 class of mammals and then into male or female. The later however, ignores the fact that there might be (and in fact is) some shared properties in all males or in all females that can be used to discriminate them.
I was wondering if there is a methodological way to address this type of classification tasks. I'm looking for a keyword to google it. Thanks