Pattern recognition of rat behavior