DSpace Repository

Case based reasoning model to optimize sentencing guidelines in the judiciary of Kenya.

Show simple item record

dc.contributor.author Charani, Donald Asiago
dc.date.accessioned 2026-07-02T10:24:48Z
dc.date.available 2026-07-02T10:24:48Z
dc.date.issued 2025
dc.identifier.uri https://repository.cuk.ac.ke/handle/123456789/1966
dc.description A research project submitted to the School of Mathematics and Computing in partial fulfillment of the requirements for the award of the degree of Master of science in data science of the cooperative university Of Kenya. en_US
dc.description.abstract Judicial sentencing often faces challenges of inconsistency and disparity, undermining both fairness and public trust. Existing guidelines provide direction, but variations persist due to the subjective interpretation of cases. This research addressed this gap by developing a Case-Based Reasoning (CBR) model to optimize sentencing decisions in the Kenyan judiciary. The study developed a CBR model that leveraged historical judicial data to support judges in delivering more consistent and equitable sentences. The methodology employed a structured four-stage approach using cosine similarity and TF-IDF vectorization for case retrieval, ensemble methods (Random Forest, XGBoost, LightGBM) for prediction, k-fold cross-validation for validation, and hyperparameter tuning for optimization. The CBR model incorporated a structured four-stage approach: case retrieval, case adaptation, case validation, and case optimization. The model analyzed key case attributes, including defendant demographics, crime severity, mitigating and aggravating factors, and judicial reasoning in prior cases. It was trained with a dataset of 1,200 previous cases from Kenyan courts, historical judicial sentencing records sourced from public legal databases e.g., Supreme Court archives, national judicial sentencing datasets and other legal databases with anonymized sentencing data. The results showed that the CBR model achieved a prediction accuracy of 27.42% with an F1-score of 0.2752, indicating significant challenges in judicial predictive modeling due to case complexity. Despite moderate performance, fairness analysis revealed balanced treatment across demographic subgroups, with fairness scores above 0.85. Thus, this approach contributed to aligning sentencing with judicial guidelines and helped in maintaining transparency and accountability in legal decisions. en_US
dc.language.iso en en_US
dc.publisher Cuk en_US
dc.title Case based reasoning model to optimize sentencing guidelines in the judiciary of Kenya. en_US
dc.type Thesis en_US


Files in this item

This item appears in the following Collection(s)

Show simple item record

Search DSpace


Advanced Search

Browse

My Account