Data science affects our lives from trivial restaurant recommendations to life changing loan risk predictions. Data science has the ability to improve lives, but like any tool, when misused or misunderstood, it can cause damage.
The Dark Decade of Data Science
During the 2010s, some of the greatest minds in data science were working at Facebook. Increasing user engagement was the success metric as it led to more eyeballs on ads. Facebook increased user engagement by surfacing content that kept users on the platform. An artifact of Facebook’s approach was that users were not exposed to opposing ideas. This simple concept had horrific outcomes. In 2016 the Rohingya genocide began leading to the deaths of tens of thousands of people in Myanmar. Facebook was largely responsible for spreading and inciting the hatred towards the Rohingya people. Marzuki Darusman, the chairman for the U.N. Independent International Fact-Finding Mission on Myanmar stated that Facebook played a “determining role” in Myanmar¹.
“It has… substantively contributed to the level of acrimony and dissension and conflict, if you will, within the public. Hate speech is certainly of course a part of that. As far as the Myanmar situation is concerned, social media is Facebook, and Facebook is social media,” – Marzuki Darusman.
Facebook has changed some policies but hasn’t addressed the root cause. Facebook continues to make short term optimizations with little understanding of long term impacts. Consider notification fatigue:
Again, this is the result of short term data driven decision. More notifications equals more engagement, no matter the relevance. This gambit works until users reach a saturation point.
Calling what we have now artificial intelligence is a little premature. If you ask a human librarian for advice on committing suicide, it’s unlikely that they would blindly supply you with stats on techniques.
Searched on 2020-06-14 using guest chrome account and a anon vpn
Data scientists continue to make mistakes with real world consequences. Turnkey data science now lets anyone make those mistakes.
Turnkey Data Science, the New Dark Decade of Data Science
Turnkey data science refers to a suite of new tools developed by Google, AWS, Azure, etc to simplify the adoption of data science techniques. The people building these tools are still making mistakes and the people using these tools don’t necessarily understand the risks.
Consider Google Cloud Natural Language API which analyzes sentiment from text. An example use case would be monitoring employee morale without having to read every single feedback form. Google have great tutorials on implementing their natural language processor (NLP) however nowhere in their documentation could I find details about possible bias. So I tested their NLP:
Even small samples revealed statistically significant gender bias.
statistics = 1002.000
p value = 0.043
avg female sentiment = -0.12
avg male sentiment = -0.23
Using Mann–Whitney U test, see Jupyter notebook for more details
Bias exists in these tools because the people creating them and the data used to train them is biased. You wouldn’t trust a sexist human to help you make objective decisions, so why do we trust sexist bots? Here is another example using Azure’s NLP offering.
Female terms
Male terms
The Future
Being complicit in a literal genocide wasn’t enough to cause substantial change in the Data Science industry. Facebook hired some more human moderators to identify hate speech but ignored the root cause. The root cause was recommendation engines manipulating humans for short term goals, without regard or knowledge of long term effects. But there is hope.
According to the Internet research company Pew Research Center, 62% of adults in the United States get news from social media². Some news outlets have started writing articles for Facebook’s accidentally genocidal algorithms instead of humans. The results are continued filter bubbling and more division. Ground News is a news comparison platform solving this problem. Users can see how a particular story is told across the political spectrum and around the world.
Ground News also have a weekly Blindspot email highlighting notability biased articles and how different media outlets describe the same event or person.
At Shopify, I created a defensive patent to identify & remove bias from machine learning models.
I have been working on a Python package to implement the concept.
There are many in the data science community identifying and solving these problems. It’s important that the public understand that data models are not inherently objective. And it’s imperative that identified issues in data science are resolved at their source. Done right, data science can solve more problems then it creates.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
- ---
title: "The Dangers of Turnkey Data Science"
description: "Turnkey data science tools from Google and AWS carry hidden biases. Here's what's wrong and what we can do about it."
image: /wp-content/uploads/2020/06/document polluter.png
author: Greg
layout: post
permalink: /2020/06/turnkey-data-science/
date: 2020-06-17 19:53:00 -0400
comments: True
licence: Creative Commons
categories:
- technology
tags:
- ai
- privacy
search_terms: [data scientist, machine learning, artificial intelligence, algorithmic bias, gender bias, sexism, facebook, social media, engagement, advertising, recommendation engine, filter bubble, echo chamber, rohingya, genocide, myanmar, burma, marzuki darusman, united nations, hate speech, content moderation, notification fatigue, bing, search engine, microsoft azure, google cloud, natural language processing, nlp, sentiment analysis, employee morale, statistical significance, mann-whitney, jupyter notebook, python package, document polluter, pew research center, media bias, political bias, ground news, blindspot, shopify, defensive patent, non-causal dependencies, ethics, fairness, loan risk]
- ---
Data science affects our lives from trivial restaurant recommendations to life changing loan risk predictions. Data science has the ability to improve lives, but like any tool, when misused or misunderstood, it can cause damage.
## The Dark Decade of Data Science
During the 2010s, some of the greatest minds in data science were working at Facebook. Increasing user engagement was the success metric as it led to more eyeballs on ads. Facebook increased user engagement by surfacing content that kept users on the platform. An artifact of Facebook's approach was that users were not exposed to opposing ideas. This simple concept had horrific outcomes. In 2016 the [Rohingya genocide](https://en.wikipedia.org/wiki/Rohingya_genocide) began leading to the deaths of tens of thousands of people in Myanmar. Facebook was largely responsible for spreading and inciting the hatred towards the Rohingya people. Marzuki Darusman, the chairman for the U.N. Independent International Fact-Finding Mission on Myanmar stated that Facebook played a "determining role" in Myanmar[¹](https://www.reuters.com/article/us-myanmar-rohingya-facebook/u-n-investigators-cite-facebook-role-in-myanmar-crisis-idUSKCN1GO2PN).
> "It has... substantively contributed to the level of acrimony and dissension and conflict, if you will, within the public. Hate speech is certainly of course a part of that. As far as the Myanmar situation is concerned, social media is Facebook, and Facebook is social media," -- Marzuki Darusman.
Facebook has changed some policies but hasn't addressed the root cause. Facebook continues to make short term optimizations with little understanding of long term impacts. Consider notification fatigue:
<p align="center">
<img width="100%" height="100%" src="/wp-content/uploads/2020/06/notification fatigue.png" alt="notification fatigue" title="notification fatigue">
</p>
Again, this is the result of short term data driven decision. More notifications equals more engagement, no matter the relevance. This gambit works until users reach a saturation point.
<p align="center">
<img width="75%" height="75%" src="/wp-content/uploads/2020/06/facebook nobody cares.png" alt="facebook notification fatigue" title="facebook notification fatigue">
</p>
Calling what we have now artificial intelligence is a little premature. If you ask a human librarian for advice on committing suicide, it's unlikely that they would blindly supply you with stats on techniques.
<p align="center">
<img width="100%" height="100%" src="/wp-content/uploads/2020/06/bing suicide search results.png" alt="bing suicide search results" title="bing suicide search results">
</p>
*Searched on 2020-06-14 using guest chrome account and a anon vpn*
Data scientists continue to make mistakes with real world consequences. Turnkey data science now lets anyone make those mistakes.
## Turnkey Data Science, the New Dark Decade of Data Science
Turnkey data science refers to a suite of new tools developed by Google, AWS, Azure, etc to simplify the adoption of data science techniques. The people building these tools are still making mistakes and the people using these tools don't necessarily understand the risks.
Consider Google Cloud Natural Language API which analyzes sentiment from text. An example use case would be monitoring employee morale without having to read every single feedback form. Google have great [tutorials](https://cloud.google.com/natural-language/docs/sentiment-tutorial) on implementing their natural language processor (NLP) however nowhere in their documentation could I find details about possible bias. So I tested their NLP:
Even small samples revealed statistically significant gender bias.
statistics = 1002.000
p value = 0.043
avg female sentiment = -0.12
avg male sentiment = -0.23
*Using Mann–Whitney U test, see [Jupyter notebook](https://github.com/gregology/document-polluter/blob/notebook/Google%20gendered%20driving%20sentiment%20analysis.ipynb) for more details*
Bias exists in these tools because the people creating them and the data used to train them is biased. You wouldn't trust a sexist human to help you make objective decisions, so why do we trust sexist bots? Here is another example using Azure's NLP offering.
Female terms
<p align="center">
<img width="100%" height="100%" src="/wp-content/uploads/2020/06/female.png" alt="azure gender bias female" title="azure gender bias female">
</p>
Male terms
<p align="center">
<img width="100%" height="100%" src="/wp-content/uploads/2020/06/male.png" alt="azure gender bias male" title="azure gender bias male">
</p>
### The Future
Being complicit in a literal genocide wasn't enough to cause substantial change in the Data Science industry. Facebook hired some more human moderators to identify hate speech but ignored the root cause. The root cause was recommendation engines manipulating humans for short term goals, without regard or knowledge of long term effects. But there is hope.
According to the Internet research company Pew Research Center, 62% of adults in the United States get news from social media[²](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6424427/). Some news outlets have started writing articles for Facebook's accidentally genocidal algorithms instead of humans. The results are continued [filter bubbling](https://en.wikipedia.org/wiki/Filter_bubble) and more division. [Ground News](https://ground.news/) is a news comparison platform solving this problem. Users can see how a particular story is told across the political spectrum and around the world.
<p align="center">
<img width="75%" height="75%" src="/wp-content/uploads/2020/06/political bias.png" alt="political bias reporting" title="political bias reporting">
</p>
Ground News also have a weekly [Blindspot](https://ground.news/blindspot-subscribe) email highlighting notability biased articles and how different media outlets describe the same event or person.
<p align="center">
<img width="75%" height="75%" src="/wp-content/uploads/2020/06/split reporting.png" alt="split reporting" title="split reporting">
</p>
At Shopify, I created a [defensive patent](https://en.wikipedia.org/wiki/Defensive_patent_aggregation) to identify & remove bias from machine learning models.
<p align="center">
<img width="100%" height="100%" src="/wp-content/uploads/2020/06/document polluter.png" alt="Systems and Methods for Detecting Non-causal Dependencies in Machine Learning Models" title="Systems and Methods for Detecting Non-causal Dependencies in Machine Learning Models">
</p>
I have been working on a [Python package](https://pypi.org/project/document-polluter/) to implement the concept.
<p align="center">
<img width="100%" height="100%" src="/wp-content/uploads/2020/06/document polluter package.png" alt="Document polluter python package" title="Document polluter python package">
</p>
There are many in the data science community identifying and solving these problems. It's important that the public understand that data models are not inherently objective. And it's imperative that identified issues in data science are resolved at their source. Done right, data science can solve more problems then it creates.
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEESYClA57JitMYg1JBb8nUVLEJtZ8FAmr0r8gACgkQb8nUVLEJ
tZ+0dg/+Ia/aquOZHDvHoowtOGxDY/7cSqtUcPfebFQSa94Hq4VruK+E+V/JT3IH
Qeei5MItgpgxIslJ6rLcOiSDgssYMqPruvaCYRbhgY6Y6sE4zI/24B2d/OgW2tfo
cSoTk5KyUrz7GP7YsJGUIkV83Z543HnDnoVB5vzHMmE1d4EYFcjb6dK8EBn6nfvi
m3qdghe4jYUfy7jS9ieavGCT2GQrvxotUUYfnhw1z++dGXa5ipCXOHDfydoNjqK5
+K7gYzJ9bKcL6VWpeMBtKHBQNlO9KW4wFxSle+Zmp1KV4djI6FDMhPKWf0oRN2q2
ZFQFZ6NfrW2oW9ar4V4Qwj/sbQQhGK0ZAxBjQWtEmzzrY4oB07u3OYySxCtNX8Wh
y5zanTeNCtDr5NPdcNl1rhm3hOzzI2O4n6nI8ztuqpW3awAa8hZ6kTR43PqT7mSz
ZK/1mghW04gkO9Z17gXfYY0pGS5T0XTiIPoaZU8BxoDBfhZXbIcEwRP3ph0lY66L
xTybtCKHzPW18ImGZK3oiJ49Q4tGUa0OLFA+O8/F+KcMx7+mGUX9rNG5V2w021It
OR7EEYvQd6b0DXj6b4e2xGYnx+aMb3i1saM+tEP/LfWeEUWGeVMJaDOR6Hh/jnf/
kBe83gk597ysPu+XKKioTUQ703DhRT51c3z1sx0GUawZcGleM68=
=RWiP
-----END PGP SIGNATURE-----