Responsible AI development means building an AI system so that you know what it is for, who it can harm, how well it works for each group of people it affects and who can overrule it, and so that you can show all of this to someone else later. In practice it comes down to a few habits: write down the intended use and the cost of mistakes before you build, check what your training labels really measure, test results per group against a threshold agreed in advance, give a competent person the power to override the system, and keep checking after launch. In the EU some of this is now law: the AI Act's transparency duties have applied since 2 August 2026, and the rules for high-risk systems such as CV screening and credit scoring start on 2 December 2027.
We're a small team in Ankara that builds AI features for clients, and a few of the examples below come from that work.
What the principles boil down to
The big frameworks agree on the substance. The NIST AI Risk Management Framework, released in January 2023 for voluntary use, describes trustworthy AI as valid and reliable, safe, secure and resilient, accountable and transparent, explainable and interpretable, privacy-enhanced, and fair with harmful bias managed. UNESCO's 2021 Recommendation on the Ethics of AI and the OECD AI Principles use different words for the same ideas.
Agreeing with the principles is easy. The hard part is turning "fair" or "transparent" into something a developer can test on a Tuesday afternoon. NIST's four functions give a usable order: Govern (who is responsible), Map (what the system does and to whom), Measure (test it), Manage (act on what you find).
How much of this you need
Not every AI feature deserves the full treatment. Spend the effort where an output changes something for a person who can't easily check it or appeal:
- decisions about people: hiring and promotion, credit, insurance pricing, admissions and grading, public benefits, allocating work
- anything a clinician, coach or engineer acts on, where a wrong answer can hurt someone physically
- content presented to the public as fact, and generated images or audio of real people
An internal tool where a person reads every output before anything happens, such as drafting replies or summarizing tickets, needs much less: an evaluation set, a clear label that it is AI, and sensible handling of personal data.
Some problems don't need a trained model at all. Oplist, a hospital shift-scheduling SaaS we build for, uses an optimization solver instead of machine learning. Its rosters have to respect rest periods after night shifts, department staffing targets and a fair spread of unpopular shifts, and managers review and approve them in one place. In a solver, fairness is a rule written into the model, so you can check any roster against it. A model trained on last year's rosters would instead learn whatever unfairness those rosters contained, and you would only find it by measuring.
Before you build: write down the use and the cost of mistakes
Do this on one page, before any code, with someone from the business side in the room. Answer five questions, and write down the numbers for the last one before anyone sees test results; a threshold chosen afterwards tends to settle just below whatever the model scored.
- What decision does the output feed, who acts on it, and what is it explicitly not for?
- Who is affected? The users of the tool and the people the output is about are often different groups.
- What does each kind of error cost? Wrongly sending a customer to fraud review and missing a real fraud case hurt different people in different ways.
- Who can overrule the system, and what happens when they do?
- What counts as good enough, in numbers, including the largest gap between groups you will accept?
Check what your labels actually measure
A model learns the target you give it, and the target is often a stand-in for what you really care about. The best-known case is a commercial algorithm that US health systems used to pick patients for extra care programs. Obermeyer and colleagues showed in 2019 that it predicted future health costs as its measure of need. Less money had historically been spent on Black patients with the same level of illness, so the algorithm rated them healthier than they were. Fixing the bias would have raised the share of Black patients receiving additional help from 17.7% to 46.5%.
Nothing in the model's code had to be wrong for this to happen. The error sat in the choice of target. Historical decisions carry the same risk: a hiring model trained on who was hired in the past learns the past hiring process, habits included.
So before training, ask of every label who produced it, through what process, and which groups that process may have treated differently. If the answer worries you, change the label (in the health case, a direct measure of illness) before you try to fix the model.
Measure results for each group
Overall accuracy hides who the errors fall on. Hold out a test set that looks like the people the system will meet, then compare the numbers group by group. Fairlearn, an open-source Python library, does the bookkeeping with MetricFrame:
import pandas as pd
from fairlearn.metrics import (
MetricFrame, count, selection_rate,
true_positive_rate, false_positive_rate,
)
df = pd.read_csv("holdout_predictions.csv") # y_true, y_pred (0/1) and group columns
mf = MetricFrame(
metrics={
"n": count,
"selection_rate": selection_rate,
"tpr": true_positive_rate,
"fpr": false_positive_rate,
},
y_true=df["y_true"],
y_pred=df["y_pred"],
sensitive_features=df[["sex", "age_band"]],
)
print(mf.by_group) # every metric for every sex and age-band combination
print(mf.difference()) # largest gap between groups, per metric
print(mf.ratio()["selection_rate"]) # lowest selection rate divided by the highestThe n column matters more than it looks. Once you split by two attributes, some groups may have a few dozen cases, and a gap measured on 40 people is often noise. Report group sizes next to the gaps, and collect more data for small groups before you draw conclusions about them.
Which gap to care about
Metric | Equal across groups means | Use it when |
|---|---|---|
Selection rate (demographic parity) | The same share of each group gets a positive decision | You hand out an opportunity and don't trust the historical labels |
True positive rate (equal opportunity) | Qualified people are found equally often in every group | Missing someone is the main harm: a suitable candidate rejected, a patient not offered care |
False positive rate | People are wrongly flagged equally often | Being flagged is the harm: fraud reviews, extra checks |
Calibration within groups | Of the people scored 0.7, about 70% turn out positive, in every group | People read the score as a probability and act on it |
You can't have all of them at once. Kleinberg, Mullainathan and Raghavan proved in 2016 that a risk score can't be calibrated within each group and also treat the positive and negative cases of every group alike, except in special cases such as perfect prediction or groups with equal base rates. Alexandra Chouldechova reached a similar result studying recidivism scores. Choosing the metric is therefore a decision about which harm matters most. It belongs to whoever owns the product, with the reasoning written down.
For the threshold, a common starting point is the four-fifths rule from the US Uniform Guidelines on Employee Selection Procedures: a group's selection rate below 80% of the highest group's rate is generally regarded as evidence of adverse impact. The same rule says smaller differences can still count, so treat a ratio under 0.8 as an alarm and a ratio above it as no guarantee. Don't lean on it as a legal standard, though: in June 2026 the US Justice Department's Office of Legal Counsel found the guidelines' disparate-impact approach unconstitutional, and OPM has since removed references to them from federal personnel rules.
You need group data to measure any of this
You can't measure a gap between groups you haven't recorded. Sex and age band are usually available and are not special-category data under the GDPR. Ethnic origin and health are, and processing them is prohibited unless one of the exceptions in Article 9(2) applies. The EU's 2026 Digital Omnibus on AI added an Article 4a to the AI Act that lets providers and deployers process special-category data where this is strictly necessary to detect and correct bias, with safeguards: the data must be pseudonymized and access-controlled, may not be passed to other parties, and must be deleted once the bias is corrected. Plan this with your data protection officer before you build the test set.
Fix the data first, then the model
Try the mitigations roughly in this order:
- Fix the data. Collect more examples for under-represented groups, correct bad labels, and drop features that act as proxies for a protected attribute (postcode often does).
- Train with a constraint. Fairlearn's reductions methods, for example
ExponentiatedGradientwith anEqualizedOddsconstraint, trade some accuracy for a smaller gap. - Adjust decision thresholds per group after training. Fairlearn's
ThresholdOptimizerdoes this, but it needs the protected attribute at decision time. In hiring or lending, using someone's sex or ethnicity to set their threshold can itself count as direct discrimination, so get legal advice before you ship it.
Whatever you choose, put the gap, overall accuracy and group sizes from before and after the fix in one report, and have the product owner sign off on the trade-off, for example halving a gap at the cost of two points of accuracy.
Human oversight that isn't a rubber stamp
"Human in the loop" fails quietly when the human approves everything. The AI Act's rules for high-risk systems name the problem: the people overseeing a system must remain aware of automation bias, the tendency to over-rely on its output, and must be able to disregard, override or stop it (Article 14). Deployers have to give that job to people with the competence, training and authority to do it.
Most of this is interface design. Show the evidence behind an output next to the verdict. Make overriding as quick as approving. Track how often reviewers change things: an approval rate near 100% with review times of a few seconds means nobody is reviewing.
In the exercise program generator we built for a US sports physiotherapy clinic, changing the AI's output is part of the normal workflow. An LLM drafts strength and rehab programs, retrieving from the clinic's library of 1,800+ exercises, and coaches start from that draft: they add athlete notes, regenerate, swap exercises for alternatives, rate the result with a thumbs up or down, and export a printable program. In 2026 we're adding stored AI-versus-coach comparisons, so the generator's logic can be checked against past athletes.
Testing LLM features
Many AI features now call a large language model instead of a model you trained yourself. Fairness metrics built for yes/no predictions don't map neatly onto generated text, but the questions from the one-page note still apply; you answer them with different tests:
- Build an evaluation set from real cases before launch, with the correct answers agreed with the people who do the work. For a field-ticket extraction workflow we built with an agency partner for an oilfield services company in Canada, we tested the LLM extraction on real tickets for a month before it went live in September 2025.
- Slice the error rate by whatever might matter: document type, language, customer, the names or dialect in the input. A system that reads English documents well and Turkish ones badly has a fairness problem even if nobody calls it that.
- Alert on missing or malformed output. Our engineer embedded at Jenesys AI, a London fintech whose assistant proposes bookkeeping entries from invoices and receipts, built checks that raise an alert when the category, VAT rate or tracking category comes back empty, so those gaps no longer pass silently.
- Tell people when they're dealing with an AI. Article 50 of the AI Act, applying since 2 August 2026, requires systems that interact with people to make clear they are AI unless that is obvious, and requires generative systems to mark their output as machine-generated in a machine-readable way. Generative systems placed on the market before 2 August 2026 have until 2 December 2026 for the marking.
- Send the model only the personal data the task needs, and know where the provider processes it.
After launch: monitor, re-test, write it down
A model that passed its fairness check in March can fail it in October, because the people using the product change. Log inputs, outputs and human overrides. Re-run the per-group report on fresh data on a schedule; quarterly is a sensible start for most products, monthly for high-volume decisions. Agree in advance who gets alerted when a gap crosses the threshold. Our MLOps guide covers the monitoring side.
Keep one living document per system, in the spirit of a model card: intended and out-of-scope uses, data sources and known gaps, per-group results with group sizes, the metric you chose and why, mitigations and what they cost, and who owns the system. For high-risk systems under the AI Act this grows into the formal technical documentation of Annex IV, which our post on AI governance covers in more detail.
Where the rules stand in October 2026
The EU AI Act entered into force on 1 August 2024 and its obligations arrive in stages. The Digital Omnibus on AI, adopted on 8 July 2026, moved the high-risk dates back. The current timetable:
- 2 February 2025: prohibited practices such as social scoring and manipulative techniques, plus an AI literacy duty that the Omnibus has since softened: providers and deployers must take measures to support AI literacy, without having to guarantee any particular level.
- 2 August 2025: obligations for providers of general-purpose AI models, and the penalty regime.
- 2 August 2026: most remaining provisions, including the Article 50 transparency duties.
- 2 December 2026: new bans on AI systems that generate sexual deepfakes of identifiable people without their consent, or child sexual abuse material.
- 2 December 2027: obligations for the high-risk uses listed in Annex III, such as employment, credit scoring, education and access to essential services. This was originally 2 August 2026.
- 2 August 2028: high-risk AI in products covered by EU product-safety law (Annex I), originally 2 August 2027.
The Act reaches beyond the EU. It covers providers that place systems on the EU market wherever they are based, and providers and deployers outside the EU whose system's output is used in the EU. Fines go up to €35 million or 7% of worldwide annual turnover for prohibited practices and up to €15 million or 3% for most other breaches; for SMEs and start-ups the lower of the two figures applies.
The GDPR still applies to the personal data underneath, including Article 22 on decisions based solely on automated processing that have legal or similarly significant effects. In the US, the NIST AI RMF remains voluntary and is being revised under the White House AI Action Plan. ISO/IEC 42001 (published in 2023) is the standard to look at if a customer wants a certifiable AI management system.
Frequently asked questions
What is the difference between AI ethics and responsible AI?
AI ethics asks what an AI system should and shouldn't do, and who it may treat unfairly. Responsible AI is the set of practices that answers those questions inside a real project.
Does a small team need an AI ethics board?
Usually not. A named owner for each AI system, a one-page impact note, a per-group test with a threshold agreed in advance and a date for the next review cover most of what a board would ask. Bring in outside review when the system makes high-risk decisions about people.
Isn't it enough to leave sex and ethnicity out of the model?
No. Other features often stand in for them (postcode, first name, the school someone attended), so the model can still sort people along the same lines. Leaving the attribute out of training is fine. Leaving it out of the test data means you can no longer see the gap, so keep it for evaluation, under the data-protection conditions above, even if the model never sees it.
We build on someone else's model. Who is responsible?
Mostly you. In AI Act terms, a company that builds a chatbot on a third-party model and offers it under its own name is the provider of that AI system; the model's maker has separate duties as a provider of a general-purpose AI model. The Article 50 duty to tell people they are dealing with an AI is yours, and so is the evidence that the system works for your users. Under the GDPR you are usually also the controller of the personal data you send to the model.
If you're planning an AI feature and want help with the risks or the build, here is how we work on data and AI projects.
Related Articles
MLOps Guide: What to Set Up First, and What Can Wait
MLOps gets a model into production and keeps it useful there. Here is the order we'd set it up in, with current MLflow and DVC examples, and what changes for LLM features.
Read More: MLOps Guide: What to Set Up First, and What Can WaitComputer Vision Applications: Where It Works and Where It Struggles
Where computer vision works today, from inspection lines to invoices and medical scans, what makes some applications hard, and when a general vision model saves you training your own.
Read More: Computer Vision Applications: Where It Works and Where It StrugglesAI Agent Development: When You Need One and How to Build It
An AI agent is a language model working in a loop with tools. When you need one, the loop in Python, choosing a framework, keeping it safe, and what each run costs.
Read More: AI Agent Development: When You Need One and How to Build It
