Artificial Intelligence

Chapter 13
Responsible AI, Ethics, Safety and Governance

Post Graduate Program in IT Engineering
Artificial Intelligence   •   Post Graduate

Responsible AI, Ethics, Safety and Governance

Introduction and Context

Artificial intelligence (AI) systems increasingly influence employment, credit, healthcare, education, policing, insurance, scientific research and public administration. Their value arises from their ability to identify patterns and support decisions at a scale and speed that humans cannot match. Their risks arise from the same properties: AI can reproduce historical discrimination, infer sensitive information, operate opaquely, fail unpredictably under changed conditions and distribute responsibility across complex organisations.

Responsible AI is the disciplined design, development, deployment and monitoring of AI so that it produces socially beneficial outcomes while respecting rights, safety, law and professional obligations. It is not a final-stage compliance activity. It is a lifecycle practice involving problem formulation, data collection, model development, procurement, deployment, monitoring, incident response and retirement.

Governance provides the organisational structures and decision rights through which responsible AI is achieved. Ethics supplies principles for judging acceptable conduct; safety addresses prevention and mitigation of harm; regulation establishes enforceable obligations. These domains overlap but are not identical. A system may be legally permitted yet ethically controversial, or technically accurate yet unsafe in a particular operational context.

Learning Objectives

After completing this chapter, students should be able to:

1. Explain fairness, privacy, transparency, accountability, robustness, cybersecurity and human oversight in AI systems.

2. Distinguish ethical principles, governance controls, standards and legal requirements.

3. Apply suitable fairness, privacy and performance assessments while recognising their limitations.

4. Construct a risk-based AI lifecycle and an audit-ready evidence trail.

5. Analyse intellectual-property, societal and organisational implications of generative and predictive AI.

6. Design practical controls for deployment, monitoring, incident response and human review.

1. A Lifecycle View of Responsible AI

An AI system includes more than a trained model. It includes the purpose, data, software, hardware, interfaces, human operators, affected people, business process and institutional context. Consequently, responsibility must be allocated across the system lifecycle:

  • Problem definition: Specify the legitimate purpose, affected groups, alternatives and unacceptable uses.
  • Data and design: Assess provenance, consent, representativeness, quality, labelling and security.
  • Development and validation: Test performance, fairness, robustness, privacy and security using relevant subgroups and realistic conditions.
  • Deployment: Define operating limits, user training, escalation routes, documentation and approval authority.
  • Monitoring: Detect drift, emerging harms, security attacks, complaints and changes in the population or environment.
  • Retirement: Remove access, preserve required records, communicate discontinuation and handle data deletion or retention obligations.

A useful governance principle is proportionality: the intensity of assessment and control should reflect the likelihood and severity of potential harm. A model recommending a playlist does not normally require the same controls as one supporting a medical diagnosis or employment decision. However, low apparent risk should be justified rather than assumed.

2. Ethical Foundations and Competing Values

Common principles include beneficence, non-maleficence, autonomy, justice, explicability and sustainability. They can conflict. Maximising predictive accuracy may reduce equality of error rates; extensive data collection may improve performance while weakening privacy; strict automation may increase consistency while reducing meaningful human agency.

A sound ethical analysis therefore asks:

  • Who benefits and who may be harmed?
  • Which rights, interests and duties are involved?
  • Are affected people able to understand, contest or refuse the decision?
  • Are burdens and benefits distributed fairly?
  • Is the AI approach necessary and proportionate compared with less intrusive alternatives?
  • What happens when the system is wrong, manipulated or unavailable?

The stakeholder approach extends analysis beyond the system owner and direct user. Stakeholders may include data subjects, customers, employees, bystanders, vulnerable communities, regulators, suppliers and future generations. Impact assessments should explicitly identify stakeholders who lack bargaining power or technical representation.

3. Fairness and Non-Discrimination

3.1 Sources of unfairness

Unfair outcomes can arise from historical labels, under-representation, measurement error, proxy variables, sampling bias, aggregation across unlike groups, unequal error costs, feedback loops and deployment conditions. Removing a protected attribute such as gender does not guarantee fairness because other variables may act as proxies. Conversely, protected attributes may be required in a controlled audit to measure disparate outcomes.

