IHLawRecommender: Deep Semantic Modelling for IPC Case Recommendation with Legal Domain Constraints
Efficient retrieval of relevant legal cases is critical for judicial decision-making, particularly for high-severity crimes where timely reference to precedents can influence outcomes. Our work presents IHLawRecommender, i.e., Intelligent Hybrid Law Recommender, a hybrid framework for recommending Indian Penal Code (IPC) cases based on textual descriptions provided by users. The system operates through a multi-stage workflow: first, case descriptions are normalized to remove inconsistencies and embedded into semantic vectors using a Bi-directional Long Short-Term Memory (BiLSTM) network. These embeddings are compared with the user query to measure semantic similarity. In parallel, an IPC-specific keyword map evaluates the relevance of each case, while legal aware filters distinguish between sexual and non-sexual violent crimes to ensure contextually appropriate recommendations. The outputs from these stages are integrated using a weighted payoff function that considers semantic similarity, keyword relevance, and crime severity to produce a ranked list of top-k cases. The system also provides interpretable visualizations, including heatmaps that illustrate correlations between similarity, keyword score, severity, and payoff. Evaluation on a curated IPC dataset demonstrates that IHLawRecommender consistently prioritizes legally critical cases, reduces irrelevant matches, and offers a practical, workflow-driven tool for legal professionals to efficiently navigate case law while maintaining adherence to judicial priorities.
Volume & Issue
Vol. Volume 11 / Iss. Issue 2