Algorithmic decision-making systems and the rule of law

Societies and their constitutions evolve over time and, according to several theories, also through different stages. The rule of law is impacted by such evolution. At this point in time, it appears that a paradigmatic change is taking place due to the rapid advancement of digitalisation and algorithmisation of societies, for instance, by means of automated decision-making. What are the challenges for the rule of law when the paradigm of algorithmic society starts to take over societies (in case such a development actually happens)? Is the use of algorithmic decision-making systems, in particular of artificial intelligence (AI), in public administration and courts compatible with the rule of law?

In an attempt to participate in and to steer the use of artificial intelligence at the international level, the Council of Europe adopted in 2024 the Framework Convention on Artificial Intelligence and Human Rights, Democracy and the Rule of Law (CETS 225). After its opening for signature, the European Union and 15 states outside of the EU that are members of the Council of Europe have signed the Framework Convention. In addition, a number of non-European countries that participated in the elaboration of the Convention have signed it.

The EU negotiated the Framework Convention on behalf of its 27 Member States, and at least by the summer of 2026, the Convention has been signed and ratified only by the EU, not by any of its Member States. This may reflect the regulatory situation concerning AI in the EU, where the AI Act of the EU appears to occupy this new legislative area and leaves, as a consequence, no legislative space and legislative power to the Member States, except where the AI Act expects legislative action by the Member States. So far, no state has ratified the Framework Convention. If for instance the United States of America for some reason wanted to take quick action in relation to the regulation of AI, it could ratify the Framework Convention that it signed on 5 September 2024.

The aim of the Framework Convention is to ensure that activities within the lifecycle of artificial intelligence systems are fully consistent with human rights, democracy and the rule of law. In this context, our focus is on the rule of law. The Framework Convention defines AI systems in Article 2 as follows:

A machine-based system that, for explicit or implicit objectives, infers, from the input it receives, how to generate outputs such as predictions, content, recommendations or decisions that may influence physical or virtual environments. Different artificial intelligence systems vary in their levels of autonomy and adaptiveness after deployment.

The definition uses the term “infer”, which means that the AI system uses a statistical method for working out an answer of some kind.

The rule of law is a complex term that has several definitions, but it appears on the basis of Article 5 of the Framework Convention on protecting the integrity of democratic processes and respect for the rule of law and based on the Convention and its Explanatory Report generally, that the rule of law encompasses the principles of legality, legal certainty and non-arbitrariness, along with access to justice, proper administration, and judicial independence.

Leaving aside the interconnected notions of human rights and democracy, the rule of law requires as a minimum that administrative decisions and court judgments are based on the law. However, the use of AI for such determinations leads to situations where the basis is not the law but instead the training data used to construct the pool from which the algorithmic system draws its conclusion pursuant to a statistical formula that produces a prediction of what the decision should be in the concrete case. Depending on the type of the AI system (supervised training, self-training, Large Language Model LLM, etc.), the training data would be constructed on the basis of terminology used in, for instance, previous decisions. From the previous decisions, the materials for the AI-prediction is constructed by means of labelling, which means that human beings identify terms and parts of the words as tokens that appear in decisions and judgments. The AI system then performs the statistical operations on the basis of the tokens to produce the output in the form of actual decisions and judgments.

What this means is that a decision or judgment produced by an AI system is, at best, only indirectly based on the law, although the rule of law requires that such a decision or judgment is directly based on the law. Legal reasoning is carried out by way of logical syllogisms through sentences that generally follow the formula “if-this-then-that” (IFTTT). In such an IFTTT setting, the rule of law can be realized directly on the basis of the law.

The European Commission for Democracy through Law (the Venice Commission) adopted the Updated Rule of Law Checklist in 2025, in which the Venice Commission touches upon both digital administration and the use of AI in courts. It appears that the Venice Commission has not expressed itself on whether or not legal reasoning is a precondition for the fulfilment of the rule of law when AI is used.

As concerns public administration, para 46 of the Checklist makes reference to the AI Convention of the Council of Europe and holds that any use of AI systems by public authorities must be regulated by law. The requirement of law is here to be understood as a requirement of Act(s) of Parliament. Because the EU negotiated the AI Framework Convention of the CoE on behalf of the Member States of the EU and the Framework Convention makes it explicitly possible for the EU to accede to the Convention, it appears that the directly applicable AI Act of the EU is a piece of law that meets the requirement of regulation by law both for the EU itself and the Member States.

