File size: 3,084 Bytes
6b8ce51
 
 
 
 
4d252b6
6b8ce51
 
 
 
ff75123
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6b8ce51
1821ba4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
---
title: Heedx V2
emoji: 🌍
colorFrom: gray
colorTo: gray
sdk: docker
pinned: false
license: apache-2.0
short_description: mental wellness ap
---
---
title: HeedX AI
emoji: πŸ‡³πŸ‡¬
colorFrom: green
colorTo: gray
sdk: streamlit
sdk_version: 1.31.0
app_file: mental_app.py
pinned: false
---

# πŸ‡³πŸ‡¬ HeedX AI β€” Nigerian Mental Wellness & Clinical Decision Support

## Overview

HeedX AI is a two-mode mental health intelligence platform designed specifically for Nigerian contexts. It provides:

1. Mode A: Professional Case Analysis
   - For psychologists, psychiatrists, researchers, and case officers
   - Upload patient observations and receive structured qualitative analysis and evidence-grounded insights

2. Mode B: Conversational User Support
   - For individuals seeking empathetic, culturally sensitive mental wellness dialogue
   - Provides multi-turn support with context-aware, evidence-informed responses

Both modes share a unified architecture built on qualitative semantic understanding, retrieval-augmented generation (RAG), and dedicated safety protocols β€” not diagnostic percentages.

## Key Features

### Professional Mode (Case Analysis)
- Upload or paste patient/client observations (.pdf, .txt, or direct text)
- Structured qualitative extraction of:
  - Presenting concerns
  - Symptoms and signals
  - Duration and trajectory
  - Stressors and sociocultural context
  - Functional impact
  - Risk indicators and safety signals
  - Protective factors and resilience
- Evidence-grounded case formulation using Nigerian clinical literature and research
- Downloadable structured summaries for professional review
- Explicit safety triage separate from standard analysis

### Conversational Mode (User Chat)
- Natural multi-turn dialogue
- Automatic conversation state tracking
- Context-aware, evidence-informed responses
- Dedicated crisis detection and immediate safety escalation
- No diagnostic claims β€” supportive understanding only
- Warm, culturally attuned Nigerian mental wellness tone

### Shared Core Components
- Qualitative Analysis Engine
- RAG System
- Safety Layer
- Conversation State Manager
- Deterministic Support Modules

## No Diagnostic Percentages

Unlike traditional mental health AI, HeedX does not:
- Generate synthetic diagnostic percentages
- Claim clinical diagnoses
- Use a four-class ML classifier as the main inference engine
- Force complex human experience into artificial categories

Instead, HeedX provides qualitative clinical understanding grounded in evidence and cultural context.

## Nigerian Context
- Crisis hotlines (MANI, She Writes Woman, National Emergency)
- Federal Neuropsychiatric Hospital directories
- Faith and community support networks
- Nigerian proverbs and cultural wisdom
- Support for Nigerian English and idiomatic expressions
- Evidence from Nigerian epidemiological research

## Quick Start

```bash
cd mental_health_app_real
pip install -r requirements.txt
streamlit run mental_app.py

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference