Classification of rat behavior with an image-processing method and a neural network