🧠 Empowering justice through Artificial Intelligence.
A cutting-edge AI system that predicts relevant IPC sections, estimates punishments, and retrieves similar past cases — enabling law enforcement officers, legal professionals, and judges to make informed, data-driven decisions with speed and accuracy.
The AI-Powered Legal Decision Support System leverages Artificial Intelligence to revolutionize India’s criminal justice process.
It analyzes crime descriptions to predict applicable Indian Penal Code (IPC) sections, recommend appropriate punishments, and retrieve semantically similar past cases.
By integrating SentenceTransformer, ChromaDB, and Google’s Gemini API, the system bridges the gap between unstructured legal text and actionable insights — ensuring faster, fairer, and more consistent judicial outcomes.
- ⚖️ Automate IPC section classification using advanced NLP.
- 🔍 Estimate appropriate punishments aligned with legal precedents.
- 📚 Retrieve relevant historical cases for judicial reference.
- 🚔 Assist law enforcement in accurate and efficient FIR filing.
- 👩⚖️ Support judges and legal analysts in data-driven decision-making.
| Category | Technologies Used |
|---|---|
| Frontend | React.js, HTML5, CSS3 |
| Backend | Flask (Python) |
| AI / NLP | SentenceTransformer, NLTK, Scikit-learn |
| Database | ChromaDB (Vector Database) |
| API & Integration | Google Gemini API |
| Utilities | Pandas, NumPy, PyPDF2 |
| Version Control | Git & GitHub |
- 🔍 IPC Section Prediction – Identifies relevant IPC sections from textual descriptions.
- ⚖️ Punishment Estimation – Suggests punishment ranges based on past judicial data.
- 📚 Case Retrieval – Retrieves and ranks similar past cases using semantic search.
- 💬 AI Summarization – Generates concise summaries of retrieved legal cases via Gemini API.
- 🧠 Context-Aware NLP – Handles first-person, third-person, and mixed legal narratives for robust prediction.
- 📈 Performance Optimized – Achieved up to 77.63% accuracy in IPC classification tasks.
Crime Description
↓
SentenceTransformer → Text Embeddings
↓
ChromaDB → Semantic Search
↓
Prediction Model → IPC Sections + Punishments
↓
Gemini API → Case Summaries
↓
Frontend UI → Interactive Results Displaygit clone https://github.com/your-username/AI-Legal-Decision-Support.git
cd AI-Legal-Decision-Support