According to the Checklist of the Venice Commission, the implementation of AI systems by public authorities must comply with specific requirements for the respect of the Rule of Law, democracy and human rights, which imply procedures for the implementation of AI systems, assessment of the risks associated with the use of these systems, specific technical requirements (in particular transparency and reliability of AI systems), effective remedies, oversight mechanisms of their use and rules related to accountability and responsibility for the use of AI systems. In this context, it seems appropriate to pre-test AI systems in safe normative environments (regulatory sandboxes) before their general implementation, where important risks for, inter alia, the rule of law are at stake.

However, it is probable that the rule of law is at stake at all times when AI is used by public authorities for fully automated administrative decision-making, that is, fully automated in the meaning that there is no human being making the final decision, but it is made entirely by the algorithmic system: if a minimum requirement for the rule of law is legal reasoning (IFTTT), then statistical inference on the basis of training data is not up to the requirement in the context of administrative decision-making. Decisions by public authorities on taxes, social benefits and admission to educational institutions such as universities should not be made by means of statistical methods.

In paras 62 and 63, the Checklist of the Venice Commission tries to mitigate the risks for the rule of law in the meaning of legal certainty when AI is used by public authorities. According to the Checklist,

when a public authority introduces an AI system, its use should ensure that the system’s outputs meet these specific requirements, in particular with regard to (1) knowing that the decision is taken by an AI tool; (2) being confident that the output is consistent with the law; (3) being able to foresee the possible outcomes an AI tool may produce. This implies the need for certain specific technical requirements for AI systems before they can be used by public authorities, such as reliability (which includes robustness, accuracy, performance and other prerequisites related to data, cybersecurity (safety and security) and transparency (which encompasses explainability and interpretability).

Therefore, provided that these safeguards for legal certainty are in place, it would be acceptable from the point of view of the rule of law to make formal decisions by public authorities by using AI in a fully automated manner. The problem especially in relation to point 2) above is that AI, which is a machine-learning-based model, is not actually consistent with the law, but instead with the learning data it is trained on, which may be, for instance, a large number of previous decisions.

The Finnish law, established in Section 53 e of the Act on Administrative Procedure (487/2023), assumes another position by requiring the use of rule-based algorithmic systems for fully automated decision-making and by excluding such algorithmic systems from fully automated decision-making that are based on statistical inferences. In effect, the use of AI by Finnish authorities for fully automated decision-making is precluded, and for good reason: fully automated public decisions should not be based on statistical inferences. Instead, such decision-making, if automated, should be based on legal reasoning of the IFTTT type. Machine-learning-based applications could be used in advisory or supporting roles only, but in such cases, it should be made sure that the output of the AI system is not immediately turned over by a civil servant into a formal decision without proper consideration of the AI output in the context required by the law.

As stated in the Rule of Law Checklist of the Venice Commission, the use of AI systems in the judiciary requires specific guarantees. The judiciary’s use of AI is dealt with in paras 125-131 of the Checklist. It appears that for the decision-making of courts, a human being should always be the final decision-maker, while AI systems could be used in supporting, advisory and assisting roles, but within certain boundaries. From the point of view of the rule of law, this appears to be the correct position. However, even in an assisting capacity, the use of AI systems in courts requires special attention.

While stating in para. 125 that the use of digital technologies within the judiciary can improve its efficiency and contribute to a better guarantee of individuals’ rights, it is at the same time recognized that the use of digital technologies can pose risks for individuals’ rights: diminishing the guarantees of the right to a fair trial, reproducing, perpetuating and exacerbating existing bias and prejudices, affecting the right to data protection, protection of the privacy of those involved in proceedings, protection of victims or inequality in individuals’ access to technology. Both the advantages and the risks require that their deployment in the judiciary be provided for by law and be accompanied by transparent governance frameworks and continuous human oversight.

As concerns the courts, the Checklist is based on the distinction between fully automated algorithmic systems and support systems in para 127:

A distinction should be made between AI systems used to improve the administrative management of justice and those intended to be used in the exercise of judicial functions. While the former should be subject to the general requirements for the use of AI systems by public authorities, the latter require careful implementation in order to guarantee citizens’ rights to a fair trial.

In para. 128, the main point regarding the use of AI systems in courts is made in the following manner:

[A]ll judicial decisions related to investigation, assessment of facts and application of the law to concrete cases should be made by judges on their own responsibility. AI systems may assist judges in certain tasks facilitating decision-making (e.g. legal research, evidence discovery and classification, pre-filling standardised field for judgments, sending notification about deadlines etc.), but a fully automated decision by the AI system should not be allowed.

