Skip to content
Open access

Automated Classification of Moroccan Procedural Court Orders Using CAMeL-BERT

2026 · International Journal of Advanced Computer Science and Applications · Vol 17 · 1 citation · 21 references

TL;DR

These findings show that the highly regular linguistic structure of Moroccan procedural court orders enables computationally efficient and deployment-oriented classification using frozen contextual embeddings, providing a practical solution for Arabic legal document management and supporting future e-Justice applications in Morocco.

Abstract

The digitization of judicial systems creates new opportunities for automating document management tasks that have traditionally relied on manual processing. This study addresses the automated classification of Arabic procedural court orders issued by Moroccan courts of first instance into seven official procedural categories, a low-resource legal document type characterized by highly standardized procedural language and limited publicly available resources. The primary contribution is a leakage-controlled evaluation demonstrating that frozen CAMeL-BERT contextual representations, combined with lightweight conventional machine learning classifiers, achieve highly accurate classification without computationally expensive transformer fine-tuning. The proposed pipeline integrates automatic structured extraction from heterogeneous Word documents with contextual embeddings and a comparative evaluation of five classifiers under a strict train–validation–test protocol. Experimental results show that Logistic Regression achieves 99.74% test accuracy (κ = 0.9966), while even the simplest baseline, Gaussian Naive Bayes, reaches 96.66%, highlighting the strong discriminative characteristics of Moroccan procedural court orders. An ablation study demonstrates that replacing TF-IDF representations with CAMeL-BERT embeddings reduces classification errors by 71.4%, while the complete classification pipeline further improves overall performance and reduces the remaining errors. These findings show that the highly regular linguistic structure of Moroccan procedural court orders enables computationally efficient and deployment-oriented classification using frozen contextual embeddings, providing a practical solution for Arabic legal document management and supporting future e-Justice applications in Morocco.

Read PDF

Similar papers

Open access Aug 2026

Detecting And Classifying Multi-Label Semantic Bias In 3,829 Indonesian Military Criminal Judgments Dataset Using Language Modeling And Ensemble Strategies

Objectivity in military criminal judgments is crucial for judicial legitimacy but is frequently compromised by semantic bias. To the best of our knowledge, this is the first study to specifically address automated bias detection within the Indonesian military legal domain, bridging a significant gap in the literature t...

Bayu Ardiyansyah, Lutfi Indra Nur Praditya, Galih Wasis Wicaksono et al. · 0 citations
Open access Sep 2026

Insaafai: A Retrieval-Assisted Multilingual Legal Information and Document-Analysis Prototype for Indian Criminal Law

This study demonstrates the potential of retrieval-assisted AI to improve access to criminal-law information while Emphasizing the Importance of Authoritative Legal Sources, Expert Validation, Privacy Safeguards, and Human Oversight.

Siddhi Vishwakarma and Riddhi Vishwakarma · 0 citations
Open access Aug 2026

A Cascaded Unsupervised–Supervised NLP Pipeline for Detecting Accusatory Language in Public Procurement

This paper analyzes metadata from Ecuador's SOCE, with particular emphasis on participant comments generated during the pre-contractual phase to propose a hybrid modeling framework that integrates unsupervised clustering and supervised classification within a natural language processing (NLP) pipeline to uncover latent...

Bryan Torres, Daniel Riofrío, J. Vega-Sanchez et al. · 0 citations
Book Open access Aug 2026

Engineering a Legal Corpus: A Lightweight and Transferable Pipeline for Building and Refining a Case-Law Corpus

A transferable pipeline producing a structured database covering most decisions since 2007 focusing on sexual orientation and gender identity asylum claims is designed, enabling the identification of structurally relevant decisions for qualitative analysis while producing data suitable for quantitative and computationa...

Mélanie Braillard, Hugo Hueber · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.