Forget ML — 4 Weird Edge Cases Which Confuse Even Humans When It Comes To Places Data

February 13, 2019

Perplexing Edge Cases SafeGraph Encounters On Our Journey Building The Source of Truth About Physical Places

SafeGraph aims to be the source of truth for physical places. No fake news — just the facts.

But the dynamic, evolving, complex world we live in poses a real challenge for us SafeGraph-ers. By aiming for 100% accuracy, we know we are undertaking a Sisyphean task.

At the top of the hill lies the truth. We’ll never get there, but we’ll keep trying.

Capturing the full complexity of the world and encapsulating it neatly into one clean CSV dataset is impossible. One reason our job is so difficult is that all data sources are noisy, which causes our algorithms to make errors and mistakes.

Our ML algorithms discovered Atlantis (amongst other mistakes)

Our machine learning team fuses data from many, many sources including satellite imagery, first-party data, municipal and government data, web searches, and more. This has enabled SafeGraph to maintain a very accurate understanding of almost everywhere people spend money and how people interact with those places.

But operating at the scale we do, it’s not surprising that SafeGraph’s algorithms make mistakes.

Once, we put a Point-of-Interest squarely in the middle of a big lake. That Point-of-Interest was NOT Atlantis. It was a Burger King. Clearly, a mistake.

We found out about it because one of our customers was giving driving directions to a person. Luckily, that person wisely decided not to drive into the water.

Thankfully SafeGraph data had nothing to do with this unfortunate accident.

Our mistakes have huge real-world consequences because the largest mobile carriers, search engines, and satellite companies rely on SafeGraph’s data.

But this blog post isn’t about how our algorithms mess up and how we fix our obvious mistakes. This blog post is about the weird edge cases where even after multiple humans look at the data, we still don’t know what the right answer is.

Forget algorithms. Even humans are confused about how to handle these edge cases.

This blog post is about the cases where we struggle to translate the complexity and nuance of the real world into simple rules and heuristics which our algorithms can then follow.

We don’t have all the answers yet, but we want to shine some light on some of the challenges we face every day. If you have any suggestions, please let us know (or come work with us!).

Opening up about open hours

Knowing when a place is open for business or not seems easy enough. But how would you handle the open hours for this urgent care center?

Broncos Stadium at Mile High: previously known as Invesco Field at Mile High and Sports Authority Field at Mile High, and commonly known as Mile High, New Mile High or Mile High Stadium.

Do we report Office Hours or InstaCare Hours? If both, how can we cleanly represent that in our schema?

Open hours become even more challenging when you account for Points-of-Interest that are seasonal, like water parks open only in the summer, or malls which have extended shopping hours during the holiday season.

During last Christmas day, our clients recommended that people go to hundreds of closed business … all because we couldn’t get the store hours straight. Again, our mistakes have serious real-world consequences (but luckily all the toy stores were open … so little Tony still got his truck).

Getting a name for a place is easy. Getting the right name(s) for a place is really hard.

Here’s a great article on the falsehoods programmers believe about people’s names. You can imagine when it comes to physical places, which have fewer social conventions for naming than people, there is even greater complexity to understanding and representing place names accurately.

Take for example the Broncos Stadium at Mile High. Or whatever they decided to name it this year.

Broncos Stadium at Mile High: previously known as Invesco Field at Mile High and Sports Authority Field at Mile High, and commonly known as Mile High, New Mile High or Mile High Stadium.

Names of places change. Often.

And some places might go by two names, both equally valid. This makes determining the best name for a place challenging even for humans, let alone algorithms.

Between the rebrands, mergers, and acquisitions, brands are in constant flux.

Businesses are continually merging and acquiring other businesses. Sometimes these businesses undergo rebrands. Sometimes they don’t. Sometimes they create new special regional co-branding.

We’ve reached 99% recall and also 99% precision when it comes to the top 3,000 brands in the U.S. But for smaller chains and brands, it’s difficult to organize and keep track of this information without extensive research and local familiarity. Take for example Daphne’s.

Daphne’s Greek Cafe? Or Daphne’s California Greek? Or Daphne’s Mediterranean?

Without local familiarity, it’s not easy to know how many distinct restaurants and brands are contained in the above search results and news stories.

Capital One Cafe category confusion

NAICS codes are an industry standard system for categorizing a type of business. Some example sub-categories in the NAICS system are “Commercial Banks”, & “Snack and Nonalcoholic Beverage Bars”, & “Lessors of Nonresidential Buildings (except Miniwarehouses)”.

As much as we love working out of Capital One Cafes, we hate them when it comes time to categorize these points-of-interest.

It’s a bank! It’s a cafe! It’s Capital One Cafe

What’s the best category for a bank which is also a cafe and also a co-working space? And another question: should Capital One Cafes be a separate brand from Capital One?

As you can see, the real world is tricky, and it’s hard to cleanly represent what’s happening in a simple CSV with a clear taxonomy.

We’re steadily dealing with every edge case

We need to get this right because we believe that truth data is fundamental to innovation in the Machine-Learning driven future.

So, until we reach the impossible goal of 100% accuracy, we’ll keep fixing our errors and handling these edge cases.

All models are wrong… but we are trying to make SafeGraph’s models of the physical world the most accurate and useful.

But we still make tons of mistakes. Many of the mistakes make us cringe. Our commitment to our (very demanding) customers is that we significantly improve the data every month and that we will be a bit more true every month.

You can track our progress on this journey, by following our release notes which are published with every monthly update of the data. We feature the bugs and edge cases we’ve handled, and articulate known problems that are not solved (yet!).

The Source of Truth for Physical Places
SafeGraph is just a data company

That's it – that's all we do. We want to understand the physical world and power innovation through open access to geospatial data. We believe data should be an open platform, not a trade secret. Information should not be hoarded so that only a few can innovate.