{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,1,25]],"date-time":"2026-01-25T07:56:38Z","timestamp":1769327798406,"version":"3.49.0"},"reference-count":30,"publisher":"MDPI AG","issue":"10","license":[{"start":{"date-parts":[[2025,9,26]],"date-time":"2025-09-26T00:00:00Z","timestamp":1758844800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["www.mdpi.com"],"crossmark-restriction":true},"short-container-title":["Future Internet"],"abstract":"<jats:p>Legal judgment prediction is an emerging application of artificial intelligence in the legal domain, offering significant potential to enhance legal decision support systems. Such systems can improve judicial efficiency, reduce burdens on legal professionals, and assist in early-stage case assessment. This study focused on predicting whether a legal case would be Accepted or Rejected using only the Fact section of court rulings. A key challenge lay in processing long legal documents, which often exceeded the input length limitations of transformer-based models. To address this, we proposed a two-step methodology: first, each document was segmented into sentence-level inputs compatible with AraBERT\u2014a pretrained Arabic transformer model\u2014to generate sentence-level predictions; second, these predictions were aggregated to produce a document-level decision using several methods, including Mean, Max, Confidence-Weighted, and Positional aggregation. We evaluated the approach on a dataset of 19,822 real-world cases collected from the Saudi Arabian Commercial Court. Among all aggregation methods, the Confidence-Weighted method applied to the AraBERT-based classifier achieved the highest performance, with an overall accuracy of 85.62%. The results demonstrated that combining sentence-level modeling with effective aggregation methods provides a scalable and accurate solution for Arabic legal judgment prediction, enabling full-length document processing without truncation.<\/jats:p>","DOI":"10.3390\/fi17100439","type":"journal-article","created":{"date-parts":[[2025,9,26]],"date-time":"2025-09-26T12:33:03Z","timestamp":1758889983000},"page":"439","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":2,"title":["Legal Judgment Prediction in the Saudi Arabian Commercial Court"],"prefix":"10.3390","volume":"17","author":[{"given":"Ashwaq","family":"Almalki","sequence":"first","affiliation":[{"name":"Department of Computer Science and Artificial Intelligence, College of Computer Science and Engineering, University of Jeddah, Jeddah 21589, Saudi Arabia"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-8023-8833","authenticated-orcid":false,"given":"Safa","family":"Alsafari","sequence":"additional","affiliation":[{"name":"Department of Computer Science and Artificial Intelligence, College of Computer Science and Engineering, University of Jeddah, Jeddah 21589, Saudi Arabia"}]},{"given":"Noura M.","family":"Alotaibi","sequence":"additional","affiliation":[{"name":"Department of Computer Science and Artificial Intelligence, College of Computer Science and Engineering, University of Jeddah, Jeddah 21589, Saudi Arabia"}]}],"member":"1968","published-online":{"date-parts":[[2025,9,26]]},"reference":[{"key":"ref_1","unstructured":"Ministry of Justice of the Kingdom of Saudi Arabia (2025, August 18). Judicial Reports, Available online: https:\/\/www.moj.gov.sa\/ar\/OpenData\/PowerBIReport\/Pages\/BIReportJud.aspx."},{"key":"ref_2","unstructured":"Aletras, N., Chalkidis, I., Barrett, L., Goan\u021b\u0103, C., and Preo\u021biuc-Pietro, D. (2022, January 8). AraLegal-BERT: A Pretrained Language Model for Arabic Legal Text. Proceedings of the Natural Legal Language Processing Workshop, Abu Dhabi, United Arab Emirates."},{"key":"ref_3","doi-asserted-by":"crossref","first-page":"101695","DOI":"10.1016\/j.jksuci.2023.101695","article-title":"TaSbeeb: A Judicial Decision Support System Based on Deep Learning Framework","volume":"35","author":"Almuzaini","year":"2023","journal-title":"J. King Saud-Univ.-Comput. Inf. Sci."},{"key":"ref_4","doi-asserted-by":"crossref","unstructured":"Abbara, S., Hafez, M., Kazzaz, A., Alhothali, A., and Alsolami, A. (2023). ALJP: An Arabic Legal Judgment Prediction in Personal Status Cases Using Machine Learning Models. arXiv.","DOI":"10.21203\/rs.3.rs-4953177\/v1"},{"key":"ref_5","doi-asserted-by":"crossref","unstructured":"Ammar, A., Koubaa, A., Benjdira, B., Nacar, O., and Sibaee, S. (2024). Prediction of Arabic Legal Rulings Using Large Language Models. Electronics, 13.","DOI":"10.3390\/electronics13040764"},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"1","DOI":"10.2307\/1951767","article-title":"Predicting Supreme Court decisions mathematically: A quantitative analysis of the \u201cright to counsel\u201d cases","volume":"51","author":"Kort","year":"1957","journal-title":"Am. Political Sci. Rev."},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"e93","DOI":"10.7717\/peerj-cs.93","article-title":"Predicting judicial decisions of the European Court of Human Rights: A natural language processing perspective","volume":"2","author":"Aletras","year":"2016","journal-title":"PeerJ Comput. Sci."},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"237","DOI":"10.1007\/s10506-019-09255-y","article-title":"Using machine learning to predict decisions of the European Court of Human Rights","volume":"28","author":"Medvedeva","year":"2020","journal-title":"Artif. Intell. Law"},{"key":"ref_9","unstructured":"Alali, M., Syed, S., Alsayed, M., Patel, S., and Bodala, H. (2021). JUSTICE: A Benchmark Dataset for Supreme Court\u2019s Judgment Prediction. arXiv."},{"key":"ref_10","doi-asserted-by":"crossref","unstructured":"Strickson, B., and De La Iglesia, B. (2020, January 19\u201322). Legal Judgement Prediction for UK Courts. Proceedings of the 3rd International Conference on Information Science and Systems (ICISS\u201920), New York, NY, USA.","DOI":"10.1145\/3388176.3388183"},{"key":"ref_11","unstructured":"Sun, M., Huang, X., Ji, H., Liu, Z., and Liu, Y. (2019, January 18\u201320). Automatic Judgment Prediction via Legal Reading Comprehension. Proceedings of the Chinese Computational Linguistics, Kunming, China."},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"102684","DOI":"10.1016\/j.ipm.2021.102684","article-title":"Natural language processing in law: Prediction of outcomes in the higher courts of Turkey","volume":"58","author":"Ozaktas","year":"2021","journal-title":"Inf. Process. Manag."},{"key":"ref_13","doi-asserted-by":"crossref","unstructured":"Luo, B., Feng, Y., Xu, J., Zhang, X., and Zhao, D. (2017, January 9\u201311). Learning to Predict Charges for Criminal Cases with Legal Basis. Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, Copenhagen, Denmark.","DOI":"10.18653\/v1\/D17-1289"},{"key":"ref_14","unstructured":"Xiao, C., Zhong, H., Guo, Z., Tu, C., Liu, Z., Sun, M., Feng, Y., Han, X., Hu, Z., and Wang, H. (2018). CAIL2018: A Large-Scale Legal Dataset for Judgment Prediction. arXiv."},{"key":"ref_15","unstructured":"Bender, E.M., Derczynski, L., and Isabelle, P. (2018, January 20\u201326). Few-Shot Charge Prediction with Discriminative Legal Attributes. Proceedings of the 27th International Conference on Computational Linguistics, Santa Fe, NM, USA."},{"key":"ref_16","unstructured":"Riloff, E., Chiang, D., Hockenmaier, J., and Tsujii, J. (November, January 31). Legal Judgment Prediction via Topological Learning. Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing (EMNLP 2018), Brussels, Belgium."},{"key":"ref_17","unstructured":"Korhonen, A., Traum, D., and M\u00e0rquez, L. (August, January 28). Neural Legal Judgment Prediction in English. Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, Florence, Italy."},{"key":"ref_18","doi-asserted-by":"crossref","first-page":"e904","DOI":"10.7717\/peerj-cs.904","article-title":"Predicting Brazilian Court Decisions","volume":"8","author":"Santana","year":"2022","journal-title":"PeerJ Comput. Sci."},{"key":"ref_19","unstructured":"Aletras, N., Chalkidis, I., Barrett, L., Goan\u021b\u0103, C., and Preo\u021biuc-Pietro, D. (2022, January 8). ClassActionPrediction: A Challenging Benchmark for Legal Judgment Prediction of Class Action Cases in the US. Proceedings of the Natural Legal Language Processing Workshop 2022, Abu Dhabi, United Arab Emirates."},{"key":"ref_20","doi-asserted-by":"crossref","first-page":"55627","DOI":"10.1109\/ACCESS.2025.3553032","article-title":"Breaking Away from AI: The Ontological and Ethical Evolution of Machine Learning","volume":"13","author":"Barbierato","year":"2025","journal-title":"IEEE Access"},{"key":"ref_21","doi-asserted-by":"crossref","first-page":"e30184","DOI":"10.1016\/j.heliyon.2024.e30184","article-title":"Artificial intelligence in judicial adjudication: Semantic biasness classification and identification in legal judgement (SBCILJ)","volume":"10","author":"Javed","year":"2024","journal-title":"Heliyon"},{"key":"ref_22","doi-asserted-by":"crossref","first-page":"100005","DOI":"10.1016\/j.jrt.2020.100005","article-title":"Legal and human rights issues of AI: Gaps, challenges and vulnerabilities","volume":"4","author":"Rodrigues","year":"2020","journal-title":"J. Responsible Technol."},{"key":"ref_23","unstructured":"European Parliament and Council of the European Union (2025, September 12). Regulation (EU) 2024\/1689 of the European Parliament and of the Council of 13 June 2024 Laying down Harmonised Rules on Artificial Intelligence (Artificial Intelligence Act), Recital 61. Available online: https:\/\/eur-lex.europa.eu\/eli\/reg\/2024\/1689\/oj\/eng."},{"key":"ref_24","unstructured":"Ministry of Justice of the Kingdom of Saudi Arabia (2025, August 18). Judicial Decisions, Available online: https:\/\/laws.moj.gov.sa\/ar\/JudicialDecisionsList\/1."},{"key":"ref_25","unstructured":"Ministry of Justice of the Kingdom of Saudi Arabia (2025, August 18). Open Data Policy, Available online: https:\/\/www.moj.gov.sa\/english\/OpenData\/Pages\/OpenDataPolicy.aspx."},{"key":"ref_26","unstructured":"Al-Khalifa, H., Magdy, W., Darwish, K., Elsayed, T., and Mubarak, H. (2020, January 11\u201316). AraBERT: Transformer-based Model for Arabic Language Understanding. Proceedings of the 4th Workshop on Open-Source Arabic Corpora and Processing Tools (OSACT4), Marseille, France."},{"key":"ref_27","doi-asserted-by":"crossref","first-page":"273","DOI":"10.1023\/A:1022627411411","article-title":"Support-vector networks","volume":"20","author":"Cortes","year":"1995","journal-title":"Mach. Learn."},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"513","DOI":"10.1016\/0306-4573(88)90021-0","article-title":"Term-weighting approaches in automatic text retrieval","volume":"24","author":"Salton","year":"1988","journal-title":"Inf. Process. Manag."},{"key":"ref_29","unstructured":"Jurafsky, D., Chai, J., Schluter, N., and Tetreault, J. (2020, January 5\u201310). Unsupervised Cross-lingual Representation Learning at Scale. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics (ACL 2020), Online."},{"key":"ref_30","unstructured":"Beltagy, I., Peters, M.E., and Cohan, A. (2020). Longformer: The Long-Document Transformer. arXiv."}],"container-title":["Future Internet"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1999-5903\/17\/10\/439\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,9,29]],"date-time":"2025-09-29T13:13:01Z","timestamp":1759151581000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1999-5903\/17\/10\/439"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,9,26]]},"references-count":30,"journal-issue":{"issue":"10","published-online":{"date-parts":[[2025,10]]}},"alternative-id":["fi17100439"],"URL":"https:\/\/doi.org\/10.3390\/fi17100439","relation":{},"ISSN":["1999-5903"],"issn-type":[{"value":"1999-5903","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,9,26]]}}}