NLP Crisis Context Mapper
Machine Learning & NLP

NLP Crisis Context Mapper

Traditional text classification models evaluate crisis statements in a vacuum, focusing on isolated keywords rather than the temporal behavioral changes and context paths critical for clinical risk assessment.

The Solution

I developed an NLP engine that predicts crisis risk levels from user statements. Instead of just using TF-IDF vectors, I utilized a Neo4j Graph Database to map connections between emotional states, anxiety triggers, and temporal behavioral changes. A Scikit-Learn ensemble model categorizes the statements into clinical risk brackets.

  • Wrote text preprocessing scripts utilizing TF-IDF, tokenizers, and sentiment analyzers in Python
  • Designed a Neo4j graph schema to link nodes representing patient IDs, sentiment scores, and distress tokens
  • Trained a Scikit-Learn ensemble model to categorize statements into clinical risk brackets
  • Wrote Cypher queries to help evaluators trace chronological context pathways instead of isolated keywords

System Pipeline

Step 01

Crisis Input

Sensitive user distress raw text

Step 02

NLP TF-IDF Parser

Mathematical keyword vector mappings

Step 03

Sentiment Polarity

Behavioral polarity extraction

Step 04

Clinical Classifier

Scikit-Learn risk assessment score

Step 05

Neo4j Graph db

Cypher semantic node context tracing

Engineering Trade-offs

Why?I traded the simple setup of a relational database for the steeper learning curve of Neo4j. The graph architecture was necessary because tracking the relationship pathways between distress tokens proved far more predictive than their isolated frequencies.

Proven Impact

%

Enabled clinical evaluators to trace chronological context pathways, significantly enhancing pattern detection and reducing false-positive risk alerts by providing graph-backed contextual evidence for every prediction.

The Constraints

Timeline
10 Weeks (Internship)
Team
Data Specialist Intern
Core Tech
Neo4j, Python, Scikit-Learn, NLP

Stack

PythonScikit-LearnNeo4jNLPPandas