Ethical AI and Responsible Practices

Key points

  • Eight core ethical principles: transparency, accountability, fairness, privacy, security, safety, human autonomy, beneficence
  • Six types of bias: historical, representation, measurement, aggregation, evaluation, and feedback loop — each requires different mitigation
  • Fairness metrics (demographic parity, equalized odds, calibration, individual fairness) often mathematically conflict; choosing priorities is a governance decision
  • Bias mitigation at three stages: pre-training (data), in-training (constraints/regularisation), post-training (threshold adjustment)
  • Explainability techniques: LIME (local approximation), SHAP (game-theory feature contribution), counterfactuals (what would change the outcome)
  • GDPR Article 22 and EU AI Act create legal rights to meaningful explanations of automated decisions
  • Ethics by design: embed ethical considerations at every lifecycle stage, not as an afterthought
  • Ethical trade-offs (fairness vs accuracy, transparency vs privacy) must be documented, approved, communicated, and periodically revisited

Ethical AI and Responsible Practices

Ethics are central to responsible AI development and deployment. The AIGP exam tests your ability to identify ethical principles, apply them in practice, understand the common types of bias, and recognise how explainability supports accountability.

Core Ethical Principles

Eight principles appear consistently across major AI ethics frameworks globally.

Transparency requires that organisations can explain how their AI systems work, what data they use, and why they produce particular outputs. Transparency is not just about publishing technical documentation; it means making information available in forms that are meaningful to the audience, whether that is a regulator, an affected individual, or a business partner.

Accountability means that clear ownership and responsibility exist for AI outcomes. When an AI system produces a harmful result, it must be possible to identify who is responsible, what decisions led to the outcome, and what remedial actions are available. Accountability requires documented decision-making, audit trails, and a culture where people accept responsibility for the systems they build and deploy.

Fairness demands that AI systems produce equitable outcomes and do not systematically disadvantage individuals or groups based on protected characteristics. Fairness is not a single concept but a family of related ideas, and different definitions of fairness can conflict with each other. Choosing which fairness definition to prioritise is itself an ethical decision that requires stakeholder input.

Privacy protects individuals' personal information throughout the AI lifecycle. AI systems are data-hungry by nature, and the ability to infer sensitive attributes from seemingly innocuous data creates privacy risks that go beyond traditional data protection concerns.

Security protects AI systems against adversarial manipulation, data poisoning, model extraction, and other attacks that could cause the system to behave in harmful ways. Security is not just an IT concern; it is an ethical obligation because security failures can directly harm the individuals affected by the system's decisions.

Safety requires that AI systems do not cause physical, psychological, or financial harm to individuals or communities. Safety encompasses robustness (the system performs reliably under varied conditions), resilience (the system recovers gracefully from failures), and predictability (the system behaves consistently within expected parameters).

Human Autonomy preserves individuals' ability to make their own informed decisions. AI systems should support and augment human decision-making rather than replace it entirely, particularly in contexts where the decisions have significant consequences for individuals' lives.

Beneficence means that AI should be developed and deployed to maximise positive impact for individuals and society. This principle requires proactive consideration of who benefits from an AI system, who bears the risks, and whether the distribution of benefits and risks is just.

Understanding Bias in AI

Types of Bias

Historical Bias exists when the training data reflects past discrimination. A hiring model trained on ten years of hiring decisions will learn the patterns of past hiring, including any discrimination that existed. If the company historically hired fewer women for engineering roles, the model will learn to associate male applicants with engineering roles and penalise female applicants.

Representation Bias occurs when certain groups are underrepresented in the training data. A facial recognition system trained primarily on lighter-skinned faces will perform poorly on darker-skinned faces because it has not had sufficient exposure to learn the relevant features. This is not a theoretical concern; research by Joy Buolamwini and Timnit Gebru demonstrated error rate disparities of up to 34 percentage points across demographic groups.

Measurement Bias arises when the features or labels used as proxies for the concept of interest are imperfect or systematically different across groups. Using postcode as a feature in a credit model may seem neutral but can serve as a proxy for race due to residential segregation patterns.

Aggregation Bias occurs when a single model is applied to groups with different characteristics, assuming a one-size-fits-all approach. A clinical prediction model trained on predominantly male patients may not accurately predict outcomes for female patients if the underlying condition manifests differently.

Evaluation Bias results from using inappropriate metrics or benchmarks that do not capture the relevant fairness dimensions. Optimising solely for overall accuracy can mask poor performance for minority subgroups.

