MuhammadTechxone commited on
Commit
573ccdf
·
verified ·
1 Parent(s): 7d6fddb

Delete mental_health_app_real/DEVELOPMENT_STEPS.md

Browse files
mental_health_app_real/DEVELOPMENT_STEPS.md DELETED
@@ -1,39 +0,0 @@
1
- # 🛠️ Technical Process Overview: HeedX AI Pipeline
2
-
3
- This document outlines the end-to-end technical flow of the HeedX AI system, serving as the baseline for future intelligence improvements.
4
-
5
- ## Step 1: Input Acquisition
6
- * **Questionnaire Interface**: Collects multi-faceted user input across six specific psychological dimensions (Mood, Stress, Energy, Social, Outlook, General).
7
- * **Data Capture**: Responses are stored temporarily in the Streamlit Session State.
8
-
9
- ## Step 2: Text Preprocessing & Segmentation
10
- * **Normalization**: Text is lowercased and stripped of excessive noise (special characters/digits) to match training data conditions.
11
- * **Sentence Splitting**: Uses a robust Regex-based splitter to break long responses into individual analytical units. This allows for granular detection of conflicting emotions.
12
-
13
- ## Step 3: Classical ML Inference (The Classifier)
14
- * **Vectorization**: Sentences are converted into numerical features using the internal pipeline logic.
15
- * **SVM Prediction**: A Support Vector Machine (SVC) model classifies each sentence into one of four classes: `Normal`, `Anxiety`, `Depression`, or `Suicidal`.
16
- * **Confidence Scoring**: The model calculates the probability of each classification, flagging results with low confidence for "Review."
17
-
18
- ## Step 4: Analytical Aggregation
19
- * **Indicator Distribution**: Calculates the percentage of the total input belonging to each class.
20
- * **Primary/Secondary Identification**: Determines the dominant emotional states.
21
- * **Risk Level Calculation**:
22
- * Applies a logic-based threshold system (defined in `settings.py`).
23
- * Priority Flagging: If even a single sentence is flagged as `Suicidal`, the system triggers specific safety protocols regardless of other scores.
24
-
25
- ## Step 5: Recommendation Engine
26
- * **Contextual Mapping**: Maps the identified Risk Level and Primary Indicator to a library of culturally adapted Nigerian wellness tips.
27
- * **Resource Delivery**: Dynamically displays emergency contacts and professional support based on the calculated risk.
28
-
29
- ## Step 6: Conversational Context (The Chatbot)
30
- * **Context Injection**: The results of the Classical ML analysis are formatted into a "System Prompt" for the Llama-3 model.
31
- * **Informed Dialogue**: This allows the chatbot to "know" the user's assessment results without the user having to repeat themselves, bridging the gap between rigid classification and fluid conversation.
32
-
33
- ## Future Intelligence Deliberation
34
- * **Logic Enhancement**: Refining how the system weighs specific keywords vs. sentence structure.
35
- * **Trend Integration**: Improving the logic that tracks changes between different check-ins in the same session.
36
- * **Refinement of Risk Thresholds**: Adjusting the "Moderate" vs "High" risk triggers based on user testing data.
37
-
38
- ---
39
- *Next Steps: We will iterate on the Step 4 logic to better handle nuanced linguistic patterns common in Nigerian English (Pidgin/Local phrasing).*