MIDS Capstone Project Summer 2025

Pet Buddy: Increasing pet adoption through data!

Team members

Problem and Motivation: 5.8M animals enter a shelter each year, with 607K ultimately being euthanized (Shelter Animals Count, 2024). We aim to reduce that number through surfacing the least likely animals to be placed in adoption for targeted intervention by shelter workers.

Data Source and Data Science Approach: We leveraged public sourced data across the country from San Jose and Long Beach CA, as well as Bloomington, IN. Our approach was to build 3 models with specific outcomes:

  1. Prediction of probability for Adoption, with Top 3 Positive and Top 3 Negative attributes driving probability
  2. For animals likely to be adopted, Length of Stay Prediction
  3. For animals not likely to be adopted, most likely outcome amongst Foster, Rescue or Return to Owner (aka Multiclass).

Evaluation: We ran several models against these capabilities including Logistic Regression, Random Forest and XGBoost with XGBoost being the highest performing model in all cases for Adoption, Length of Stay and Multiclass. Ultimately, due to low performance we decided to forego Length of Stay for future iterations. Please see below for initial evaluations.

Based on these findings in external Python we then used hyperparameter tuning targeted on F1, built directly in Sagemaker but only for three XGBoost models. While there were some variances, ultimately performance on Test sample in pipeline was similar to our external models above (e.g. AWS pipeline Weighted Adoption Accuracy was 83% vs 88% for test models).

A key differentiator of this capability was to surface our research in plain language for shelter workers looking to focus their placement efforts on the areas of greatest impact. Thus our dashboard has key features including overall population metrics for animals like Likely/Not Likely to be Adopted, with unique Animal ID which is selectable to see attributes that are hurting or helping that animal and recommended interventions.

Key Learnings: Based on prior research (see references) we did not see a similar approach in industry. Thus we were pleased that we could accurately predict Adoption/Non-Adoption in Training/Test/Validate data. This shows promise for use in shelters, especially larger shelters with many shelter workers and animals; this was corroborated by some of our user interviews. Other Key Learnings:

  1. Our pipeline for taking a csv all the way through to Dashboard performs robustly and reliably and with relatively low latency, including applying SHAP values for each animal instance. However we could have built this in a more object oriented way allowing us to remove the Length of Stay portion of the pipeline which now provides no benefit to end output.
  2. We elected to do considerable model testing while building our Sagemaker environment; this meant that models were pre-validated and trained outside of Sagemaker then replicated with hyperparameter tuning in Sagemaker; a more efficient method would have been to pre-build scripts to test, validate and package models then deploy serverless endpoints all in Sagemaker.
  3. Finally, there was considerable effort placed in harmonizing data upfront due to a lack of consistency in structures across shelters; a key value-add for all shelters would be to align to a standard data template for use in tools like Pet Buddy.

 

References and Credits: 

  1. 2024 statistics. Shelter Animals Count. (2025, March 28). ttps://www.shelteranimalscount.org/explore-the-data/statistics-2024
  2. Tang, L. (2025, April). Animal Shelters in the US (Report No. OD5794). IBISWorld.
  3. Powell, L., Reinhard, C., Satriale, D., Morris, M., Serpell, J., & Watson, B. (2021b, April 13). Characterizing unsuccessful animal adoptions: Age and breed predict the likelihood of return, reasons for return and post-return outcomes. Nature News. https://www.nature.com/articles/s41598-021-87649-2
  4. Thumpkin, E., Paterson, M. B. A., Morton, J. M., & Pachana, N. A. (2022, September 26). Adoption can be a risky business: Risk factors predictive of dogs adopted from RSPCA Queensland being returned. Animals : an open access journal from MDPI. https://pmc.ncbi.nlm.nih.gov/articles/PMC9559252/
  5. Data:
    1. https://data.sanjoseca.gov/dataset/animal-shelter-intake-and-outcomes
    2. https://data.bloomington.in.gov/Public-Works/Animal-Shelter-Animals/e245-r9ub
    3. https://data.longbeach.gov/explore/dataset/animal-shelter-intakes-and-outcomes/
  6. Special thanks to Bedford Animal Rescue League, Bedford, NH
  7. Special thanks to our instructors and TA's in Data Science 210, including Joyce Chen and Amit Bhattacharyya
  8. Special thanks to the Shelter Operations Manager at the Montgomery County Animal Shelter

 

Last updated: August 6, 2025