Feedback Loop Bias emerges when an AI system's outputs influence the data it later trains on, creating self-reinforcing cycles. Predictive policing is a classic example: if the model directs more patrols to certain neighbourhoods, more crimes are detected there, which reinforces the model's prediction that those neighbourhoods have more crime, regardless of the true underlying crime rate.

Fairness Metrics

Different definitions of fairness capture different aspects of equitable treatment. Demographic parity requires that the positive outcome rate be equal across groups. Equalized odds requires that both the true positive rate and false positive rate be equal across groups, meaning the model is equally accurate for all groups. Individual fairness requires that similar individuals receive similar predictions, regardless of group membership. Calibration requires that among all individuals given a particular prediction (for example, a 70% probability of loan repayment), the actual outcome rate matches across groups.

These metrics often conflict. It is mathematically impossible to satisfy demographic parity, equalized odds, and calibration simultaneously except in trivial cases. Choosing which metric to prioritise is a governance decision, not a purely technical one, and should involve stakeholder input.

Bias Mitigation Approaches

Bias mitigation operates at three stages. Pre-training mitigation addresses bias in the data through rebalancing (oversampling underrepresented groups), data augmentation, improved labelling practices, and removal of proxy variables. In-training mitigation builds fairness constraints into the model's optimisation process, using techniques like adversarial debiasing or fairness-aware regularisation that penalise the model for producing unfair outputs. Post-training mitigation adjusts the model's outputs after training, for example by applying different decision thresholds to different groups to equalise outcome rates.

Transparency and Explainability

Levels of Transparency

Transparency operates at multiple levels. Data transparency means disclosing what data was collected, from whom, how it was processed, and what biases are known. Model transparency means describing how the AI system works at a level appropriate to the audience. Process transparency means explaining the governance processes that surround the AI system: how it was approved, who is responsible, how it is monitored, and how decisions can be challenged. Decision transparency means explaining why a specific output was produced for a specific input, which is the form most relevant to affected individuals.

Explainability Techniques

When the model itself is not inherently interpretable (as with deep learning), post-hoc explanation techniques can approximate the model's reasoning. LIME (Local Interpretable Model-agnostic Explanations) creates a simple, interpretable model that approximates the complex model's behaviour in the neighbourhood of a specific prediction. SHAP (SHapley Additive exPlanations) uses game theory to calculate each feature's contribution to a specific prediction, providing a theoretically grounded measure of feature importance. Counterfactual explanations answer the question "what would need to change to get a different outcome?" For example, "if your income were £5,000 higher, the loan would have been approved." Feature importance rankings show which features the model relies on most heavily for its predictions overall.

The Right to Explanation

GDPR Article 22 gives individuals the right not to be subject to decisions based solely on automated processing that produce legal or similarly significant effects. When such decisions are made, organisations must provide "meaningful information about the logic involved, as well as the significance and the envisaged consequences." The EU AI Act adds transparency obligations for high-risk AI that go further, requiring detailed documentation and explanations suitable for both deployers and affected individuals.

Ethics by Design in Practice

Integrating Ethics into the AI Lifecycle

Ethics by design means embedding ethical considerations at every stage rather than treating ethics as a compliance checkbox. At the design stage, this means defining the business purpose and assessing whether AI is appropriate, identifying affected stakeholders and potential harms, selecting fairness metrics and performance thresholds, and choosing architectures that support transparency where possible. During development, it means conducting bias audits on training data, testing for fairness across demographic groups, documenting design choices and their rationale, and engaging diverse perspectives on feature selection and model design. Before deployment, it means performing a comprehensive impact assessment, testing the system in real-world conditions with pilot groups, establishing monitoring protocols and escalation procedures, and training operators on the system's capabilities, limitations, and override procedures.

Value Sensitive Design

Value Sensitive Design (VSD) is a methodology that accounts for human values throughout the design process. It involves three types of investigation: conceptual investigation identifies stakeholders, their values, and potential value conflicts; empirical investigation studies how stakeholders interact with and are affected by the technology in practice; and technical investigation examines how system design decisions support or undermine the identified values.

Ethical Trade-offs

In practice, ethical principles often create tensions that require deliberate trade-offs. Improving fairness for one group may reduce overall accuracy. Full model transparency may compromise data privacy or reveal trade secrets. Treating individuals consistently (individual fairness) may produce unequal group outcomes (group fairness). Moving quickly to deploy beneficial AI increases the risk of undetected harms. These trade-offs should be documented with clear rationale, approved by the appropriate governance body, communicated to stakeholders, and revisited as circumstances change.

Practise AIGP questions

Members get the AIGP question bank with explanations, flashcards, timed mock exams, Privacy Pro AI, progress tracking and the Pass Guarantee.