Laws, Guidelines, and Ethics

Considerations for Responsible Data Science

Richard Ressler

American University

1/22/23

Learning Outcomes

By the end of this discussion, you should be able to:

  • Differentiate Legal, Professional, and Ethical Considerations
  • Identify Sources of Ethical Issues in Data Science
  • Apply Frameworks and Recommended Practices for Ethical Reasoning
    • Philosophical Frameworks
    • Professional Codes of Conduct
    • Technical Guidelines
  • Analyze data science work from legal, professional, and ethical perspectives

Agenda

  1. Legal, Professional, and Ethical Considerations
  2. Ethical Frameworks
  3. Recognizing Ethical Issues
  4. What Can You Do? What Should You Do?
  5. References

CAVEAT: This presentation provides general background to facilitate educational discussion.

Data Science Has a Life Cycle

Responsible Data Science Asks Questions Across the Life Cycle.

Data Scientists Make Choices When Answering Ethical Questions

  • What kinds of projects do I work on?
  • What questions do I analyze?
  • Who are the Stakeholders?
  • Towards what goals do I optimize my models?
  • How do I get my data? How do I protect my data?
  • Is my data representative of the population?
  • What do I do about “bad” or missing data?
  • What to do with outliers that “mess up” my results?
  • What variables/features/attributes do I use?
  • How much effort do I put into checking my results? Are they repeatable?
  • How do I leverage/credit other people’s work?
  • How do I report my results - what is intellectual property and what should be public?

  • Choices can involve Legal, Professional, or Ethical Considerations

Choices have consequences, with benefits and risks.

Laws Proscribe Some Choices

Professional Considerations

  • Professional considerations address the risk of activities related to organizations with which you affiliate.
    • Professional Organizations
    • Employer Organizations

When in doubt, ask a mentor or manager you trust.

Ethical Considerations

  • Ethical considerations arise when asking

    • “What should I do?”

    • “What is Right”?

  • Ethical Choices can be hard, especially when choices may require violating a law, regulation, or professional guideline.

  • Individual principles and cultural norms shape options and guide choices in complex situations.

  • Often, there is no universally-accepted or even a good “right answer”.

  • May have to choose between two bad outcomes as the The Trolley Problem has many analogs. (Merriam-Webster 2021)

  • May have to choose between individual and group outcomes.

  • Ethical choices can lead to feelings of guilt, group reprobation, civil action (torts), or criminal charges.

Many, many, frameworks attempt to guide Ethical Choices.

II. Ethical Frameworks

Three (of many) Ethical Frameworks 1

  • Consequentialist or Utilitarianism: greatest balance of good over harm (groups/individual)
    • Choose the future outcomes that produce the most good
    • Compromise is expected as the end justifies the means.
  • Duty: Do your Duty, Respect Rights, Be Fair, Follow Divine Guidance:
    • Do what is “right” regardless of the consequences or emotions
    • Everyone has the same duties and ethical obligations at all times
  • Virtues: Live a Virtuous Life by developing the proper character traits
    • Ethical behavior is whatever a virtuous person would do
    • Tends to reinforce current cultural norms as the standard of ethical behavior

Frameworks can conflict with each other or are “wrong” in the extreme.

No single or simple right answer!

Using Frameworks in Ethical Decisions

  1. Recognize There May Be an Ethical Issue
    • Assess the underlying definitions, facts, and assumptions and constraints
  2. Consider the Parties Involved
    • What individuals or groups might be harmed or benefit, and by when.
  3. Gather all Relevant Information
    • Are you missing key facts? Are they knowable?
  4. Formulate Actions and Evaluate under Alternative Frameworks
    • What will produce the most good and do the least harm? (Utilitarian)

    • What respects the rights of everyone affected by the decision? (Rights)

    • What treats people equally or proportionately? (Justice)

    • What serves the entire community, not just some members? (Common Good)

    • What leads me to act as the sort of person I want to be? (Virtues)

  5. Examine Alternatives and Make a Decision
  6. Act and Observe
  7. Assess and Reflect on the Outcomes

III. Recognizing Ethical Issues

Our Biased Brains Helped Us Survive

  • Our brains have evolved mechanisms to make quick decisions.

Short-term choices under stress may be bad in the long run ….

