Three lessons from our AI projects
Over two years, we supported dozens of AI projects, from initial exploration to a model that runs every night. Some went exactly as planned; others…
AI has considerable power, and with that comes great responsibility. Ethical questions about AI are no longer just philosophical: they now have practical implications that governments and businesses need to examine. To address this, the EU has set out seven pillars of Responsible AI[1]:
This blog focuses on the steps companies can take to develop and deploy responsible AI. There is much more to say about ethics and AI beyond what we cover here. Rather than looking at systems such as self-driving cars or drones, which face ethical dilemmas, we will look at everyday algorithms that people encounter regularly.
First, let’s discuss bias. In this context, it means something like a distortion of reality. Poor data leads to poor models and outcomes. If an algorithm is used to recognise dogs in photos, but the model repeatedly misses photos that clearly show a dog or classifies a blueberry muffin as a chihuahua [2], that gives us reason to think the model is not working as well as it should. Perhaps the input data was poorly labelled or unrepresentative, there was something wrong with the model’s configuration, or there were problems with overfitting or underfittin
The consequences of misclassification in these examples are not far-reaching. But what if a facial recognition model is used to identify criminals? If the model wrongly identifies someone as a criminal, the consequences could unjustly change that person’s life. The problem may lie in how the algorithm is optimised, but a more insidious cause may be bias embedded in the training data. Machines learn only from what you show them – they do not account for nuanced contextual or cultural factors. An algorithm that assesses whether a female applicant is suitable for a role may give her a lower score if the model was trained on historical data in which men are overrepresented. Conversely, datasets in which minorities are overrepresented can lead an algorithm to label these people as ‘higher risk’. This can create a situation in which a group is more likely to go to prison or receive a longer sentence (causing these groups to be overrepresented in new data, increasing the risk that they will go to prison more often, which…).
Sources of potential bias in machine learning (ML) systems include [3]:
Organisations need to think carefully about the data used to train a model and the potential sources of bias in the dataset. The data must be representative. Preventing bias is, of course, ideal. Continued monitoring for bias in the algorithm can help minimise its influence on decisions. Data scientists develop the algorithms, but the responsibility cannot rest entirely on their shoulders. Everyone involved in an AI project has a part to play in actively preventing bias so that decisions are sound and ethical.
A previously published blog on explainability and explainable AI (XAI) and why they matter describes how XAI provides insight into how decisions are made and which features play a role. This ‘explainability’ can help prevent unfair outcomes and identify errors in the system early. Explainability is related to transparency. While explainability focuses mainly on a model’s output, transparency is more about the processes that precede training an algorithm and putting it into production: the input data, analytical choices and how the algorithm works.
As an end user, you usually have little visibility into the training data: where it came from, how it was cleaned and exactly which features the model was trained on. You ‘just have to trust’ that the algorithm works in your interests. Being transparent with the public and allowing end users to provide feedback may help build trust in algorithms. The municipality of Amsterdam provides a good example with its algorithm register. The idea is that automated public services should respect the same principles as other municipal services – including being open and accountable, treating people equally, and not restricting their freedom or say in decisions.
Full transparency is not always possible, for example when algorithms are, or have to remain, secret. Take fraud detection at the Dutch Tax and Customs Administration. If it disclosed the algorithm, fraudsters could complete their tax returns in a way that would let them evade detection. For commercial companies, too, releasing an algorithm is not always desirable. Google has proposed using ‘model cards’ to give both experts and non-experts insight into models. Model cards can include information about a model’s performance, the data used, its limitations, ethical risks and the strategies used to address them. A Model Card Toolkit is available that works with scikit-learn to create reports like these. This approach could allow companies that do not want to reveal every detail of their algorithm to be more transparent about the algorithms they use. Even so, transparency is like ‘looking through a window’: you only see what the window lets you see.
Under Article 22 of the GDPR, the final decision generally cannot be left to an algorithm alone when it could have a significant impact on a person’s life:
“The data subject shall have the right not to be subject to a decision based solely on automated processing, including profiling, which produces legal effects concerning him or her or similarly significantly affects him or her.”
In practice, people often find it difficult to go against an algorithm. After all, they may assume the computer knows better. So when a person has to review an algorithm’s decision, it is important that automatic approval is not enabled.
We live in a society where algorithms continually influence what we do. Algorithms are also increasingly making decisions that affect our lives, for example when we apply for a loan or mortgage. People, not the algorithm itself, bear the greatest responsibility for the ethical implications. It is therefore important to consider which data you use to train a model and to prevent potential bias from leading to unfair decisions. Within an organisation, this responsibility should not rest entirely with data scientists; everyone involved in the project should be part of the discussion. Being transparent about the choices made when developing an AI system creates opportunities for feedback and gives end users more confidence in the system. The organisation must document all the considerations behind those choices. People must also always be able to reverse a decision prepared by an AI system. There is a great deal of trust in AI, and we need to work to ensure that trust is justified.
Would you like to know more about this subject or see examples of how we approach it in our projects? Get in touch for more information, with no obligation!
Over two years, we supported dozens of AI projects, from initial exploration to a model that runs every night. Some went exactly as planned; others…
Many organisations have now run an AI pilot. The model works, the demo gets applause, and then nothing else happens. In our experience, most projects…
Artificial Intelligence is developing rapidly. New models appear almost every week, and more and more organisations are experimenting with AI. At the…
Want to be the first to hear about a new blog post?
Thanks for signing up!