Artificial Intelligence in Malaysian Courts: PP v Denis P Modili

Main Article Content

Dennis W K Khong
Chiung Ching Ho


This case commentary examines a seminal judgment on the application of artificial intelligence in criminal sentencing in Malaysia: PP v Denis P Modili. It hypothesises what the basic components of this AI system may consist of and discusses some technical points based on the disclosure made about the AI system in the judgment. Two types of machine learning algorithms, namely linear regression and logistic regression, are introduced. Possible machine learning features and their treatment, and what the ‘recommended percentage’ as described in the judgment could be are investigated.

Article Details

How to Cite
Khong, D. W. K., & Ho, C. C. (2022). Artificial Intelligence in Malaysian Courts: PP v Denis P Modili. Asian Journal of Law and Policy, 2(2), 127–136.
Case Commentaries


Abang Iskandar Bin Abang Hashim, ‘Speech by the Right Honourable Tan Sri Dato’ Abang Iskandar Bin Abang Hashim, Chief Judge of Sabah and Sarawak, at the Opening of the Legal Year Sabah and Sarawak 2022’ (2022) <>

Aurélien Géron, Hands-on Machine Learning with Scikit-Learn, Keras & TensorFlow (2nd edn, O’Reilly 2019)

Bernama, ‘Sabah, Sarawak Courts to Enhance Digitalisation Effort: Chief Judge’ The Sun Daily (21 January 2022) <>

Cheng Leong Foong, ‘The Use of Court’s Artificial Intelligence (AI) System in Criminal Proceedings’ (2021) <>

Claire Lim and Rachel Gong, ‘Artificial Intelligence in the Courts: AI Sentencing in Sabah and Sarawak’ (2020) 2 < AI in the Courts v4.pdf>

Dangerous Drugs Act 1952 (Act 234) s 12(3)

Denis P Modili v Public Prosecutor (HC, Kota Kinabalu, 15 September 2020)

Dennis WK Khong and Wan-Ju Yeh, ‘The Problem of Copyright Protection for Machine Learning Databases: A Comparative Study’ (2021) 10 NTUT Journal of Intellectual Property Law and Management 86

Jerome Frank, ‘Legal Thinking in Three Dimensions’ (1949) 1 Syracuse Law Review 9 <>

Jesper Ryberg and Julian V Roberts (eds), Sentencing and Artificial Intelligence (Oxford University Press 2021)

JK Patel, ‘Prediction Intervals: A Review’ (1989) 18 Communications in Statistics—Theory and Methods 2393 <>

John Fox and Sanford Weisberg, ‘Multivariate Linear Models in R’, An R companion to applied regression (3rd edn, SAGE Publications 2018) <>

Maung Min Aung v Public Prosecutor [2001] 5 Malayan Law Journal 140 (HC)

Neil Brian Joseph, ‘KK Courts Set to Be First to Use Artificial Intelligence’ Borneo Post Online (31 January 2020)

Pantelis Linardatos, Vasilis Papastefanopoulos and Sotiris Kotsiantis, ‘Explainable AI: A Review of Machine Learning Interpretability Methods’ (2020) 23 Entropy 18 <>

PP v Denis P Modili [2020] 2 Sessions & Magistrates' Cases 381 (Magistrate’s Court)

Pathma Subramaniam, ‘Programmed Prejudice’ Digital Edge: The Edge Weekly (4 October 2021) <>

Richard Malanjum, ‘Speech by Tan Sri Datuk Seri Panglima Richard Malanjum, Chief Justice of the Federal Court of Malaysia at the Opening of the Legal Year 2019’ [2019] Malayan Law Journal i

Soheil Ghili, Ehsan Kazemi and Amin Karbasi, ‘Eliminating Latent Discrimination: Train Then Mask’, Proceedings of the AAAI Conference on Artificial Intelligence (2019) <>