Fairness is contextual rather than a single universal metric. Relevant concepts include:

  • Individual fairness: Similar individuals should receive similar treatment under a defined similarity notion.
  • Group fairness: Outcome or error patterns should meet specified criteria across protected groups.
  • Procedural fairness: People should receive consistent procedures, explanations and opportunities to challenge decisions.
  • Substantive fairness: The system should contribute to equitable real-world outcomes, not merely equalise a numerical metric.

3.2 Metrics and incompatibility

For a binary classifier, let TP, TN, FP and FN denote true positives, true negatives, false positives and false negatives. The true-positive rate is

TPR = TP/(TP + FN),

and the false-positive rate is

FPR = FP/(FP + TN),

provided the denominators are non-zero. Equal opportunity seeks similar TPR across groups. Equalised odds seeks similar TPR and FPR across groups. Demographic parity instead compares the positive prediction rate, P(Ŷ=1 | group), across groups.

These criteria can be mutually incompatible. When groups have different base rates and a predictor is imperfect, it is generally impossible to satisfy both calibration and equalised error rates simultaneously, except in special cases such as perfect prediction or equal base rates. Therefore, selecting a fairness criterion requires a normative decision about the harm being addressed.

3.3 Fairness process

A professional assessment should:

1. Define the decision, protected groups, legitimate performance objective and foreseeable harms.

2. Examine data coverage, labels, missingness and measurement quality.

3. Establish subgroup baselines and confidence intervals where sample sizes permit.

4. Test intersectional groups rather than only one attribute at a time.

5. Evaluate interventions such as improved data, threshold changes, reweighting, constrained optimisation or human review.

6. Reassess after deployment because population composition and behaviour can change.

Fairness metrics do not prove justice. Small samples can produce unstable estimates; protected categories may be socially constructed or legally defined differently across jurisdictions; and equal metrics can conceal unequal consequences.

4. Privacy and Data Governance

Privacy concerns the appropriate collection, use, disclosure and retention of information, including information inferred by AI. Personal data may include identifiers, location, biometric data, health records, behavioural traces and model-generated profiles. Privacy risk can remain even when direct identifiers are removed: linkage, membership inference and attribute inference may reveal information.

Core controls include purpose limitation, data minimisation, accuracy, retention limits, access control, encryption, pseudonymisation, secure deletion, provenance records and data-subject rights where applicable. Consent is important but is not a universal solution; it may not be freely given in employment or essential-service contexts, and people may not understand complex future uses.

4.1 Privacy-enhancing techniques

  • Aggregation: Reports group statistics rather than individual records, reducing detail but potentially hiding minority patterns.
  • Pseudonymisation: Replaces identifiers with tokens; it does not make data anonymous if re-identification remains possible.
  • Differential privacy: A mechanism M provides (ε, δ)-differential privacy if for neighbouring datasets D and D′ and every output set S,

P[M(D) ∈ S] ≤ exp(ε)P[M(D′) ∈ S] + δ.

Here, neighbouring datasets differ in one person’s record; ε controls privacy loss and δ is a small failure probability. The guarantee applies to the mechanism and its stated assumptions, not automatically to every downstream use. Repeated analyses consume a privacy budget, and stronger privacy can reduce statistical utility.

  • Federated learning: Training occurs across devices or organisations while updates are aggregated; raw data need not be centralised, but updates can still leak information and participants may be compromised.
  • Secure computation and encryption: These can restrict visibility during processing but introduce computational and operational costs.

Privacy impact assessments should document purpose, data flows, legal basis where relevant, necessity, risks, controls, residual risk and rights-management procedures.

5. Transparency, Explainability and Contestability

Transparency means making relevant information about an AI system available. It has several layers:

  • System transparency: purpose, capabilities, limitations, owner, version and intended users.
  • Data transparency: source, provenance, collection conditions, quality and known gaps.
  • Model transparency: architecture, training process, validation evidence and significant features where disclosure is appropriate.
  • Decision transparency: factors influencing a particular output, confidence or uncertainty, and applicable recourse.

Explainability methods include inherently interpretable models, feature-attribution techniques, counterfactual explanations and example-based explanations. A local explanation describes one prediction; it does not necessarily establish a global causal model. Post-hoc explanations can be unstable or misleading, so they should be validated with domain experts and users.

