Hammer Plate
Blog Image

AI & Evidences in Criminal Cases in Pakistan

By Muhammad Zaheer | 06 May, 2026

Beyond Reasonable Doubt in the Algorithmic Age: AI and its Impact on Evidence in Criminal Cases

Introduction: The Jurisprudential Shift

The cornerstone of Islamic and Pakistani criminal jurisprudence rests upon the immutable maxim: "Ten guilty persons should escape rather than that one innocent suffers." For over a century, our courts have measured proof against the yardstick of human perception, ocular testimony, and physical vectors. However, the dawn of the Fourth Industrial Revolution technologies has forced an unprecedented paradigm shift upon our adversarial system. Artificial Intelligence (AI) has mutated from a futuristic administrative convenience into an active, disruptive participant in the creation, manipulation, and analysis of criminal evidence (Farid, 2025).

As legal practitioners, we are no longer just dealing with physical exhibits or basic digital records governed by classical rules. We are confronting algorithmic outputs, deepfakes, and automated predictive models that challenge the integrity of the judicial process. This article provides a comprehensive legal analysis of how AI impacts the law of evidence in Pakistan, explores the critical legal vulnerabilities it creates, and outlines the structural and legislative reparations required to preserve the constitutional right to a fair trial.

I. The Dual Impact: Revolution and Vulnerability

Artificial Intelligence functions as a double-edged sword within the criminal justice matrix. On one side, it offers advanced forensic capabilities; on the other, it introduces unprecedented avenues for digital manipulation and algorithmic bias.

1. The Prosecutorial Shield: Advanced Forensics and Predictive Policing

For law enforcement agencies, AI acts as an accelerator for data processing. Through automated systems like the Automated Fingerprint Identification System (AFIS) and predictive policing algorithms, state authorities can analyze massive amounts of complex data at speeds no human team can match.

  • Pattern Recognition: AI tools process unstructured data, such as thousands of hours of CCTV footage or financial ledgers, to isolate anomalies, trace money trails in white-collar crimes, and identify geographic crime clusters.
  • Enhanced Ballistics and DNA Profiling: Machine learning algorithms minimize human error by conducting high-precision probabilistic genotyping, allowing the state to interpret complex, degraded, or multi-source DNA mixtures found at crime scenes.

2. The Evidentiary Crisis: The Weaponization of Synthetic Media

Conversely, generative AI has created a severe crisis regarding the authenticity of digital evidence. The democratization of deepfake technology allows bad actors to fabricate highly convincing audio, video, and documentary evidence with minimal effort.

  • The "Liar’s Dividend": The mere existence of generative AI undermines the credibility of legitimate digital evidence. Defendants can plausibly argue that genuine video or audio recordings capturing a crime are actually AI-generated fabrications, raising doubt where none historically existed.
  • Algorithmic Black Boxes: Proprietary software used to analyze evidence often relies on hidden source code. When the defense cannot inspect how an algorithm reached a specific conclusion, it restricts the ability to cross-examine the technical evidence, creating a conflict with due process.

 

II. Practical Legal Scenarios and Forensic Realities

To understand the practical impact on criminal litigation, consider how AI-driven evidence can alter the trajectory of a defense or prosecution strategy:

Scenario A: The Fabricated Confession (Deepfake Audio)

In a high-profile anti-corruption or murder trial, the prosecution introduces an audio recording allegedly capturing the accused planning the offense. The defense retains a digital forensics expert who demonstrates that the recording's vocal frequencies match an open-source Retrieval-Based Voice Conversion (RVC) model. The metadata lacks a verified cryptographic signature, creating reasonable doubt as to whether the conversation ever occurred.

Scenario B: Automated Facial Recognition (FRT) Misidentification

A suspect is arrested for a violent robbery based entirely on an AI-driven Facial Recognition Technology match from public surveillance footage. During cross-examination, it is revealed that the software's training dataset had a high error rate for specific skin tones or lighting conditions. The automated match, presented by the state as definitive proof, is exposed as a flawed algorithmic probability rather than an eyewitness identification.

 

III. The Existing Statutory Framework and its Fault Lines

Pakistan’s current evidentiary framework was not designed for an era of generative AI and automated algorithms. Applying our existing laws to these technologies reveals significant statutory gaps (Jan, 2025).

PAKISTANI EVIDENTIAL MATRIX

1. Article 164 of the Qanun-e-Shahadat Order (QSO), 1984

