How do you know when someone is mentally ill?

If they murder and rape their dog there is a slight chance they are mentally ill.