Meaningful transparency is audience-dependent. A regulator may require technical documentation, an affected person may need a clear reason and appeal route, and an operator may need warnings and confidence information. Transparency must also respect privacy, security and intellectual-property constraints. An explanation that merely restates a model output is not meaningful contestability.

6. Accountability and Organisational Governance

Accountability means that identifiable people and institutions can explain decisions, bear responsibility and provide remedy. It cannot be transferred to an algorithm or eliminated by purchasing a third-party service.

A practical accountability structure assigns:

  • a business owner responsible for purpose and resources;
  • a technical owner responsible for engineering and performance;
  • a risk, privacy or ethics function responsible for independent challenge;
  • operators responsible for appropriate use and escalation;
  • senior governance bodies responsible for acceptance of residual risk; and
  • suppliers responsible for agreed evidence, security and change notification.

Essential records include a system description, intended-use statement, data sheets, model card, risk assessment, test results, approvals, version history, access logs, incidents, complaints, monitoring results and retirement decision. Separation of duties is valuable for high-impact systems: the team that builds a model should not be the sole party approving its deployment.

Audits may be internal, independent or regulatory. An audit should examine evidence rather than rely on assurances. Its scope should include technical performance, data governance, human processes, legal compliance, security and actual outcomes. Audit limitations—such as missing subgroup data, inaccessible proprietary components or weak ground truth—must be reported explicitly.

7. Safety, Robustness and Reliability

Safety concerns preventing unacceptable harm during normal operation, foreseeable misuse and failure. Reliability is the probability of performing as intended under specified conditions; robustness is the ability to maintain acceptable performance when conditions vary or inputs are perturbed.

Important failure modes include distribution shift, sensor failure, out-of-distribution inputs, data poisoning, adversarial examples, automation bias, hallucinated content, unsafe tool use and cascading failures. Testing only on an independent random split may overestimate real-world performance when the deployment population differs from the training population.

Controls include:

  • hazard analysis and failure-mode analysis;
  • defined operating envelopes and confidence thresholds;
  • stress, adversarial and red-team testing;
  • fallback procedures and graceful degradation;
  • rate limits, sandboxing and least privilege;
  • independent validation and release gates;
  • monitoring for drift, anomalous outputs and near misses; and
  • incident response, rollback and post-incident learning.

For high-impact decisions, abstention can be safer than forced prediction. Human review is useful only when reviewers have authority, time, competence and access to relevant evidence. A nominal human in the loop who routinely accepts automated recommendations without scrutiny is not effective oversight.

8. Cybersecurity and AI-Specific Threats

AI systems inherit conventional threats such as unauthorised access, insecure dependencies, poor key management and denial of service. They also introduce specific threats:

  • Data poisoning: malicious training examples alter behaviour.
  • Evasion or adversarial input: crafted inputs cause incorrect outputs.
  • Model extraction: repeated queries approximate a proprietary model.
  • Membership inference: an attacker infers whether a record was in training data.
  • Prompt injection: instructions embedded in input manipulate a generative system or connected tools.
  • Data exfiltration: prompts, logs or model outputs reveal confidential information.
  • Supply-chain compromise: pretrained models, datasets or libraries contain malicious or vulnerable components.

The AI security lifecycle should include threat modelling, asset classification, secure development, dependency and dataset provenance, access control, secrets management, abuse testing, monitoring and recovery. Generative systems connected to tools require explicit authorisation boundaries: model-generated text should not automatically become an executable instruction, financial transaction or irreversible action.

9. Intellectual Property and Data Rights

AI projects raise questions about ownership, licensing, training data, generated outputs, confidentiality and infringement. The legal treatment of training and generated content varies by jurisdiction and continues to develop. Organisations should not assume that publicly accessible material is free to use, or that model output is automatically original, protectable or non-infringing.

Practical controls include maintaining dataset and software licences, recording provenance, excluding confidential or restricted material where required, reviewing outputs for substantial similarity, protecting trade secrets, defining employee and supplier warranties, and specifying ownership and indemnity terms in contracts. Human authorship, creative contribution and jurisdiction-specific rules may affect copyright analysis. Privacy obligations and intellectual-property obligations can also conflict; data minimisation and lawful documentation are therefore essential.

10. Human Oversight and Societal Impact

Human oversight ranges from information-only systems to human approval, intervention, or complete manual fallback. The appropriate level depends on impact, reversibility, speed of decision and the possibility of detecting error. Oversight should be designed, tested and resourced rather than described vaguely.