Article 164 allows courts to accept evidence made available through modern devices and gadgets. While this provision gives courts the flexibility to admit digital evidence, it lacks specific standards for authentication. It does not distinguish between a standard, unaltered digital recording and a synthetic output generated by a machine learning model.

2. The Expert Opinion Conundrum (Articles 46 and 59, QSO)

Under Article 59 of the QSO, expert opinions are restricted to human professionals skilled in science or art. When an AI system independently generates an analytical conclusion, such as a facial recognition match or a digital forensic report, the law remains ambiguous. An algorithm cannot take an oath, understand the penalty for perjury, or be cross-examined on the witness stand.

3. The Electronic Transactions Ordinance (ETO), 2002 & PECA, 2016

Section 15 of the ETO provides a legal presumption of integrity for digital signatures and advanced electronic records. However, this presumption is fragile when applied to AI, as it assumes digital data remains secure unless proven otherwise. Furthermore, the Prevention of Electronic Crimes Act (PECA), 2016 focuses primarily on penalizing data access violations and online harassment, offering little guidance on how to evaluate the authenticity of generative AI content presented as court evidence.

 

IV. Legal Solutions: Reconstructing Evidentiary Standards

To protect constitutional rights under Article 10A (Right to a Fair Trial) and Article 14 (Inviolability of Dignity and Privacy), the judiciary must update its approach to evaluating digital evidence.

1. Shift from Mere Admissibility to Strict Authentication

Courts should no longer treat the admissibility of digital files under Article 164 as an automatic validation of their contents. Judges must require a foundational hearing to verify authenticity before digital material is formally admitted into the trial record.

2. Mandating Technical Chain of Custody Metrics

To introduce digital or AI-assisted evidence, the proposing party should be required to provide clear technical verifications, including:

  • Cryptographic Hash Values: Demonstrating that the file's SHA-256 or MD5 hash value matches the original capture, proving the data was not altered during the investigation.
  • Metadata Verification: Providing unedited EXIF and systemic metadata to confirm the exact time, location, and device used to create the record.

3. Overcoming the "Black Box" Defense

If the prosecution relies on an AI tool to establish guilt, the defense must have access to the underlying algorithmic framework. If a proprietary algorithm cannot be independently reviewed or explained to the court, its conclusions should be treated as unverified hearsay rather than scientific proof.

V. Legislative Roadmap: Enactment of New Laws

Relying on judicial interpretation alone is insufficient to address these technological shifts. Parliament must introduce targeted legislative reforms to provide clear guidelines for AI-related evidence.

1. Amendments to the Qanun-e-Shahadat Order, 1984

  • Insertion of Article 164-A (AI-Generated Content): A new statutory provision defining synthetic media and deepfakes, explicitly placing the burden of proving authenticity on the party seeking to introduce the digital evidence.
  • Statutory Definition of Digital Integrity: Amending Article 59 to allow specialized digital forensic tools to be admitted, provided their underlying methodologies are certified by an independent state regulator.

2. The Draft Artificial Intelligence and Digital Evidence Act

Pakistan requires a dedicated legislative framework similar to international standards like the EU AI Act. This proposed statute should include:

  • Risk-Tiered Classification: Categorizing AI tools used in law enforcement (e.g., facial recognition, predictive policing, and automated biometrics) as "High-Risk Systems". These systems must undergo mandatory independent audits before their outputs can be used in a court of law.
  • Mandatory Digital Watermarking: Requiring all commercial AI developers in Pakistan to embed traceable, cryptographic watermarks into synthetic media, making it easier to identify AI-generated content during forensic investigations.
  • Criminalization of Evidentiary Deepfakes: Establishing strict criminal penalties for intentionally fabricating AI-generated content to mislead judicial proceedings or falsely implicate an individual.

Conclusion: Upholding the Rule of Law

The integration of Artificial Intelligence into criminal investigations requires a careful re-evaluation of our evidentiary rules. If left unaddressed, the rise of unverified algorithms and synthetic media risks undermining public confidence in the judicial system.

To preserve the constitutional right to a fair trial, our courts and lawmakers must balance technological adoption with strict regulatory oversight. By updating the Qanun-e-Shahadat Order, training judicial officers in algorithmic literacy, and enforcing rigorous verification standards, Pakistan can ensure its legal framework remains resilient against the challenges of the digital age. The fundamental standard of proof, guilt beyond a reasonable doubt, must never be compromised for algorithmic convenience.