A method for training a neural network classifier to classify a digital image depicting one or more objects of a biological sample into a specific class, which class belongs to a predefined set of classes, the method comprising:
- providing a training set of digital images originating from a plurality of biological samples, each digital image of the training set being labeled with a specific class of the one or more objects of the digital image, each digital image of the training set being associated with global data pertaining to the respective sample,
- training the neural network using image data pertaining to each digital image from the training set of digital images and the global data associated with said digital image as input, and using the specific class of the label of said digital image as a correct output from the neural network.