Bias in Data and Algorithms

  • Not a new issue - goes back decades.

  • However, the explosion growth of AI/Machine Learning systems to support and even implement decisions is generating concerns in multiple fields.

  • Are algorithms really less biased than people?

    • How can you tell with “black box” models?

    • What are the trade offs among accuracy, explainability, and transparency?

  • Bias in the (training) data (historical, sampling, …) can drive biased outcomes.

  • Algorithms find “hidden” relationships among proxy variables that can distort the interpretations.

  • When is it ethical to use Machine Learning or other Big Data systems?

  • Active area for research and publication. Two examples:

Three Articles for Discussion

  1. Higher error rates in classifying the gender of darker-skinned women than for lighter-skinned men (O’Brien 2019)

  2. Big Data used to generate unregulated e-scores in lieu of FICO scores for Credit in Lending (Bracey and Moeller 2018)

  3. Learning Analytics Can Violate Student Privacy (Raths 2018)

  • Discussion Questions
    • Is there an ethical issue or more than one? What is it?
    • Who is affected and who is responsible?
    • What would you do differently or recommend?

More Examples of Ethical Issues

  • Contradictions and competition among legal, professional, and ethical guidelines

  • Using biased data (even unknowingly) or eliminating extreme values or small groups

  • Using Proxies for “Protected” Attributes (even unknowingly)

  • Protection of Intellectual Property versus Explainability, Transparency and Accountability

  • Law of Unintended Consequences - people will use your products and solutions in “creative” ways that

    • May not align with your principles, or,
    • Be technically appropriate.

So what can you do? What should you do?

IV. What Can You Do? What Should You Do?

Consider Ethical Choices Across a Data Science Life Cycle

Responsible Data Science Life Cycle: Ask a question to Observe Outcomes

Ask a question: Is question about equity or equality? Who are the stakeholders? What are the trade offs across groups? What are our interests? Recency Bias? Confirmation Bias?

Frame the Analysis: What is the population? Are we using proxy variables? How are metrics for “fairness” affecting groups or individuals? Do we need IRB Review(APA 2022)?

  • Get Data: How was it collected? Was consent required/given for this use? Is there balanced representation of the population? Selection Bias? Availability Bias? Survivorship Bias?

  • Shape Data: Are we aggregating distinct groups? How do we treat missing data? Are we separating training and testing data?

  • Model and Analyze: Are we using proxies or over-fitting? How do we treat extreme values? Are we examining assumptions? Are we checking multiple performance metrics? Is our work reproducible?

  • Communicate Results: Are the graphs misleading? Do we cherry pick or data snoop? Are we reporting \(p\)-values and hyper-parameters?

  • Deploy/Implement: Is the deployment accessible to all?

  • Observe Outcomes: How can we validate assumptions and analyze outcomes for bias?

Consider Frameworks for Responsible Data Science

Published by the Royal Statistical Society and the Institute and Faculty of Actuaries in A Guide for Ethical Data Science

  1. Start with clear user need and public benefit
  2. Be aware of relevant legislation and codes of practice
  3. Use data that is proportionate to the user need
  4. Understand the limitations of the data
  5. Ensure robust practices and work within your skillset
  6. Make your work transparent and be accountable
  7. Embed data use responsibly

(RSS-IFA 2021)

DoD AI Capabilities shall be:

  • Responsible. … exercise appropriate levels of judgment and care, while remaining responsible for the development, deployment, and use….

  • Equitable. … take deliberate steps to minimize unintended bias in AI capabilities.

  • Traceable. … develop and deploy AI capabilities such that relevant personnel have an appropriate understanding …, including with transparent and auditable methodologies, data sources, and design procedures and documentation.

  • Reliable. … AI capabilities will have explicit, well-defined uses, and the safety, security, and effectiveness … will be subject to testing and assurance within those defined uses ….

  • Governable. … design and engineer AI capabilities to fulfill their intended functions while possessing the ability to detect and avoid unintended consequences, and the ability to disengage or deactivate deployed systems that demonstrate unintended behavior.

(DoD 2020)

A guide to Building “Trustworthy” Data Products

Based on the golden rule: Treat others’ data as you would have them treat your data

  • Consent - Get permission from the owners or subjects of the data before …

  • Clarity - Ensure permission is based on a clear understanding of the extent of your intended usage

  • Consistency - Build trust by ensuring third parties adhere to your standards/agreements

  • Control (and Transparency) - Respond to data subject requests for access/modification/deletion, e.g., the right to be forgotten

  • Consequences (and Harm) - Consider how your usage may affect others in society and potential unintended applications.

