Based on your description, your approach seems to be more aligned with multi-task learning rather than multi-label learning, but there's a bit of ambiguity depending on how you specifically define the outputs and what you mean by "state".
In multi-label classification, each sample is assigned to multiple classes that are not mutually exclusive. For instance, an image might contain both a cat and a dog, and thus would be labeled "cat" and "dog".
In multi-task learning, each sample has multiple outputs or labels associated with it, but these labels typically correspond to different tasks. The learning happens simultaneously across these tasks with the aim that sharing representations between different tasks can improve learning efficiency and prediction accuracy.
Given the structure of your outputs:
- Milk/Fruit: This is a binary classification that indicates whether the tested item is milk or fruit.
- State: This is another binary classification that indicates whether the item is fresh (0) or spoiled (1).
This setup could imply that you are doing multi-task learning as you have two distinct tasks: identifying the type of item (milk or fruit) and determining its state (fresh or spoil). Each sample leads to a prediction on both these tasks.
An alternative interpretation could be that the "Milk/Fruit" and "State" are part of a single multi-class classification task (with potentially four classes - Fresh Milk, Spoiled Milk, Fresh Fruit, Spoiled Fruit). In such a case, you'd define a single output vector with four elements, where only one of them is "hot" (1) based on the input. However, this doesn't seem to be what you're describing.
Still, there is a bit of a mix because the "Milk/Fruit" seems like a multi-class problem (either it's milk or it's fruit) and the "State" is another, separate binary classification (either it's fresh or spoiled). Your dataset labeling suggests a combination of these concepts, which is typical in multi-task learning, where each task (identification and state determination) has its own output node/neuron.
Your neural network architecture seems to involve a shared model with potentially shared layers that then diverge into two separate tasks at the output layer with three output neurons. It would be common in a multi-task setting to have separate output layers for each task, but considering that the state task is binary, and you mentioned "Neurons at output layer = 3", your representation is a bit confusing, as you would need at least 4 neurons (2 for the Milk/Fruit task if using one-hot encoding, and 2 for the State task).
If the situation is such that you indeed have a shared model with two distinct tasks at the output, and you're using the network to optimize these tasks simultaneously, then you'd be doing multi-task learning.