Smart phone app determines risk of domestic violence