Skip to content
C

Crime Lens

AI-powered crime analysis system for real-time det

Created on 17th April 2026

•

C

Crime Lens

AI-powered crime analysis system for real-time det

The problem Crime Lens solves

Modern crime investigation systems face significant challenges due to the increasing volume of unstructured data, such as FIRs, witness statements, and case reports written in free text. This makes it difficult for investigators to quickly extract critical information like suspects, weapons, and locations. As a result, much of the analysis is done manually, which is time-consuming, prone to human error, and often leads to missed connections between related cases. Additionally, traditional systems mainly act as data storage tools and lack the capability to intelligently analyze data, detect hidden patterns, or predict crime types. Investigators also struggle with efficiently managing and tracking cases, as there is no centralized system to organize case details and investigation notes. Therefore, there is a need for an intelligent, automated solution that can process unstructured crime data, identify patterns, assist in decision-making, and improve overall efficiency in crime analysis and case management.

Challenges we ran into

While processing crime descriptions using spaCy, the system was incorrectly extracting entities, especially:
Missing important entities like weapons or locations
Misclassifying words (e.g., treating “knife attack” as just an action, not identifying knife as a weapon)
This caused incorrect graph construction, which led to wrong crime predictions in the PyTorch Geometric model.

Root Cause
Default spaCy model (en_core_web_sm) is general-purpose
It is not trained on crime-specific vocabulary
So domain-specific entities (like weapons, crime actions) were not properly recognized

Solution Implemented
Custom Entity Rules Added
Used spaCy’s rule-based matcher (EntityRuler)
Defined patterns for:
Weapons (knife, gun, rod, etc.)
Crime actions (robbery, assault, etc.)
Hybrid Approach (Rule + ML)
Combined:
spaCy’s pre-trained model
Custom rules for domain-specific accuracy
Graph Correction
Ensured extracted entities are correctly mapped into nodes:
Person → Node
Weapon → Node
Action → Edge

Discussion

Builders also viewed

See more projects on Devfolio