$ cat stress-classification/README.md
Research · Christ University · Sep 2023 – May 2025 · Bangalore, India

Stress classification: LSTM vs. PaLM consistency

Multi-label classification of 27 psychological stress markers in free text, plus a crisis-intervention platform for first responders built around it. The main finding: a class-weighted LSTM was far more consistent across labels than PaLM, even where PaLM held a small accuracy edge.

Role
Research: model training, evaluation and platform development
Context
Christ University · Bangalore, India · Published in Elsevier NLP Journal, 2025
Artifact
0.87–2.61%
CoV across labels · class-weighted LSTM
13.93–18.63%
CoV across labels · PaLM (much less consistent)
Problem

Mean accuracy hides per-label instability

Stress in free text is multi-label: a single message can show several of 27 markers. A model that scores well on average can still be unreliable on specific labels, which matters if those labels drive clinical decisions. We used coefficient of variation across labels as the selection criterion, not mean accuracy alone.

Setup

Data and model comparison

The dataset was not an open-source corpus. We collected free-text stress data and had practicing government psychiatrists label it against a 27-marker multi-label taxonomy grouped into 4 categories, with 1,200 expert-labeled texts in total. The same clinicians validated model outputs.

I benchmarked SVM, Random Forest and LSTM over TF-IDF and LDA feature combinations. The class-weighted LSTM was then compared against PaLM. The selection criterion was per-label consistency measured by CoV, not mean accuracy.

Results

The smaller model was more consistent

ModelCoV across labels
Class-weighted LSTM0.87–2.61%
PaLM13.93–18.63%

PaLM's accuracy edge came with far larger variation across labels, so the class-weighted LSTM was the safer choice for deployment.

Platform and patent

Crisis-intervention tool for first responders

Indian patent application No. 202441058591, filed and published, for a pipeline that connects Llama-2-7b-chat to Google Text-to-Speech through a Python/Flask service tunneled with pyngrok.

The web app is a Flask service with a hotline-assist tool. It routes live call audio through speech-to-text into a zero-shot primed Llama-2-7b-chat, which surfaces de-escalation prompts and follow-up questions to responders in real time.

Limitations
  • The dataset is 1,200 texts from one clinical labeling effort. The results aren't tested on outside data.
  • PaLM is a hosted model that has since been superseded. The LLM comparison reflects that model at that time.
Skills demonstrated
multi-label classificationLSTMTF-IDF · LDASVM · Random ForestPaLMLlama-2-7b-chatTensorFlowscikit-learnFlaskGoogle Text-to-Speechpyngrokevaluation designpatent application
Publication

Categorizing Mental Stress: A Consistency-Focused Benchmarking of ML and DL Models for Multi-Label, Multi-Class Classification via Taxonomy-Driven NLP Techniques

Juswin Sajan John, Boppuru Rudra Prathap, Gyanesh Gupta, Jaivanth Melanaturu

Elsevier, Natural Language Processing Journal, 2025. DOI: 10.1016/j.nlp.2025.100162 ↗