How Effective are Different Machine Learning Algorithms in Predicting Legal Outcomes in South Africa?

Joe Khosa, Daniel Mashao, Ayorinde Olanipekun, Charis Harley

Abstract


This study examines the effectiveness of different machine learning algorithms in predicting legal outcomes in South Africa's Judiciary system. Considering the advancement of artificial intelligence in the legal sector, this research aims to assess the effectiveness of various machine learning algorithms within the legal domain. Text classification is done using machine learning algorithms, including Logistic Regression, Random Forest, and K-Nearest Neighbours, with datasets obtained from a state legal firm in South Africa. The datasets undergo diligent data cleansing and pre-processing methods, encompassing tokenization and lemmatization techniques. This study evaluates these models' applications through accuracy metrics. The findings demonstrate that the Logistic Regression model attained an accuracy rate of 75.05%, whereas the Random Forest algorithm achieved an accuracy rate of 75.08%. On the other hand, the K-Nearest Neighbours algorithm exhibited no optimal performance, as evidenced by its accuracy rate of 62.76%. This study provides valuable insights for legal professionals by addressing a specific research question about the successful application of machine learning in South Africa's legal sector. The results indicate the possibility of using machine learning to predict the outcomes of criminal legal cases. Additionally, this study highlights the significance of responsibly and ethically implementing machine learning within the legal field. The results of this study enhance our comprehension of the prediction of legal outcomes, establishing a foundation for future investigations in this dynamic area of study. A limitation of this study is that the data was obtained from a single law firm in South Africa.


Keywords


Legal Predictions, Legal outcomes, Artificial intelligence, Machine learning algorithms, Logistic Regression, Random Forest, K-Nearest Neighbors, legal document analysis, Legal Aid South Africa

Full Text:

PDF

References


G. Zhao, Y. Li, and Q. Xu, “From Emotion AI to Cognitive AI,” IJNDI, pp. 65–72, Dec. 2022, doi: 10.53941/ijndi0101006.

Y. K. Dwivedi et al., “Artificial Intelligence (AI): Multidisciplinary perspectives on emerging challenges, opportunities, and agenda for research, practice and policy,” International Journal of Information Management, vol. 57, p. 101994, Apr. 2021, doi: 10.1016/j.ijinfomgt.2019.08.002.

H. Varian, “Artificial Intelligence, Economics, and Industrial Organization,” in The Economics of Artificial Intelligence: An Agenda, University of Chicago Press, 2018, pp. 399–419. Accessed: Feb. 08, 2024. [Online]. Available: https://www.nber.org/books-and-chapters/economics-artificial-intelligence-agenda/artificial-intelligence-economics-and-industrial-organization

J. Zeleznikow, “The benefits and dangers of using machine learning to support making legal predictions,” WIREs Data Mining and Knowledge Discovery, vol. 13, no. 4, p. e1505, 2023, doi: 10.1002/widm.1505.

T. Sourdin and R. Cornes, “Do Judges Need to Be Human? The Implications of Technology for Responsive Judging,” 2018, pp. 87–119. doi: 10.1007/978-981-13-1023-2_4.

C. Xiao et al., “CAIL2018: A Large-Scale Legal Dataset for Judgment Prediction,” arXiv: Computation and Language, Jul. 2018.

Geetanjali Chandra, G. R. Chandra, R. Gupta, Ruchika Gupta, N. Agarwal, and Nidhi Agarwal, “Role of Artificial Intelligence in Transforming the Justice Delivery System in COVID-19 Pandemic,” 2020.

R. Chhatwal, P. Gronvall, N. Huber-Fliflet, R. Keeling, J. Zhang, and H. Zhao, “Explainable Text Classification in Legal Document Review A Case Study of Explainable Predictive Coding,” 2018 IEEE International Conference on Big Data (Big Data), pp. 1905–1911, Dec. 2018, doi: 10.1109/bigdata.2018.8622073.

Heike et al., “Towards Transparency by Design for Artificial Intelligence,” Science and Engineering Ethics, vol. 26, no. 6, pp. 3333–3361, 2020, doi: 10.1007/s11948-020-00276-4.

