Looking to prior encounters with the police can help prevent domestic violence