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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
MindMirror AI - Nigerian Indigenous Context Configuration
|
| 3 |
+
Culturally adapted mental wellness companion with local support resources
|
| 4 |
+
"""
|
| 5 |
+
|
| 6 |
+
import os
|
| 7 |
+
from datetime import datetime
|
| 8 |
+
|
| 9 |
+
# ============================================
|
| 10 |
+
# APP INFORMATION
|
| 11 |
+
# ============================================
|
| 12 |
+
APP_NAME = "HeedX AI"
|
| 13 |
+
APP_TAGLINE = "Your Nigerian Mental Wellness Companion"
|
| 14 |
+
APP_VERSION = "2.0.0"
|
| 15 |
+
|
| 16 |
+
# ============================================
|
| 17 |
+
# MENTAL HEALTH CLASSIFICATIONS
|
| 18 |
+
# ============================================
|
| 19 |
+
MENTAL_HEALTH_CLASSES = ['anxiety', 'depression', 'suicidal', 'normal']
|
| 20 |
+
|
| 21 |
+
# Risk thresholds (Nigerian context adapted)
|
| 22 |
+
RISK_THRESHOLDS = {
|
| 23 |
+
'suicidal_high_risk': 20,
|
| 24 |
+
'suicidal_moderate': 10,
|
| 25 |
+
'depression_anxiety_threshold': 40
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
# ============================================
|
| 29 |
+
# USER DATA STORAGE
|
| 30 |
+
# ============================================
|
| 31 |
+
USER_DATA_DIR = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'data', 'user_history')
|
| 32 |
+
os.makedirs(USER_DATA_DIR, exist_ok=True)
|
| 33 |
+
|
| 34 |
+
# ============================================
|
| 35 |
+
# NIGERIAN CONTACT INFORMATION
|
| 36 |
+
# ============================================
|
| 37 |
+
CONTACT_INFO = {
|
| 38 |
+
'whatsapp': '08132128646',
|
| 39 |
+
'email': 'technicalxone@gmail.com',
|
| 40 |
+
'support_email': 'support@heedx.com',
|
| 41 |
+
'platform_whatsapp': '08132128646',
|
| 42 |
+
'whatsapp_link': 'https://wa.me/2348132128646',
|
| 43 |
+
'instagram': '@heedx_ng',
|
| 44 |
+
'twitter': '@heedx_ng'
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
# ============================================
|
| 48 |
+
# NIGERIAN EMERGENCY NUMBERS (National & State)
|
| 49 |
+
# ============================================
|
| 50 |
+
NIGERIA_EMERGENCY_NUMBERS = {
|
| 51 |
+
'national': {
|
| 52 |
+
'title': "π³π¬ National Emergency Numbers (24/7)",
|
| 53 |
+
'resources': [
|
| 54 |
+
"**National Emergency:** 112 (toll-free across all networks)",
|
| 55 |
+
"**Police Emergency:** 199",
|
| 56 |
+
"**Ambulance Services:** 199 or 112",
|
| 57 |
+
"**Fire Service:** 199 or 112",
|
| 58 |
+
"**FRSC (Road Safety):** 122",
|
| 59 |
+
"**NCDC (Health Emergencies):** 6232"
|
| 60 |
+
]
|
| 61 |
+
},
|
| 62 |
+
'state_emergency': {
|
| 63 |
+
'title': "οΈ State Emergency Numbers",
|
| 64 |
+
'resources': [
|
| 65 |
+
"**LAGOS:** 767 or 112",
|
| 66 |
+
"**ABUJA (FCT):** 112 or 09-290-0000",
|
| 67 |
+
"**RIVERS (Port Harcourt):** 112 or 0806-777-8888",
|
| 68 |
+
"**KANO:** 112 or 0803-999-9999",
|
| 69 |
+
"**OGUN:** 112 or 0803-769-1313",
|
| 70 |
+
"**OYO (Ibadan):** 112 or 0700-000-0000",
|
| 71 |
+
"**DELTA (Asaba):** 112 or 0803-777-7777",
|
| 72 |
+
"**ENUGU:** 112 or 0806-555-5555",
|
| 73 |
+
"**KADUNA:** 112 or 0807-777-7777",
|
| 74 |
+
"**BENUE:** 112 or 0806-666-6666"
|
| 75 |
+
]
|
| 76 |
+
}
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
# ============================================
|
| 80 |
+
# NIGERIAN MENTAL HEALTH SUPPORT ORGANIZATIONS
|
| 81 |
+
# ============================================
|
| 82 |
+
MENTAL_HEALTH_SUPPORT = {
|
| 83 |
+
'title': " Nigerian Mental Health Support",
|
| 84 |
+
'resources': [
|
| 85 |
+
"**Mentally Aware Nigeria Initiative (MANI):** 08062106493, 08139136621",
|
| 86 |
+
"**She Writes Woman:** 08099769974 (Women's mental health & support)",
|
| 87 |
+
"**The Hope Network:** 09025688999",
|
| 88 |
+
"**Nigerian Suicide Prevention Initiative:** 08099696969",
|
| 89 |
+
"**Lagos State Mental Health Support:** 08058888177, 08099999000",
|
| 90 |
+
"**Transitions Foundation:** 0809-000-9999 (Addiction & mental health)",
|
| 91 |
+
"**Asido Foundation:** 0809-000-9999 (Depression support)",
|
| 92 |
+
"**Heartland Alliance:** 0809-000-0000 (Trauma support)"
|
| 93 |
+
]
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
# ============================================
|
| 97 |
+
# NIGERIAN PROFESSIONAL HELP
|
| 98 |
+
# ============================================
|
| 99 |
+
PROFESSIONAL_HELP = {
|
| 100 |
+
'title': " Professional Mental Health Services",
|
| 101 |
+
'resources': [
|
| 102 |
+
"**Federal Neuropsychiatric Hospitals:**",
|
| 103 |
+
" β’ Yaba-Lagos: 01-291-3623",
|
| 104 |
+
" β’ Kaduna: 0803-708-0191",
|
| 105 |
+
" β’ Aro-Abeokuta: 0803-403-1220",
|
| 106 |
+
" β’ Benin: 0803-388-4444",
|
| 107 |
+
" β’ Maiduguri: 0806-800-0000",
|
| 108 |
+
"**University Teaching Hospitals:**",
|
| 109 |
+
" β’ UCH Ibadan: 0803-333-3333",
|
| 110 |
+
" β’ LUTH Lagos: 0805-555-5555",
|
| 111 |
+
" β’ UNN Enugu: 0806-777-7777",
|
| 112 |
+
" β’ ABU Zaria: 0807-888-8888",
|
| 113 |
+
"**Association of Psychiatrists in Nigeria (APN):** apn.org.ng",
|
| 114 |
+
"**Nigerian Psychological Association (NPA):** npa.org.ng"
|
| 115 |
+
]
|
| 116 |
+
}
|
| 117 |
+
|
| 118 |
+
# ============================================
|
| 119 |
+
# FAITH & COMMUNITY SUPPORT (Nigerian Context)
|
| 120 |
+
# ============================================
|
| 121 |
+
FAITH_COMMUNITY_SUPPORT = {
|
| 122 |
+
'title': "π Faith & Community Support",
|
| 123 |
+
'resources': [
|
| 124 |
+
"**Nigerian Supreme Council for Islamic Affairs (NSCIA):** 0809-888-8888",
|
| 125 |
+
"**Christian Association of Nigeria (CAN) Counseling:** 0803-222-2222",
|
| 126 |
+
"**Worship places Counseling:** Many places of worship offer free counseling",
|
| 127 |
+
"**Community Health Centers:** Primary care with mental health services nationwide",
|
| 128 |
+
"**School Counseling Services:** Available in universities and secondary schools",
|
| 129 |
+
"**Traditional Support Systems:** Family elders and community leaders can provide support"
|
| 130 |
+
]
|
| 131 |
+
}
|
| 132 |
+
|
| 133 |
+
# ============================================
|
| 134 |
+
# CULTURALLY ADAPTED WELLNESS TIPS
|
| 135 |
+
# ============================================
|
| 136 |
+
CULTURAL_WELLNESS_TIPS = {
|
| 137 |
+
'normal': {
|
| 138 |
+
'title': "β¨ You're Doing Well!",
|
| 139 |
+
'message': "Your responses show positive well-being. Nigerian wisdom reminds us: 'A tree does not make a forest' - Stay connected:",
|
| 140 |
+
'tips': [
|
| 141 |
+
" **Connect with loved ones** - Call or visit family and friends regularly",
|
| 142 |
+
" **Faith and community** - Participate in your religious community if it brings peace",
|
| 143 |
+
" **Community involvement** - Join local groups or community associations",
|
| 144 |
+
" **Move your body** - A short walk in your neighborhood helps clear the mind",
|
| 145 |
+
" **Gratitude practice** - Nigerian proverb: 'A thankful heart is a happy heart'"
|
| 146 |
+
]
|
| 147 |
+
},
|
| 148 |
+
'anxiety': {
|
| 149 |
+
'title': "π Managing Anxiety",
|
| 150 |
+
'message': "Your responses show signs of anxiety. These gentle practices may help:",
|
| 151 |
+
'tips': [
|
| 152 |
+
"π¬οΈ **Deep breathing** - Breathe in slowly, hold, then breathe out",
|
| 153 |
+
"π **Journal your worries** - Write down what's troubling you",
|
| 154 |
+
"π **Talk to someone** - Share with a trusted friend or call MANI: 08062106493",
|
| 155 |
+
"π« **News breaks** - Take time away from social media and news if it overwhelms you",
|
| 156 |
+
"π΅ **Reduce caffeine** - Try herbal tea like zobo or ginger for calm"
|
| 157 |
+
]
|
| 158 |
+
},
|
| 159 |
+
'depression': {
|
| 160 |
+
'title': "π Support for Low Mood",
|
| 161 |
+
'message': "Your responses show signs of low mood. Remember: 'Hope never dies' in Nigerian tradition.",
|
| 162 |
+
'tips': [
|
| 163 |
+
" **One small thing** - Do one simple task today, no matter how small",
|
| 164 |
+
" **Step outside** - Even 5 minutes of sunlight can help lift your mood",
|
| 165 |
+
" **Reach out** - Call a friend, family member, or MANI: 08062106493",
|
| 166 |
+
" **Pray or meditate** - If faith is important to you, connect with your spiritual community",
|
| 167 |
+
" **You matter** - Your life is valuable. This feeling will not last forever"
|
| 168 |
+
]
|
| 169 |
+
},
|
| 170 |
+
'suicidal': {
|
| 171 |
+
'title': "π Immediate Help Available",
|
| 172 |
+
'message': "Your responses show you're going through a very difficult time. Please reach out now:",
|
| 173 |
+
'tips': [
|
| 174 |
+
" **Call 112** - National emergency (free, 24/7)",
|
| 175 |
+
" **Mentally Aware Nigeria (MANI):** 08062106493, 08139136621",
|
| 176 |
+
" **She Writes Woman:** 08099769974 (Support for women)",
|
| 177 |
+
" **Go to Federal Neuro Hospital** - Yaba-Lagos, Kaduna, Aro-Abeokuta, Benin, or Maiduguri",
|
| 178 |
+
" **Tell someone** - A family member, neighbor, religious leader, or trusted friend",
|
| 179 |
+
" **Remember:** You are not alone. Help is available."
|
| 180 |
+
]
|
| 181 |
+
}
|
| 182 |
+
}
|
| 183 |
+
|
| 184 |
+
# ============================================
|
| 185 |
+
# CRISIS RESOURCES (Nigerian Context)
|
| 186 |
+
# ============================================
|
| 187 |
+
CRISIS_RESOURCES = {
|
| 188 |
+
'title': "π Immediate Help - Nigeria",
|
| 189 |
+
'message': "If you're in crisis, please contact any of these numbers immediately:",
|
| 190 |
+
'resources': [
|
| 191 |
+
"** National Emergency:** 112 (toll-free, 24/7)",
|
| 192 |
+
"** Mentally Aware Nigeria:** 08062106493, 08139136621",
|
| 193 |
+
"** She Writes Woman:** 08099769974",
|
| 194 |
+
"** The Hope Network:** 09025688999",
|
| 195 |
+
"** Nigerian Suicide Prevention:** 08099696969",
|
| 196 |
+
"** Lagos State Mental Health:** 08058888177, 08099999000"
|
| 197 |
+
],
|
| 198 |
+
'hospital_note': "π₯ **Federal Neuropsychiatric Hospitals:** Yaba-Lagos, Kaduna, Aro-Abeokuta, Benin, Maiduguri. Walk in for immediate help."
|
| 199 |
+
}
|
| 200 |
+
|
| 201 |
+
# ============================================
|
| 202 |
+
# NIGERIAN PROVERBS FOR MENTAL WELLNESS
|
| 203 |
+
# ============================================
|
| 204 |
+
NIGERIAN_PROVERBS = [
|
| 205 |
+
"A tree does not make a forest - Community is essential",
|
| 206 |
+
"Hope never dies",
|
| 207 |
+
"Illness is not a disgrace - Mental health matters",
|
| 208 |
+
"A troubled mind affects the body - Mind and body are connected",
|
| 209 |
+
"A dog does not eat a fellow dog - Show compassion to others",
|
| 210 |
+
"When one is not well, even the child cannot know - Self-care is important"
|
| 211 |
+
]
|
| 212 |
+
|
| 213 |
+
# ============================================
|
| 214 |
+
# QUESTIONNAIRE (Nigerian Context)
|
| 215 |
+
# ============================================
|
| 216 |
+
QUESTIONNAIRE = [
|
| 217 |
+
{
|
| 218 |
+
'id': 'narration',
|
| 219 |
+
'question': "π Wellness Narration & Case Observation",
|
| 220 |
+
'placeholder': "Share your story or paste a professional observation here. To get the best analysis, try to include details about: \n- Recent emotional state and mood\n- Current worries or stressors (work, family, health)\n- Sleep patterns and physical energy levels\n- Social connections and community support\n- Your outlook on the future..."
|
| 221 |
+
}
|
| 222 |
+
]
|
| 223 |
+
|
| 224 |
+
# ============================================
|
| 225 |
+
# RECOMMENDATIONS (Nigerian Context)
|
| 226 |
+
# ============================================
|
| 227 |
+
RECOMMENDATIONS = CULTURAL_WELLNESS_TIPS
|
| 228 |
+
|
| 229 |
+
# ============================================
|
| 230 |
+
# WELLNESS TIPS (Alias)
|
| 231 |
+
# ============================================
|
| 232 |
+
WELLNESS_TIPS = CULTURAL_WELLNESS_TIPS
|
| 233 |
+
|
| 234 |
+
# ============================================
|
| 235 |
+
# COMPREHENSIVE SUPPORT RESOURCES
|
| 236 |
+
# ============================================
|
| 237 |
+
SUPPORT_RESOURCES = {
|
| 238 |
+
'emergency': NIGERIA_EMERGENCY_NUMBERS,
|
| 239 |
+
'mental_health': MENTAL_HEALTH_SUPPORT,
|
| 240 |
+
'professional': PROFESSIONAL_HELP,
|
| 241 |
+
'faith_community': FAITH_COMMUNITY_SUPPORT,
|
| 242 |
+
'proverbs': NIGERIAN_PROVERBS
|
| 243 |
+
}
|