J. Khosa, D. Mashao, D. Ighravwe, and C. Harley, “An Examination of the Impact of a Criminal Case’s Jurisdiction on the Prison Term in South Africa,” International Journal of Management Science and Business Administration, vol. 9, no. 5, pp. 24–35, 2023, doi: 10.18775/ijmsba.1849-5664-5419.2014.95.1002.

K. Patel, “Article ID: IJAIRD_02_01_001 Cite this Article: Kaushikkumar Patel, Ethical Reflections on Data-Centric AI: Balancing Benefits and Risks,” INTERNATIONAL JOURNAL OF COMPUTER ENGINEERING & TECHNOLOGY, pp. 1–17, Jan. 2024.

T. O. Oladoyinbo, S. O. Olabanji, O. O. Olaniyi, O. O. Adebiyi, O. J. Okunleye, and A. I. Alao, “Exploring the Challenges of Artificial Intelligence in Data Integrity and its Influence on Social Dynamics,” AJARR, vol. 18, no. 2, pp. 1–23, Jan. 2024, doi: 10.9734/ajarr/2024/v18i2601.

Rosili, Rohayanti Hassan, N. Zakaria, S. Kasim, F. Rose, and T. Sutikno, “A systematic literature review of machine learning methods in predicting court decisions,” IAES International Journal of Artificial Intelligence (IJ-AI), 2021, doi: 10.11591/ijai.v10.i4.pp1091-1102.

P. Bhilare, N. Parab, N. Soni, and B. Thakur, “Predicting Outcome of Judicial Cases and Analysis using Machine Learning,” vol. 06, no. 02, 2019.

J. Makokoane, D. Khosa, and B. Obrenovic, “Applying UTAUT and Fuzzy Dematel Methods: A New Legal Aid Administration System,” THE INTERNATIONAL JOURNAL OF MANAGEMENT SCIENCE AND BUSINESS ADMINISTRATION, vol. 8, pp. 24–36, Nov. 2021, doi: 10.18775/ijmsba.1849-5664-5419.2014.81.1002.

R. Egger and E. Gokce, “Natural Language Processing (NLP): An Introduction: Making Sense of Textual Data,” 2022, pp. 307–334. doi: 10.1007/978-3-030-88389-8_15.

D. Khyani, B. S. Siddhartha, N. M. Niveditha, and B. M. Divya, “An interpretation of lemmatization and stemming in natural language processing,” Journal of University of Shanghai for Science and Technology, vol. 22, no. 10, pp. 350–357, 2021.

T. Ahmed, S. Mukta, T. Mahmud, S. Hasan, and M. G. Hussain, Bangla Text Emotion Classification using LR, MNB and MLP with TF-IDF & CountVectorizer. 2022. doi: 10.1109/ICSEC56337.2022.10049341.

Shweta Agrawal, Sanjiv Kumar Jain, Shruti Sharma, and Ajay Khatri, “COVID-19 Public Opinion: A Twitter Healthcare Data Processing Using Machine Learning Methodologies,” International Journal of Environmental Research and Public Health, 2022, doi: 10.3390/ijerph20010432.

B. Charbuty, Adnan Abdulazeez, Adnan Abdulazeez, and A. M. Abdulazeez, “Classification Based on Decision Tree Algorithm for Machine Learning,” Journal of Applied Science and Technology Trends, vol. 2, no. 1, pp. 20–28, 2021, doi: 10.38094/jastt20165.

Duc Duy Tran, Thi Thanh Sang Nguyen, and T. Dao, “Sentiment Analysis of Movie Reviews Using Machine Learning Techniques,” International Congress on Information and Communication Technology, 2021, doi: 10.1007/978-981-16-2377-6_34.

T. Srinivasarao, “Iris Flower Classification Using Machine Learning,” vol. 9, pp. 2455–6211, Mar. 2022.

A. Y. Muaad et al., “Artificial Intelligence-Based Approach for Misogyny and Sarcasm Detection from Arabic Texts,” Computational Intelligence and Neuroscience, vol. 2022, pp. 1–9, Mar. 2022, doi: 10.1155/2022/7937667.




DOI: https://doi.org/10.47738/jads.v5i4.215

Refbacks




Barcode

Journal of Applied Data Sciences

ISSN:2723-6471 (Online)
Publisher:Bright Publisher
Website:http://bright-journal.org/JADS
Email:taqwa@amikompurwokerto.ac.id (principal contact)
  support@bright-journal.org (technical issues)

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0