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.
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.
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.
| Model | CoV across labels |
|---|---|
| Class-weighted LSTM | 0.87–2.61% |
| PaLM | 13.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.
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.
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 ↗