(Loukides, Mason, and Patil 2018)

  1. Be socially beneficial.
  2. Avoid creating or reinforcing unfair bias.
  3. Be built and tested for safety.
  4. Be accountable to people.
  5. Incorporate privacy design principles.
  6. Uphold high standards of scientific excellence.
  7. Be made available for uses that accord with these principles.

We will not design or deploy AI in the following application areas: Weapons, Surveillance, …

(GoogleAI 2022)

  1. The purpose of AI is to augment human intelligence. The purpose of AI and cognitive systems developed and applied by IBM is to augment – not replace – human intelligence.
  2. Data and insights belong to their creator.
  • IBM clients’ data is their data, and their insights are their insights. Client data and the insights produced on IBM’s cloud or from IBM’s AI are owned by IBM’s clients. We believe that government data policies should be fair and equitable and prioritize openness.
  1. New technology, including AI systems, must be transparent and explainable.
  • For the public to trust AI, it must be transparent. Technology companies must be clear about who trains their AI systems, what data was used in that training and, most importantly, what went into their algorithm’s recommendations. If we are to use AI to help make important decisions, it must be explainable.

(IBM 2019)

To Be an Ethically Responsible Data Scientist …

Integrate ethical decision making into your analysis life cycle.

To paraphrase American Frontiersman Davy Crockett,

“Try to be sure you are right, then Go Ahead!”

Stay Current on Emerging Ideas

Summary for Today

  • Discussed Legal, Professional, and Ethical Considerations
  • Identified sources of ethical issues across the Data Science Life Cycle
  • Examined frameworks and best practices for responsible Data Science
    • Philosophical Frameworks
    • Professional Codes of Conduct
    • Making Choices to mitigate biased or harmful outcomes.

Going forward, analyze data science work from legal, professional, and ethical perspectives and examine the choices you and others make while learning more about responsible data science.

“We must address, individually and collectively, moral and ethical issues raised by cutting-edge research in artificial intelligence and biotechnology, which will enable significant life extension, designer babies, and memory extraction.” - Klaus Schwab

Action indeed is the sole medium of expression for ethics.” - Jane Adams

V. References

