← ALL PROJECTS
Cloud & backendContainerized for cloud deployment

CrimeLensAI.

Linking case evidence through independent services.

CrimeLensAI is a collaborative case-analysis prototype that brings unstructured case evidence, extracted entities, and cross-case relationships into one workflow. A React interface supports case intake and investigation views, while Python services process evidence and expose application APIs. Entity extraction combines spaCy, pattern-based processing, fuzzy matching, and entity resolution to help connect references to people, places, and other case entities.

PostgreSQL stores relational case information and Neo4j represents graph relationships. A hash-chained audit ledger records changes, and Docker Compose separates the interface, APIs, extraction, ingestion, graph, and audit components. My documented team responsibility is entity extraction and resolution. The system is presented as a prototype, not as a verified operational law-enforcement platform.

CRIMELENSAI / CONCEPT STUDYProject illustration
THE PROBLEM

Why this build exists.

Case reports recorded in isolation make it difficult to recognise repeated people, phone numbers, vehicles, and payment identifiers. This team prototype explores extracting those references from evidence, linking related cases, and retaining source traceability for review.

My role & attribution

The current README identifies bharath0757 as the lead for entity extraction, fuzzy matching, and entity resolution. The frontend, orchestration, graph, and audit services have other documented module leads. My contribution is presented within that shared team architecture.

THE BUILD

What went
into it.

Project work & contribution

  • The README identifies my lead area as entity extraction: NLP, fuzzy matching, and entity resolution. The wider application is a team project.

Technology stack

ReactFastAPIspaCyNeo4jPostgreSQLDocker
Frontend
React, TypeScript, Vite
Backend
Python, FastAPI
NLP
spaCy, pattern matching, fuzzy matching, entity resolution
Data
PostgreSQL and Neo4j
Delivery
Docker Compose; Vercel web deployment
UNDER THE HOOD

Follow the architecture.

Select a component. Use arrow keys to move.

Web interface / React + Vite

Case intake and investigation views. The local web container exposes port 5173 on loopback by default.

Case gateway / FastAPI

Coordinates the service calls and relational case storage. Starts after migration success and dependency health checks.

Ingestion / FastAPI

Validates incoming evidence and is configured to call the case API over the internal Compose network.

Entity extraction / spaCy + patterns

My documented module lead area: extraction, normalization, fuzzy matching, and entity resolution with confidence fields and source offsets.

Graph service / FastAPI + Neo4j driver

Links case entities and queries the graph. The local stack uses the Neo4j service; the Render configuration supplies an external Neo4j connection.

Audit ledger / FastAPI + hash chain

Records auditable changes and uses its own database role. Waits for migrations before starting.

Relational storage / PostgreSQL

Case records and ledger persistence, with distinct runtime roles and a named data volume.

Graph storage / Neo4j

Cross-case relationships persisted in the local Compose graph volume.

Read all 8 connections
  • Web interface → Case gatewayCase API requests
  • Case gateway → IngestionEvidence ingestion
  • Case gateway → Entity extractionEntity processing
  • Case gateway → Graph serviceRelationship analysis
  • Case gateway → Audit ledgerAudit operations
  • Case gateway → Relational storageCase storage
  • Audit ledger → Relational storageAudit storage
  • Graph service → Graph storageGraph queries

Local application topology based on the README and Compose source reviewed 21 Oct 2026. Lines describe application responsibilities; migration and health-check startup dependencies are documented in the deployment lab. This is not a verified cloud network.

ENGINEERING DECISIONS

Inside the implementation.

  1. 01

    A FastAPI extraction service combines spaCy NER and deterministic patterns. Its response includes entity types, normalized values, confidence fields, and offsets into the original source text.

  2. 02

    Normalization and resolution connect equivalent references while keeping evidence locations available. The committed extraction tests check phone and vehicle variants, source offsets, type separation, and deterministic canonical identifiers.

  3. 03

    The case gateway coordinates ingestion, extraction, graph analysis, and the audit ledger. PostgreSQL stores case and audit records; the graph service uses Neo4j. These are separate service responsibilities, not one extraction module.

  4. 04

    Compose gates API startup on successful migrations and healthy internal services. The extraction health check requires a loaded spaCy model, rather than accepting only an HTTP response.

Challenges & tradeoffs

  • Similar names can refer to different people. Fuzzy matches need review; an extracted relationship is not an established fact.
  • Normalization must preserve offsets into the original text. The tests compare returned slices with the source rather than treating normalized values as the source evidence.
  • A live gateway does not prove downstream services are healthy. Dependency checks and an end-to-end evidence workflow are separate release checks.
VERIFICATION

What was checked.

Reviewed the committed extraction test file and CI workflow on 21 Oct 2026. Tests cover normalization, source offsets, resolution, response shape, and health fields. CI defines frontend and Python suites plus an isolated Compose integration job. These source checks do not establish a passing run or a successful production workflow; the services were not executed in this portfolio review.

DELIVERY NOTES

From code to deployment.

The local Compose configuration defines the web, case API, extraction, ingestion, graph, audit, PostgreSQL, Neo4j, and migration services. The committed Render configuration separates backend services and uses an external Neo4j connection; the frontend has Vercel configuration. The web demo link is retained, but successful backend rollout and real workflow execution were not verified here.

CLOUD FOCUS

Service boundaries, data stores, configuration, and deployment workflows.

SCOPE & NEXT STEPS

The current boundary.

This is a collaborative prototype. No operational police integration, production availability, model-accuracy benchmark, or court admissibility is claimed. The public web link does not prove backend readiness. Cloud rollout, service monitoring, and production recovery still require deployment-specific verification.