A random forest classifier was trained on data from the Massachusetts Health and Human Services Department about lead inspection reports, property assessments, and census data to predict the probability that a building contains lead-based paint with a precision of 0.71 and recall of 0.73. The random forest model uses features like the year a building was built, number of rooms, tax assessments, income level and other socioeconomic factors to make its predictions with an R2 value of 0.73.