ACM. 2021. “The Code for Computing Professionals.”
Acton, Carmen. 2022. “Are You Aware of Your Biases?” Harvard Business Review, February.
AMA. 2021. AMA Journal of Ethics.” AMA Journal of Ethics, February.
APA. 2022. FAQs about IRBs.” Https://Www.apa.org. https://www.apa.org/advocacy/research/defending-research/review-boards.
ASA. 2021. “Ethical Guidelines for Statistical Practice.” https://www.amstat.org/ASA/Your-Career/Ethical-Guidelines-for-Statistical-Practice.aspx.
Association, DS. 2021. “Code of Conduct.”
AutoML. 2022. “Ethics and Accessibility Guidelines.” https://2023.automl.cc/ethics/.
Baer, Tobais. 2019. Understand, Manage, and Prevent Algorithmic Bias. First. Aprees.
Bagchi, Sohini. 2020. “Ethical AI: The Next Big Thing for Enterprises in 2021.”
Bracey, Kali, and Marguerite Moeller. 2018. “Legal Considerations When Using Big Data and Artificial Intelligence to Make Credit Decisions.”
Brown University, Science and Technology Studies. 2021. “A Framework for Making Ethical Decisions.”
Burgess, Matt. 2020. “What Is GDPR? A Summary Guide for the UK.” Wired UK, March.
Calzon, Bernadita. 2021. “Misleading Statistics Real World Examples For Misuse of Data.” BI Blog | Data Visualization & Analytics Blog | Datapine.
Coy, Kevin, and Neil Hoffman. 2016. “Big Data Analytics Under HIPAA.”
DatatoViz. 2021. “Graphic Pitfalls.”
Desjardins, Jeff. 2017. “Every Single Cognitive Bias in One Infographic.”
DHUD, US. 2021. “Fair Housing Act.” https://www.hud.gov/program_offices/fair_housing_equal_opp/fair_housing_act_overview.
DoD, US. 2020. DOD Adopts 5 Principles of Artificial Intelligence Ethics.” https://www.defense.gov/Explore/News/Article/Article/2094085/dod-adopts-5-principles-of-artificial-intelligence-ethics/.
Edelman, Gilead. 2020. “Everything You Need to Know About the CCPA.” https://www.wired.com/story/ccpa-guide-california-privacy-law-takes-effect/.
EEOC, US. 2021a. “Genetic Information Nondiscrimination Act of 2008.” https://www.eeoc.gov/laws/statutes/gina.cfm.
———. 2021b. “Laws Enforced by EEOC.”
ETI, MIT. 2022. “What Is Differential Privacy?” What Is Differential Privacy?
FTC. 2013a. “Children’s Online Privacy Protection Rule ("COPPA").”
FTC, US. 2013b. “Fair Credit Reporting Act.”
———. 2018. “Credit Reporting Information.” https://www.ftc.gov/news-events/media-resources/consumer-finance/credit-reporting.
GoogleAI. 2022. “Our Principles.” Google AI. https://ai.google/principles/.
Hand, David J. 2018. “Aspects of Data Ethics in a Changing World: Where Are We Now?” Big Data 6 (3): 176–90. https://doi.org/10.1089/big.2018.0083.
HCAI, Standford. 2022. “The AI Index Report Artificial Intelligence Index.” Welcome to the 2022 AI Index Report. https://aiindex.stanford.edu/report/.
IBM. 2019. IBMS Principles for Data Trust and Transparency.” IBM Policy.
IEAI-ML. 2021. “Awesome AI Guidelines.”
“Implicit Bias Vs Unconscious Bias: Types Ways to Prevent Them.” 2022. https://getimpactly.com//post/implicit-bias-vs-unconscious-bias.
Implicit, Project. 2022. “Testing.” https://implicit.harvard.edu/implicit/.
INFORMS. 2021. INFORMS Ethics Guidelines.”
Loukides, Mike, Hilary Mason, and DJ Patil. 2018. Ethics and Data Science. First. O’Reilly Media, Inc.
Merriam-Webster. 2021. “Next Stop: Trolley Problem.”
MIT-Media-Lab. 2019. AI Blindspot: A Discovery Process for Preventing, Detecting, and Mitigating Bias in AI Systems.”
O’Brien, Matt. 2019. MIT Researcher Exposing Bias in Facial Recognition Tech ...”
O’Neil, Cathy. 2017. Weapons of Math Destruction: How Big Data Increases Inequality and Threatens Democracy.
Posit. 2022. “Quarto.” Quarto Overview. https://quarto.org/.
Psychology, Practical. 2017. “12 Cognitive Biases Explained -.”
Raths, David. 2018. “When Learning Analytics Violate Student Privacy.”
RSS-IFA. 2021. “Data Science Ethics Guidelines UK.”
Schneble, Christophe Olivier, Bernice Simone Elger, and David Martin Shaw. 2020. “Google’s Project Nightingale Highlights the Necessity of Data Science Ethics Review.” EMBO Molecular Medicine 12 (3): e12053. https://doi.org/10.15252/emmm.202012053.
SCU, Santa Clara. 2022. “An Introduction to Data Ethics.” https://www.scu.edu/ethics/focus-areas/technology-ethics/resources/an-introduction-to-data-ethics/.
Thomas, Rachel. 2018. AI Ethics Resources \(\cdot\) Fast.ai.”
UChicago. n.d. “Center for Applied Artificial Intelligence.” The University of Chicago Booth School of Business. https://www.chicagobooth.edu/research/center-for-applied-artificial-intelligence.
University, Princeton. 2018. “Dialogues on AI and Ethics Case Studies.”
US DHHS, Office for Civil. 2015. HIPAA for Professionals.” Text.
US DOEd, Privay Technical Assistance Center. 2017. “Integrated Data Systems and Student Privacy.”
Vigen, Tyler. 2021. “15 Insane Things That Correlate With Each Other.”
Weissgerber Tracey L., Tracey et al. 2019. “Reveal, Don’t Conceal.” Circulation 140 (18): 1506–18. https://doi.org/10.1161/CIRCULATIONAHA.118.037777.
Wikipedia. 2022. “General Data Protection Regulation.” Wikipedia, December.