Rihai Yukti
AI that understands law — Rihayi Yukti for smart bail decisions.
Created on 6th April 2025
•
Rihai Yukti
AI that understands law — Rihayi Yukti for smart bail decisions.
The problem Rihai Yukti solves
In India, undertrial prisoners are usually kept in custody owing to subjective or tardy bail orders, hitting marginalized communities disproportionately. Judges usually depend on instinct or erratic standards such as severity of the offense, prior convictions, or flight risk — frequently without data-backed arguments.
Rihayi Yukti provides a clear and AI-based solution that determines a defendant's level of bail risk based on historical legal data, NLP, and ML models. It assists judges in making data-driven, explainable decisions, eliminating undertrial congestion and facilitating fair justice.
Major features:
Assigns risk levels (High/Medium/Low) to variables such as criminal history, flight risk, etc.
Employs machine learning over actual Indian legal datasets (ILDC, PredEx) to assign data-driven weights.
Computes ultimate risk level through the aggregation of scores and weights to help guide judges during bail hearings.
Equips courts with transparency, accountability, and equity in the bail process.
Challenges we ran into
One of the biggest challenges was to pull out structured features such as "criminal history" or "history of bail" from unstructured legal case texts. Indian court verdicts are as verbose as they are inconsistent in language.
We addressed this by leveraging NLP methods such as:
Named Entity Recognition (NER) to identify entities such as past convictions and court categories.
Sentence similarity & keyword mapping to deduce legal features from case descriptions.
Tuned LLMs on legal texts from the ILDC and PredEx datasets.
The second challenge was finding equitable weights for every factor (e.g., Criminal History vs. Flight Risk). Rather than employing arbitrary expert weights, we used Principal Component Analysis (PCA) and Linear Regression on the PredEx dataset to learn dynamic, data-supported coefficients.
We also had issues with imbalance in granted vs. not granted bail data, which we addressed by utilizing SMOTE (Synthetic Minority Over-sampling Technique) for class balancing before training
Tracks Applied (3)
Artificial intelligence/Machine Learning
Open Innovation
GitHub Innovators
GitHub