People affected by AI should have accessible notice, reasons appropriate to the context, a meaningful opportunity to challenge outcomes and timely correction. Appeals should not require specialist knowledge or excessive effort. In employment, education, welfare, healthcare and justice, power asymmetries make procedural safeguards especially important.

Societal impacts include labour displacement and augmentation, concentration of data and market power, unequal access to advanced systems, environmental costs of computation, misinformation, manipulation, surveillance and erosion of professional judgement. An impact assessment should consider second-order effects and feedback loops. For example, predictive policing can direct more police attention to historically over-policed areas, generating more recorded incidents and reinforcing the original prediction.

11. Risk Management, Standards and Regulation

Risk management begins by identifying hazards, affected parties, likelihood, severity, exposure and available mitigations. A simple qualitative matrix may classify risk as low, medium or high, but numerical scores should not create false precision. Residual risk is the risk remaining after controls and must be explicitly accepted by an authorised decision-maker.

A mature governance programme commonly combines:

  • NIST AI Risk Management Framework: Govern, Map, Measure and Manage functions, supporting continuous and lifecycle-based risk management.
  • ISO/IEC 42001: Requirements for an AI management system, including organisational processes and continual improvement.
  • ISO/IEC 23894: Guidance for managing AI-related risk.
  • ISO/IEC 27001: Information-security management controls relevant to AI environments.
  • ISO/IEC 27701: Privacy-information management guidance and controls.
  • OECD AI principles and UNESCO recommendations: Internationally influential principles concerning human-centred values, transparency, robustness, accountability and sustainability.

These frameworks are complementary, not interchangeable. A management-system certification does not prove that every model is fair or safe.

Regulation is jurisdiction-specific. The European Union AI Act uses a risk-based structure, including prohibited practices, high-risk systems, transparency obligations for certain systems and requirements for general-purpose AI. The General Data Protection Regulation may apply where personal data are processed and includes obligations concerning lawfulness, transparency, security and, in relevant circumstances, automated decision-making. Other jurisdictions use sectoral laws, consumer-protection rules, employment law, privacy statutes and voluntary guidance. Organisations must obtain current legal advice rather than treating a general framework as a legal safe harbour.

12. An Integrated Governance Workflow

A practical workflow for an AI project is:

1. Register: Record the system, owner, purpose, users, data, suppliers and affected groups.

2. Classify: Determine impact, legal obligations, prohibited uses and approval level.

3. Assess: Conduct algorithmic impact, privacy, security, safety and human-rights assessments.

4. Specify controls: Define performance targets, fairness criteria, privacy protections, operating limits, human oversight and incident thresholds.

5. Validate independently: Test representative and stress conditions; document uncertainty and limitations.

6. Approve or reject: An accountable authority accepts residual risk with conditions and review dates.

7. Deploy cautiously: Use staged release, user training, logging and rollback capability.

8. Monitor: Track technical metrics, subgroup outcomes, drift, complaints, security events and near misses.

9. Respond: Triage incidents, contain harm, notify required parties, investigate root causes and provide remedy.

10. Review or retire: Reassess after material changes, incidents or environmental shifts; retire systems that no longer meet requirements.

Worked Application: Illustrative Automated Hiring System

Background

A company proposes an AI system to rank applicants for software-engineering interviews using résumés and online assessment data. Historical hiring records are available, but the workforce has been disproportionately drawn from a small number of institutions.

Problem

The proposed target—similarity to historically hired candidates—may encode past preferences rather than job-relevant capability. Résumés may contain proxies for gender, age, socioeconomic status or disability. An apparently accurate model could therefore perpetuate structural exclusion.

Analysis

The team defines the legitimate purpose as assisting, not replacing, trained recruiters in identifying evidence of job-related skills. It maps stakeholders, conducts a privacy assessment, checks licence and retention conditions for résumé data, and examines subgroup representation. Validation uses a temporally separated dataset and reports selection rates, false-negative rates and calibration by relevant groups. The team also tests whether institution name, postcode or employment gaps act as problematic proxies.

