An AI-powered decision support system that predicts bail outcomes using Hindi legal documents from Indian district courts. Developed as part of the Software Development Project - II at SSN College of Engineering, this system combines advanced NLP techniques with judicial insight to automate and interpret bail decisions.
- Domain: LegalTech, NLP, AI for Social Good
- Language: Hindi (processed via HLDC – Hindi Legal Documents Corpus)
- Outcome: Binary classification –
1: Bail Granted,0: Bail Denied - Model: Fine-tuned IndicBERT (Transformers-based)
- Explainability: Confidence scoring and highlighting of influential text segments
The Indian judiciary faces massive delays due to a backlog of cases, with a significant portion involving bail decisions in district courts—often documented in Hindi. This project builds an automated bail prediction system to:
- Process Hindi bail applications
- Predict bail outcomes
- Provide confidence-based decision support
- Real-time processing of Hindi bail applications
- Binary bail outcome prediction (grant or deny)
- Confidence score with interpretable highlights
- User interface for legal practitioners
- Text Preprocessing: Tokenization, normalization, segmentation
- Feature Extraction: IndicBERT embeddings trained on Indian legal language
- Binary Classification: Transformer-based classification layer
- Post-Processing: Thresholding & interpretability (highlighted facts)
| Metric | Value |
|---|---|
| Accuracy | 79.84% |
| F1 Score | 0.798 |
| Loss | 0.433 |
- Source: HLDC – Hindi Legal Documents Corpus
- Format:
.jsonor.csv - Fields:
id,district,text(facts + arguments + opinion),label(0/1)
| Type | Tools Used |
|---|---|
| Language | Python 3.9 |
| Libraries | Transformers, IndicNLP, Scikit-learn, TensorFlow, Pandas, NumPy |
| Model | IndicBERT (via HuggingFace Transformers) |
- Python 3.9+
- At least 8GB RAM (GPU recommended) [Only for Training the model]
- HLDC formatted data
pip install -r requirements.txtpython app.py0→ Bail Denied1→ Bail Granted- Confidence score with highlighted decision text
The model/ folder is not included in this Git repository. It contains the fine-tuned model files required for inference. For educational and research purposes, it can be shared upon request. Please contact ashuwin2210335@ssn.edu.in.
Special thanks to Dr. S. Karthika (Client & Guide), and the faculty of the Department of IT, SSN College of Engineering.
- HLDC: Hindi Legal Documents Corpus – [IEEE NLPKE 2024]
- IL-TUR: Indian Legal Text Understanding and Reasoning – arXiv:2407.05399