Machine Learning Operations (MLOps): Zillow Case
Hello reader,
I want to tell a story about Zillow, machine learning in production and what are the lesson learned. Zillow is a company based in US listed on Nasdaq (Z), its core business is a web site where users can buy and sell real-estates.
Another business that Zillow developing was in the house-flipping market where the companies buy properties at a slight discount, renovate and re-sell. The process saves seller from the hassle of selling a property and the buyer will get a margin out of the selling. The complexity is to engineer the offer in a way that the pushes owners to sell and keep an healthy margin once the property is resold. The competitors in the space are Open Door, OfferPad.
Zillow was in a perfect position to lead the house-flipping market as it has collected massive amount of data during the years and it developed an excellent prediction model called Zestimate.
Zestimate
Estimate the price of real estates is a classic AI problem, in an hyper-simplified version it is used as "Hello World" exercise by AI practitioners. Zestimate history started in 2006, it was originally and ensemble of 1000 rule base models tailored on local markets, afterwards it has been replaced by a neural network with input features like footage, lot size, number of rooms, vintage, location, tax assessments, prior prices, days on the market, sizes of nearby homes, and proximity to a waterfront and a CNN to estimate value enhancing features from like marble countertops and stainless steel appliances.
In 2017 the model development boosted due to the launch of a global hackathon that involved 3800 teams from 91 countries with a final winning price of 1 million dollar
Zestimate reached a remarkable performance, its price prediction on listed properties is within 10% of the final sale price more than 95% of the times.
With his knowledge of the market and its precise predictions Zillow could dominate the market and overcome the competition, so what can go wrong …
The new normal
As we all know at the beginning of 2020 a global pandemic changed the world and all of us have to adapt to the "new normal". The new normal meant also inflation, a change in consumers behavior and an overall shift in the real estate market.
Historical data used to train Zestimate was no more representative of the real estate market. What happened was a concept shift and a data drift
Concept drift: the model has been trained to adapt to a particular function / mapping between input y and prediction x (x->y), but now the statistical relationship between x->y is changed.
Data drift: the model was trained on a certain distribution of input y but this distribution is changed
It caused catastrophic consequences on Zestimate predictions and Zillow house-flipping business which ended up in
- complete shut down of the business unit
- 25% workforce reduction
- 7,000 unsold homes bought for $2.8B
- -30% stock drop
- -$245M in losses
And a few internet memes
Lesson Learned
What can we learn from this story
- It’s challenging to build a robust model in production even if we have trained it with a massive amount of data. The real world is constantly changing an is never a mere repetition of the past
- It’s important to constantly monitor models in production to identify changing in data distribution of the inputs or the predictions
- Setup an alerting system to warn in case the model diverge from the expected behavior
- Build a strong MLOPs team to ensure model deployment, monitoring and re-training and invest in automation.
Final consideration this story is not just a data science fiasco, part of the responsibility goes to the business leadership which pushed to adjust the model to estimate and offer upwards to increase conversion rate and market share.
References
I appreciate you taking the time and effort to share your knowledge. This material proved to be really efficient and beneficial to me. Thank you very much for providing this information. Continue to write your blog.
ReplyDeleteData Engineering Services
Artificial Intelligence Services
Data Analytics Services
Data Modernization Services