Suppose that among qualified applicants, 80 of 100 applicants in Group A are advanced and 60 of 100 in Group B are advanced. The corresponding true-positive rates are 0.80 and 0.60. The disparity is 0.20 percentage points, or a ratio of 0.60/0.80 = 0.75. This is a diagnostic result, not by itself a legal conclusion or proof of discrimination; the organisation must investigate causes, uncertainty, job relevance and applicable law.

Approach and solution

The company removes features lacking a job-related justification, improves data coverage, evaluates a constrained model, and introduces structured human review. Recruiters receive evidence-based explanations and are instructed not to treat the score as a decision. Applicants receive notice, an accessible contact route and a process for correcting inaccurate information. Deployment is initially limited, with monitoring by subgroup and a rollback threshold for material deterioration.

Outcome and learning points

The revised system is approved only as a decision-support tool, subject to quarterly review and independent annual audit. The company documents residual risk and retains a manual process. The case demonstrates that fairness is not achieved by selecting a metric after deployment. It requires purpose definition, data scrutiny, governance, human process design, monitoring and remedy.

Challenges and Limitations

Responsible AI has no universal checklist. Metrics may conflict, social values may be contested, and ground truth may be unavailable. Documentation can become performative if decision-makers ignore it. Independent audits may be limited by proprietary access, weak data or inadequate auditor expertise. Human oversight can fail through automation bias or workload pressure. Privacy techniques involve utility and complexity trade-offs. Regulation differs across countries and changes over time. Finally, many harms are systemic: improving one model may not correct inequitable institutions, market concentration or unequal access.

The appropriate response is not to abandon measurement, but to combine quantitative evidence with qualitative inquiry, stakeholder participation, legal analysis, domain expertise and continuous governance. Responsible AI is best understood as an institutional capability rather than a model feature.

Contemporary Developments and Best Practices

Current practice increasingly addresses foundation models, synthetic media, multimodal systems, autonomous agents and environmental sustainability. Organisations should document model and data lineage, evaluate emergent capabilities, test prompt-injection and tool-use risks, label synthetic content where appropriate, and establish rules for confidential information in prompts. Procurement teams should demand evidence about evaluation, security updates, incident notification and subcontractors.

Best practices include:

  • begin with a clear, legitimate and necessary purpose;
  • use the least intrusive data and retain it only as long as justified;
  • evaluate performance and harms across relevant and intersectional groups;
  • make uncertainty, limitations and recourse visible;
  • separate development from approval and provide independent challenge;
  • design human oversight with authority, competence and time;
  • secure the entire supply chain and restrict model permissions;
  • maintain versioned documentation and reproducible evidence;
  • monitor real-world outcomes, not merely laboratory accuracy; and
  • treat incidents and complaints as inputs to continual improvement.

Chapter Summary

Responsible AI integrates ethical reasoning, technical assurance, organisational accountability and legal compliance across the AI lifecycle. Fairness requires context-specific definitions and subgroup analysis; no single metric guarantees justice. Privacy requires purpose limitation, data governance and, where appropriate, privacy-enhancing technologies such as differential privacy. Transparency must support understanding and contestability rather than merely disclose technical detail. Accountability depends on named owners, evidence, independent review and remedy.

Safety and robustness require testing under realistic variation, secure design, fallback procedures, monitoring and effective human oversight. AI cybersecurity includes poisoning, evasion, extraction, inference, prompt injection and supply-chain threats. Intellectual-property and data rights require provenance, licensing and contract controls. Risk-based frameworks such as the NIST AI RMF and ISO management standards support governance, but they do not replace jurisdiction-specific law or professional judgement. Effective governance is continuous: register, assess, control, validate, approve, monitor, respond and retire.

Key Terms

Responsible AI: Development and use of AI that respects rights, safety, fairness and societal well-being.

AI governance: Structures, policies, roles and processes for directing and controlling AI.

Algorithmic impact assessment: Structured evaluation of an AI system’s likely effects on people and society.

Fairness: Absence or mitigation of unjustified disadvantage in processes or outcomes.

Equal opportunity: A fairness criterion requiring comparable true-positive rates across groups.

Equalised odds: A criterion requiring comparable true-positive and false-positive rates across groups.

Demographic parity: Equality of positive prediction rates across defined groups.

Differential privacy: A formal privacy guarantee limiting the effect of one record on released outputs.

Data minimisation: Collecting and using no more personal data than the purpose requires.

Transparency: Availability of relevant information about an AI system and its operation.

