Researchers have developed a machine learning algorithm to accurately detect ... and improve the quality of life for dogs.