The point of departure for judicial decisions is therefore different in comparison with administrative decisions: the Checklist allows for administrative decision-making by fully automated AI-systems but denies this for judicial decision-making, except in supporting functions. However, if AI systems are used in judicial functions, AI-generated outputs should be fully traceable and explainable to enable human oversight and accountability. Explainable AI (XAI) should therefore be used when AI systems are used in supporting decision-making in judicial contexts. Therefore, the conclusion seems to be that the Checklist does not entirely exclude the use of AI systems for making actual judicial decisions in courts. Consequently, it is worrying from the point of view of the rule of law that statistical inferences could, at all, be used by courts in their decision-making.

In para. 154 of the Checklist, reference is made to UNESCO’s 2024 Global Toolkit on AI on the Rule of Law for the Judiciary (p.136):

‘[B]lack box’ AI systems make it impossible for legal professionals such as judges, attorneys, and prosecutors to comprehend the rationale behind the outcomes of the system, which complicates the justification and appeal of the decision.

This is indeed a complication, because (and as stated in para. 130), the law should provide accessible and effective remedies for human rights violations resulting from the operation of AI systems.

These remedies should make it possible to challenge (i) the public decision to implement a particular system; (ii) its design; (iii) its use in a specific case; and (iv) the recommendations it generated in that case. For these remedies to be effective, individuals must have access to understandable information about how the AI system reached its conclusions or made the specific recommendations.

The Court of Justice of the European Union commented on such complications in its decision C-‑817/19 Ligue des droits humains v Conseil des ministres, Judgment of the Court of Justice of the European Union (Grand Chamber) of 21 June 2022. The case deals with passenger name registers maintained for persons travelling into the EU from third countries among which persons the EU has the interest to identify, inter alia, potential terrorists.

What appears clear on the basis of the CJEU case is that machine-learning applications are suspect from the point of view of the individual. The CJEU goes further in evaluating the consequences of a machine-learning application. A national Passenger Information Unit (PIU) is given the authority under Article 6(3)(b) of the PNR Directive to process PNR data against pre-determined criteria for the purposes of identifying persons who may be involved in a terrorist offence or serious crime (Para. 193). The term “pre-determined criteria” is central to the interpretation of the provision, and the CJEU is relying here very much on the understanding of the Advocate General, where the AG’s Opinion in the case held that the ‘requirement precludes the use of artificial intelligence technology in self-learning systems (‘machine learning’), capable of modifying without human intervention or review the assessment process and, in particular, the assessment criteria on which the result of the application of that process is based as well as the weighting of those criteria’ (Para. 194. See also Para. 228 of the Advocate General’s Opinion). The AG expressed himself also on the transparency of machine-learning systems, on the traceability of the findings, on the understandability of such systems and on the identifiability of algorithmic decision-making. The CJEU thus at least rules out the use of more dynamic machine-learning systems.

The CJEU underlined that the use of such technology would be liable to rendering ‘redundant the individual review of positive matches and monitoring of lawfulness required by the provisions of the PNR Directive’. According to the CJEU, this is so due to ‘the opacity which characterises the way in which artificial intelligence technology works’, because ‘it might be impossible to understand the reason why a given program arrived at a positive match’. A legal consequence of the use of such technology could thus be that the data subjects are deprived of their right to an effective judicial remedy enshrined in Article 47 of the EU Charter of Fundamental Rights, although the PNR Directive actually seeks to ensure a high level of protection in that regard, in particular in order to achieve the non-discriminatory nature of the results obtained (Para. 195).

Obviously, the fact that the reasons for arriving at a certain result cannot be established after the decision has been taken is a serious impediment to using AI. The argument gains overriding importance when connected to the individual’s right to an effective judicial remedy, established not only in Article 47 of the EU Charter, but also in several human rights conventions and national constitutions, including Section 21 of the Constitution of Finland. This complication is clearly one that impacts the rule of law.

What this means is that the national Passenger Information Units should not use machine-learning systems for profiling potential terrorists among all passengers that come under the application of the PNR Directive. The understanding by the CJEU of a machine-learning system may leave some simpler forms of machine-learning within the range of applications that could be used by the national Passenger Information Units, but even with the simpler applications, the Black Box phenomenon is present. And even with the simpler forms of machine learning applications, the result is still retrieved by means of statistical methods from a large number of earlier decisions or data, not on the basis of rules that are based on provisions of the applicable law.

Therefore, the rule of law is at risk even when an Act of Parliament would state that AI systems should be used. The risk is there both when AI is used for fully automated decision-making and supporting functions, but the risk is greater when AI is used for fully automated decision-making, which the Checklist allows for administrative decision-making. It is good that the Checklist is restrictive as concerns the use of AI for judicial decision-making, but it should also be restrictive concerning administrative decision-making.

About the Author

  • Markku Suksi is Modeen professor of public law at Åbo Akademi University.


Discover more from Talking Rights

Subscribe to get the latest posts sent to your email.