Explainability: The extent to which an AI output can be meaningfully understood.

Contestability: The ability to question, challenge and seek correction of an AI-supported decision.

Accountability: Capacity to assign responsibility, justify actions and provide remedy.

Robustness: Ability to maintain acceptable behaviour under variation or perturbation.

Distribution shift: Change between training conditions and deployment conditions.

Prompt injection: Manipulation of a generative model through hostile or conflicting instructions.

Residual risk: Risk remaining after safeguards are implemented.

Model card: Documentation describing a model’s purpose, performance, limitations and intended use.

Human oversight: Designed human authority to supervise, intervene in or override an AI system.

AI audit: Systematic, evidence-based examination of an AI system and its governance.

Review Questions

Short Answer Questions

1. Why must responsible AI be managed across the entire system lifecycle?

2. Distinguish equal opportunity from demographic parity.

3. What is the purpose of a privacy impact assessment?

4. Explain why a human reviewer may fail to provide effective oversight.

5. Name four AI-specific cybersecurity threats.

Long Answer Questions

1. Explain the main sources of unfairness in AI systems and propose a lifecycle-based mitigation process.

2. Discuss transparency, explainability and contestability, including their relationship to privacy and intellectual property.

3. Compare the roles of ethics, standards, organisational governance and regulation in responsible AI.

4. Explain how robustness, safety engineering and incident response should be integrated into AI deployment.

5. Analyse the governance requirements for a high-impact AI system used in employment or healthcare.

Analytical / Application Questions

1. A classifier has TPR values of 0.85 and 0.65 for two groups. Calculate the percentage-point difference and explain why this result alone does not establish unlawful discrimination.

2. Design an approval and monitoring workflow for a generative AI assistant that can access a company’s internal documents and execute limited business actions.

3. Using the illustrative hiring case, identify three additional risks not captured by selection-rate comparisons and recommend controls for each.

Multiple Choice Questions with Answers

Question 1

Which fairness criterion requires similar true-positive and false-positive rates across groups?

A. Demographic parity

B. Equalised odds

C. Individual fairness

D. Data minimisation

Correct Answer: B. Equalised odds

Question 2

In differential privacy, what does epsilon primarily control?

A. Model accuracy

B. The privacy-loss parameter

C. The number of protected groups

D. The encryption-key length

Correct Answer: B. The privacy-loss parameter

Question 3

Which is an AI-specific cybersecurity threat?

A. Poor office lighting

B. Data poisoning

C. Late project meetings

D. Excessive paper storage

Correct Answer: B. Data poisoning

Question 4

Why is removing a protected attribute insufficient to guarantee fairness?

A. Models cannot use numerical data

B. Other variables may act as proxies

C. Protected attributes are always required for prediction

D. Accuracy automatically becomes zero

Correct Answer: B. Other variables may act as proxies

Question 5

Which practice most directly supports accountability?

A. Deleting all model documentation

B. Assigning named owners and retaining audit evidence

C. Allowing anonymous deployment decisions

D. Using only historical outcomes

Correct Answer: B. Assigning named owners and retaining audit evidence

Question 6

What is distribution shift?

A. A change between training and deployment conditions

B. Encryption of a dataset

C. Removal of duplicate records

D. Equalisation of group outcomes

Correct Answer: A. A change between training and deployment conditions

Question 7

Which statement about human oversight is most accurate?

A. Any human presence guarantees safety

B. Oversight requires authority, competence and ability to intervene

C. Human reviewers should never see model evidence

D. Oversight eliminates the need for monitoring

Correct Answer: B. Oversight requires authority, competence and ability to intervene

Question 8

What does data minimisation require?

A. Collecting every potentially useful variable

B. Using no more personal data than the purpose requires

C. Keeping data indefinitely

D. Removing all security controls

Correct Answer: B. Using no more personal data than the purpose requires

Question 9

Which framework function is part of the NIST AI Risk Management Framework?

A. Govern

B. Advertise

C. Monetise

D. Automate

Correct Answer: A. Govern

Question 10

What is the main purpose of a model card?

A. To replace cybersecurity testing

B. To document purpose, performance and limitations

C. To guarantee legal compliance worldwide

D. To conceal training data provenance

Correct Answer: B. To document purpose, performance and limitations

Artificial Intelligence
Chapter 13 of 15