Local Insights: AI, the law, and the question of accountability - part 1

HB&O Legal is an Accra-based firm with a team of experienced lawyers who provide comprehensive corporate, commercial, and litigation services. In the first in a two-part miniseries, partner and AI thought leader Kwaku Osei Asare explores the legal and practical consequences of AI-based decisions being made within business.

OPINION

In September, I joined a room of entrepreneurs, developers, and business people at One Vecta Africa AI Week in Accra to discuss intellectual property, liability, and contracts. Much of the conversation was refreshingly practical. People were developing products and buying services. They wanted to know what their agreements meant, whether their businesses were protected, and who would bear the loss if a system failed.

A few weeks later, I chaired a session on data and AI ethics, algorithmic bias, and legal frameworks at the International Bar Association’s annual conference in Copenhagen. The panelists stressed the need for AI to be answerable in law; addressed the difficulty of obtaining evidence to challenge an automated decision; and drew attention to the condition of African legal data.

Their contributions raised a question worth pursuing. When an automated system makes a decision that matters to a person, such as refusing a loan, rejecting a job application, or withdrawing a benefit, can that person find out that a machine was involved, what information it used and why it reached its result?

And can anyone be held to account for it? This is a question of law. Another statute, however comprehensive, cannot answer it on its own. In this two-part article series, I consider four matters: what the existing law provides and where it stops; the difficulty of proving how an automated decision was made; the contracts on which businesses acquire AI; and the use of AI within organisations without supervision.

The law already applies

In Ghana, AI operates within an established legal order. The law of contract, intellectual property, data protection, employment, and regulated financial services continues to apply when a decision is assisted by software. The Constitution continues to apply when a public authority uses an algorithm.

Article 23 of the Constitution requires administrative bodies and officials to act fairly and reasonably and to comply with the law. It gives persons aggrieved by their decisions the right to seek redress before a court or other tribunal. Article 18(2) protects privacy within its terms. A public institution remains responsible for its decision when it buys the system that produced it.

The Data Protection Act, 2012 (Act 843) goes further. It deals specifically with decisions which significantly affect an individual and which are based solely on the automated processing of his personal data. Two provisions matter.

First, section 35(1)(d) obliges a data controller, when an individual requests access to their personal data, to inform them of the logic or rationale behind such a decision.

Second, section 41 gives the individual three rights. They may, by notice in writing, require the data controller to ensure that decisions which significantly affect them are not based solely on automated processing. Where such a decision is nevertheless taken, the data controller must notify the person as soon as reasonably practicable that it was taken on that basis. They may then, within twenty-one days, require the data controller to reconsider the decision, and the data controller must inform the individual in writing within twenty-one days of the steps it intends to take.

The exceptions are wide

These rights are subject to important exceptions. Under section 41(4), section 41 does not apply to a decision made in considering whether to enter into a contract with the individual, with a view to entering into that contract, or in performing it. Nor does it apply to a decision made for a purpose authorised or required by an enactment, or in other circumstances prescribed by the Minister.

The practical effect is considerable. 

A bank deciding whether to lend is considering whether to enter into a contract. A person refused a loan by an automated credit system therefore cannot rely on section 41 to be notified of the decision or to have it reconsidered. The same is likely to be true of many decisions on insurance, employment and the supply of services. Section 35(2) adds a further limit. The right to be told the logic or rationale of a decision does not apply where the data constitutes a trade secret.

Ghana has recognised the problem of automated decision-making since 2012. The protection, however, is narrow in scope. The rights that remain also depend on the individual knowing of them and asserting them in writing. A legal right and the practical ability to enforce it are different things.

The difficulty of proof

Suppose a person is denied a service, marked as a poor employment prospect or excluded from a public benefit on the strength of an automated assessment. The person may not know that software was involved. If they do, they may still have no access to the information used, the version of the system in use, the record of the decision, or the extent of any human review.

The organisation responsible for the decision may itself be unable to explain the result. Its supplier may rely on confidentiality or trade secrecy. Relevant records may not have been kept. The right to complain then exists on paper, but the means of proving the complaint are missing.

This difficulty is particular to AI. Many AI systems reach their results through statistical patterns which even their developers cannot fully trace. Suppliers also treat their models and training data as trade secrets, and section 35(2) of Act 843 already gives trade secrets priority over the right to an explanation. Commercial confidentiality deserves protection, but it should not end the inquiry. Regulators, courts and independent experts should be able to examine the system, its records and its data under orders that protect confidentiality. This would rarely require the publication of source code. It would prevent a decision-maker from hiding behind a machine whose workings no one is prepared to examine.

The law already places responsibility on the person who makes a decision. 

A bank, an employer or a public body remains liable for its decision, and the fact that an AI system produced it is no defence. The difficulty lies in proving what happened, and in sharing responsibility between the organisation that used the system and the developer that built it. Reform should address these questions directly. Who must preserve the inputs and outputs? What audit trail must be maintained? How is genuine human review distinguished from a person approving a computer-generated result? What should happen when the information needed to challenge a decision is held only by the party whose decision is challenged? 

These are legal questions with immediate practical consequences.

This article is the first in a two-part series where Kwaku Osei Asare, a partner and co-founder of HB&O Legal, explores the challenging legal and practical issues of AI-powered decisions being increasingly made within businesses. The second part will address the contracts on which businesses acquire AI, and the use of AI within organisations without supervision.