Loading...
Loading...
Analyze mental health data, identify psychological patterns, assess mental health status, and provide personalized mental health recommendations. Supports correlation analysis with other health data such as sleep, exercise, and nutrition.
npx skill4agent add huifer/wellally-health mental-health-analyzer/mental trend/mental pattern/mental therapy progress/crisis assessment/mental reportdata-example/mental-health-tracker.jsondata-example/mental-health-logs/.index.jsondata-example/mental-health-logs/YYYY-MM/YYYY-MM-DD.json- Analyze PHQ-9 scores at different time points
- Calculate score change rate (points/month)
- Identify severity changes (none/mild/moderate/severe)
- Detect changes in PHQ-9 Item 9 (suicidal ideation)
- Predict future trends (improving/stable/worsening)
- Correlate with treatment progress analysis- Analyze time-series changes in GAD-7 scores
- Identify change patterns of anxiety symptoms
- Correlate triggering factors with anxiety levels
- Assess the effectiveness of coping methods
- Predict anxiety trends- Correlation between PSQI scores and PHQ-9/GAD-7 scores
- Impact of sleep disorders on mood
- Relationship between sleep improvement and mental state improvement- Identify severity escalation (requires attention)
- Identify severity de-escalation (positive signal)
- Detect rapid deterioration (≥5 points/month, crisis warning)
- Detect rapid improvement (reinforce effective strategies)- Count the most common primary emotions (top 5)
- Calculate average emotional intensity
- Identify emotional distribution patterns
- Analyze emotional diversity- Emotional change patterns throughout the day (morning/afternoon/evening)
- Emotional change patterns throughout the week (Monday to Sunday)
- Emotional fluctuation level (variance/standard deviation)
- Emotional stability assessment- Count high-frequency triggering factors (top 10)
- Calculate the average impact of each triggering factor
- Identify high-risk triggering factors (high impact + high frequency)
- Correlate triggering factors with emotion types- Calculate the effectiveness of each coping method (ratio of helpful/unhelpful)
- Identify high-efficiency coping strategies (>80% effective)
- Identify low-efficiency coping strategies (<50% effective)
- Analyze the matching between coping methods and emotion types- Calculate the completion percentage of each goal
- Assess symptom improvement level (baseline → current → goal)
- Estimate goal achievement time
- Identify lagging goals (need adjustment)- Treatment frequency and adherence
- Homework completion rate and quality
- Strength of therapeutic alliance
- Emotional changes before and after counseling- Changes in PHQ-9/GAD-7 scores (pre-treatment → post-treatment)
- Symptom relief percentage
- Functional level improvement
- Quality of life changesRisk Level Calculation (Total Score 0-20+):
1. PHQ-9 Item 9 Detection (Highest Priority)
- Score=2 (often): +10 points, directly determine high risk
- Score=1 (sometimes): +5 points
- Score=0 (not at all): +0 points
2. Symptom Rapid Deterioration Detection
- Rapid deterioration (≥5 points/month): +5 points
- Deterioration (2-4 points/month): +3 points
- Stable (-1 to 1 points/month): +0 points
- Improvement (≤-2 points/month): -2 points
3. High-Intensity Negative Emotion Proportion Detection
- Proportion>70%: +3 points
- Proportion 50-70%: +2 points
- Proportion<50%: +0 points
4. Emotional Fluctuation Detection
- Variance>6 (high fluctuation): +2 points
- Variance 4-6 (medium fluctuation): +1 points
- Variance<4 (low fluctuation): +0 points
5. Crisis Plan Early Warning Signal Detection
- Each early warning signal detected: +2 points
6. Social Withdrawal Detection
- Severe withdrawal (alone time>80%): +3 points
- Moderate withdrawal (alone time 50-80%): +2 points
- Mild/no withdrawal: +0 points
7. Functional Impairment Detection
- Severe impairment (≥5 days/week): +4 points
- Moderate impairment (3-4 days/week): +2 points
- Mild/no impairment: +0 points
Risk Level Determination:
- High Risk (≥10 points): Seek medical attention immediately, initiate crisis intervention
- Medium Risk (5-9 points): Monitor closely, consider seeking medical attention (within 48 hours)
- Low Risk (0-4 points): Continue monitoring, regular assessment- Hopelessness (hopelessness)
- Social withdrawal (social_withdrawal)
- Extreme mood swings (extreme_mood_swings)
- Talk of death (talk_of_death)
- Giving away possessions (giving_away_possessions)
- Self-harm ideation (self_harm)
- Suicidal thoughts (suicidal_thoughts)
- Substance abuse (substance_abuse)Seek medical attention immediately (within 24 hours):
- PHQ-9 Item 9 score ≥2
- Total risk score ≥10 points
- Presence of hallucinations or delusions
- Having self-harm or suicide plans
Seek medical attention as soon as possible (within 48 hours):
- PHQ-9 ≥15 points or GAD-7 ≥15 points
- Total risk score 5-9 points
- Rapid symptom deterioration (≥5 points/month)
- Severe functional impact
Seek regular medical attention (within 1 month):
- PHQ-9 10-14 points or GAD-7 10-14 points
- Total risk score <5 points but symptoms persist
- Need professional supportdata-example/sleep-tracker.json- Correlation between sleep duration and PHQ-9 scores
- Correlation between sleep quality and GAD-7 scores
- Relationship between insomnia symptoms and emotional stability
- Temporal relationship between sleep improvement and mental state improvement
- Correlation between sleep disorder types and specific psychological symptoms- Correlation coefficient and statistical significance
- Impact level of sleep on mental state (high/medium/low)
- Sleep improvement recommendations
- Analysis of the bidirectional relationship between sleep and mooddata-example/fitness-tracker.json- Relationship between exercise frequency and average emotional intensity
- Relationship between exercise type and emotional improvement effect
- Relationship between exercise intensity and anxiety levels
- Relationship between exercise duration and emotional duration
- Emotional change patterns after exercise
- Relationship between exercise habits and depressive symptoms- Positive impact level of exercise on mood
- Recommendations for the most effective exercise types
- Recommendations for optimal exercise frequency
- Relationship between exercise and coping methodsdata-example/nutrition-tracker.json- Relationship between caffeine intake and GAD-7 anxiety scores
- Correlation between sugar intake and emotional fluctuations
- Relationship between eating regularity and emotional stability
- Specific nutrient deficiencies (vitamin D, Omega-3) and depressive symptoms
- Eating patterns and overall mental health- Impact level of diet on mental state
- Nutrition recommendations (e.g., reduce caffeine intake, balanced diet)
- Possible nutrient deficiency prompts
- Dietary adjustment recommendationsdiabetes-tracker.jsonhypertension-tracker.json- Relationship between chronic pain and depressive symptoms
- Relationship between disease control status and mental state
- Relationship between functional limitations and mental health
- Relationship between disease burden and anxiety levels
- Comorbidity pattern recognition
- Impact of medication side effects on mood
- Relationship between medication adherence and symptom improvement- Impact level of chronic diseases on mental health
- Psychological issues requiring special attention
- Overall health management recommendations
- Benefits of psychological support for disease management# Mental Health Analysis Report
**Report Date**: YYYY-MM-DD
**Analysis Period**: YYYY-MM-DD to YYYY-MM-DD
**Data Completeness**: Good
⚠️ **Important Note**: This report is for reference only and does not constitute a medical diagnosis. If you are experiencing severe psychological distress, please seek help from a professional psychologist.
---
## Crisis Risk Early Warning
**Current Risk Level**: 🟢 Low Risk | 🟡 Medium Risk | 🔴 High Risk
**Risk Score**: X/20
**Risk Factors**:
- [List detected risk factors]
**Recommended Actions**:
- [Provide specific recommendations based on risk level]
---
## 1. Mental Health Status Summary
[Overall Evaluation: Excellent/Good/Fair/Needs Improvement/Crisis]
- PHQ-9 Score: X points (severity)
- GAD-7 Score: X points (severity)
- Sleep Quality: X points (PSQI)
- Overall Trend: Improving/Stable/Worsening
## 2. Psychological Assessment Trend Analysis
### PHQ-9 Depression Score Trend
- Current Score: X points
- Baseline Score: X points
- Change: ±X points
- Change Rate: X points/month
- Trend: Improving/Stable/Worsening
- Severity Change: [Severity 1] → [Severity 2]
**Chart Description**:
- [Line chart showing PHQ-9 score changes]
- [Mark severity boundaries: 5, 10, 15]
**Special Attention**:
- Item 9 (Suicidal Ideation) Score: X
- Highest Scoring Item: [Item Name]
- Persistent Issues: [List items]
### GAD-7 Anxiety Score Trend
- Current Score: X points
- Baseline Score: X points
- Change: ±X points
- Change Rate: X points/month
- Trend: Improving/Stable/Worsening
**Chart Description**:
- [Line chart showing GAD-7 score changes]
- [Mark severity boundaries: 5, 10, 15]
**Main Anxiety Symptoms**:
- Highest Scoring Item: [Item Name]
- Main Triggering Factors: [List]
### PSQI Sleep Quality
- Total Score: X points
- Sleep Quality: [Evaluation]
- Main Issues: [List problem components]
## 3. Emotional Pattern Analysis
### Common Emotions
1. [Emotion 1] - X% proportion, average intensity X/10
2. [Emotion 2] - X% proportion, average intensity X/10
3. [Emotion 3] - X% proportion, average intensity X/10
**Chart Description**:
- [Pie chart showing emotion distribution]
- [Radar chart showing multi-dimensional emotions]
### Time Pattern
- Morning: Main emotion [Emotion], average intensity X/10
- Afternoon: Main emotion [Emotion], average intensity X/10
- Evening: Main emotion [Emotion], average intensity X/10
### Weekly Pattern
- Monday to Friday: Main emotion [Emotion], average intensity X/10
- Weekends: Main emotion [Emotion], average intensity X/10
### Emotional Stability
- Fluctuation Level: High/Medium/Low
- Emotion Variance: X
**Chart Description**:
- [Line chart showing time-series changes in emotional intensity]
- [Fluctuation range visualization]
## 4. Triggering Factor Analysis
### High-Frequency Triggering Factors (Top 10)
| Rank | Triggering Factor | Frequency | Average Impact |
|------|-------------------|-----------|----------------|
| 1 | [Triggering Factor 1] | X times | High/Medium/Low |
| 2 | [Triggering Factor 2] | X times | High/Medium/Low |
| ... |
### High-Risk Triggering Factors (High Impact + High Frequency)
- [Triggering Factor 1] - X frequency, high impact, recommendation: [Coping recommendation]
- [Triggering Factor 2] - X frequency, high impact, recommendation: [Coping recommendation]
**Chart Description**:
- [Bar chart showing triggering factor frequencies]
- [Heatmap showing correlation between triggering factors and emotion types]
## 5. Coping Method Effectiveness Assessment
### Coping Method Ranking (By Effectiveness)
| Coping Method | Effective Times | Ineffective Times | Effectiveness Rate | Rank |
|---------------|-----------------|-------------------|--------------------|------|
| [Coping Method 1] | X times | X times | XX% | 1 |
| [Coping Method 2] | X times | X times | XX% | 2 |
| ... |
### High-Efficiency Coping Strategies (>80% Effective)
- [Strategy 1] - XX% effectiveness rate, recommended for use
- [Strategy 2] - XX% effectiveness rate, recommended for use
### Low-Efficiency Coping Strategies (<50% Effective)
- [Strategy 1] - XX% effectiveness rate, recommend adjustment or discontinuation
- [Strategy 2] - XX% effectiveness rate, recommend adjustment or discontinuation
**Chart Description**:
- [Bar chart showing coping method effectiveness ranking]
- [Pie chart showing effective/ineffective proportion]
## 6. Psychotherapy Progress
### Treatment Overview
- Treatment Type: [CBT/Psychodynamic/Humanistic, etc.]
- Treatment Frequency: [Weekly/Every two weeks, etc.]
- Number of Counseling Sessions Conducted: X times
- Treatment Duration: X months
### Treatment Goal Progress
| Goal | Baseline | Current | Target | Progress | Estimated Achievement Date |
|------|----------|---------|--------|----------|---------------------------|
| [Goal 1] | X points | X points | X points | XX% | YYYY-MM-DD |
| [Goal 2] | X points | X points | X points | XX% | YYYY-MM-DD |
**Overall Progress Evaluation**: [Excellent/Good/Fair/Needs Improvement]
### Symptom Improvement
- PHQ-9 Score Change: X points → X points, XX% improvement
- GAD-7 Score Change: X points → X points, XX% improvement
- Overall Functional Level: [Improving/Stable/Worsening]
### Homework Completion Status
- Average Completion Rate: XX%
- High-Quality Completion: XX%
- Areas Needing Strengthening: [List]
## 7. Crisis Risk Assessment
### Risk Level
**Current Risk Level**: 🟢 Low Risk | 🟡 Medium Risk | 🔴 High Risk
**Risk Score**: X/20
### Risk Factor Analysis
| Risk Factor | Score | Details |
|-------------|-------|---------|
| PHQ-9 Item 9 | X points | Score X, [Details] |
| Symptom Change | X points | [Rapid deterioration/Deterioration/Stable/Improvement] |
| Emotional Intensity | X points | High-intensity negative emotion proportion XX% |
| Emotional Fluctuation | X points | [High/Medium/Low] fluctuation |
| Early Warning Signals | X points | X early warning signals detected: [List] |
| Social Withdrawal | X points | [Severe/Moderate/Mild/No] withdrawal |
| Functional Impairment | X points | [Severe/Moderate/Mild/No] impairment |
### Detected Early Warning Signals
- [List if any]
### Recommended Actions
- [Provide specific action recommendations based on risk level]
### Emergency Resources
- Psychological Crisis Hotline: 400-xxx-xxxx (24/7)
- Psychiatric Emergency Department: Nearest tertiary hospital
- Emergency Call: 120
## 8. Correlation Analysis with Other Health Factors
### Sleep-Psychology Correlation
**Correlation Strength**: High/Medium/Low
**Key Findings**:
- Correlation between sleep duration and PHQ-9 scores: r=X.XX
- Relationship between sleep quality and emotional stability: [Description]
- Main Sleep Issues: [List]
- Potential Benefits of Sleep Improvement on Mental State: [Description]
**Recommendations**:
- [Specific sleep improvement recommendations]
### Exercise-Emotion Correlation
**Correlation Strength**: High/Medium/Low
**Key Findings**:
- Relationship between exercise frequency and emotional improvement: [Description]
- Most Effective Exercise Types: [List]
- Emotional Changes After Exercise: [Description]
**Recommendations**:
- [Specific exercise recommendations]
### Nutrition-Psychology Correlation
**Correlation Strength**: High/Medium/Low
**Key Findings**:
- Relationship between caffeine intake and anxiety: [Description]
- Relationship between sugar intake and emotional fluctuations: [Description]
- Possible Nutrient Deficiencies: [List]
**Recommendations**:
- [Specific nutrition recommendations]
### Chronic Disease-Psychology Correlation
**Correlation Strength**: High/Medium/Low
**Key Findings**:
- Relationship between [Chronic Disease] and mental state: [Description]
- Impact of disease burden on mental health: [Description]
- Relationship between functional limitations and mood: [Description]
**Recommendations**:
- [Specific overall health management recommendations]
## 9. Comprehensive Recommendations
### Immediate Actions (If Applicable)
- [List immediate actions if there are urgent issues]
### Weekly Action Plan
1. [Action Item 1] - Priority: High/Medium/Low
2. [Action Item 2] - Priority: High/Medium/Low
3. ...
### Monthly Goals
1. [Goal 1]
2. [Goal 2]
3. ...
### Areas to Continue Maintaining
- [List areas that are well-done, encourage continued maintenance]
### Areas Needing Improvement
- [List areas needing improvement, provide specific recommendations]
### Recommended Resources
- [Books/Apps/Support Groups/Online Resources, etc.]
## 10. Data Quality Description
- Data Completeness: [Excellent/Good/Fair/Needs Improvement]
- Number of PHQ-9 Assessments: X times
- Number of GAD-7 Assessments: X times
- Number of Mood Journal Entries: X entries
- Time Span: X days
---
**Report Generation Time**: YYYY-MM-DD HH:MM:SS
**Next Recommended Assessment Time**: YYYY-MM-DD
⚠️ **Disclaimer**: This report is automatically generated by the Mental Health Analysis Skill, for reference only, and does not constitute a medical diagnosis or treatment recommendation. If you have any mental health issues, please seek help from a professional psychologist or psychiatrist./mental trend 3months# Mental Health Trend Analysis (Last 3 Months)
## Overall Trend
- PHQ-9: 14 points → 8 points, 6 points improvement, trend: Improving ✓
- GAD-7: 12 points → 6 points, 6 points improvement, trend: Improving ✓
- Change Rate: Approximately 2 points/month
## Severity Changes
- PHQ-9: Moderate depression → Mild depression ✓
- GAD-7: Moderate anxiety → Mild anxiety ✓
## Positive Signals
- Symptoms continue to improve
- PHQ-9 Item 9 score: 1 → 0 ✓
- Treatment is effective ✓
## Recommendations
- Continue current treatment
- Maintain exercise and sleep habits
- Next assessment: In 1 month/mental pattern# Emotional Pattern Analysis
## Common Emotions (Top 3)
1. Anxiety - 35% proportion, average intensity 7/10
2. Fatigue - 25% proportion, average intensity 6/10
3. Calm - 20% proportion, average intensity 7/10
## Time Pattern
- Morning: Calm (intensity 7/10) 😌
- Afternoon: Anxiety (intensity 7/10) 😰
- Evening: Fatigue (intensity 6/10) 😴
## Main Triggering Factors (Top 5)
1. Work pressure - 12 times, high impact
2. Sleep deprivation - 8 times, medium impact
3. Exercise - 6 times, positive impact
4. Social interaction - 5 times, positive impact
5. Traffic congestion - 4 times, medium impact
## High-Efficiency Coping Strategies
1. Exercise - 90% effectiveness rate ✓
2. Meditation - 85% effectiveness rate ✓
3. Deep breathing - 75% effectiveness rate ✓
## Recommendations
- When work pressure is high in the afternoon, use deep breathing or short walks
- Maintain regular exercise, which has a significant effect on mood improvement
- Improving sleep helps reduce anxiety and fatigue/crisis assessment# Crisis Risk Assessment
## Current Risk Level: 🟢 Low Risk
**Risk Score**: 3/20
## Risk Factor Analysis
| Risk Factor | Score | Details |
|-------------|-------|---------|
| PHQ-9 Item 9 | 0 points | Score 0, no suicidal ideation ✓ |
| Symptom Change | -2 points | Improving trend ✓ |
| Emotional Intensity | 2 points | High-intensity negative emotion proportion 45% |
| Emotional Fluctuation | 1 points | Medium fluctuation |
| Early Warning Signals | 0 points | None detected ✓ |
| Social Withdrawal | 0 points | Good social activities ✓ |
| Functional Impairment | 0 points | Normal function ✓ |
| **Total Score** | **3 points** | **Low Risk** ✓ |
## Recommended Actions
- Continue monitoring mental state
- Maintain healthy lifestyle habits
- Conduct regular mental health assessments (once a month)
- Continue psychotherapy (if applicable)
## Emergency Resources (Backup)
- Psychological Crisis Hotline: 400-xxx-xxxx (24/7)
- Psychiatric Emergency Department: Nearest tertiary hospital
- Emergency Call: 120
⚠️ If any of the following situations occur, please seek professional help immediately:
- Having self-harm or suicide thoughts or plans
- Hallucinations, delusions
- Complete loss of function
- Uncontrollable emotional outbursts/mental therapy progress# Psychotherapy Progress Analysis
## Treatment Overview
- Treatment Type: CBT (Cognitive Behavioral Therapy)
- Treatment Frequency: Once a week
- Number of Counseling Sessions Conducted: 24 times
- Treatment Duration: 5 months
## Treatment Goal Progress
| Goal | Baseline | Current | Target | Progress | Estimated Achievement Date |
|------|----------|---------|--------|----------|---------------------------|
| Reduce anxiety levels | 14 points | 8 points | 5 points | 57% | 2025-08-01 |
| Improve sleep quality | 10 points | 6 points | 4 points | 60% | 2025-07-15 |
| Increase enjoyable activities | 2 times/week | 5 times/week | 7 times/week | 50% | 2025-07-01 |
**Overall Progress Evaluation**: Good ✓
## Symptom Improvement
- PHQ-9 Score Change: 14 points → 8 points, 43% improvement ✓
- GAD-7 Score Change: 14 points → 6 points, 57% improvement ✓
- Overall Functional Level: Significant improvement ✓
## Homework Completion Status
- Average Completion Rate: 85%
- High-Quality Completion: 60%
- Areas Needing Strengthening: Cognitive restructuring exercises
## Treatment Highlights
- Significant improvement in anxiety symptoms
- Significant improvement in sleep quality ✓
- Good effect of behavioral activation
- Improved ability to recognize cognitive distortions
## Continue Maintaining
- Weekly psychological counseling
- Daily relaxation exercises
- Behavioral activation (exercise, social interaction)
- Thought recording
## Needs Strengthening
- Cognitive restructuring exercises
- Application of coping skills
- Maintenance of sleep hygiene/mental analysis correlations# Mental Health Correlation Analysis
## Sleep-Psychology Correlation (Correlation Strength: High)
### Key Findings
- Negative correlation between sleep duration and PHQ-9 scores (r=-0.72, p<0.01)
- Positive correlation between sleep quality and emotional stability (r=0.68, p<0.01)
- For every 1-point improvement in PSQI score, PHQ-9 score decreases by an average of 1.2 points
### Impact of Sleep Issues
- Difficulty falling asleep → 40% increase in next-day anxiety
- Frequent nighttime awakenings → 35% increase in next-day low mood
- Sleep deprivation → Poor concentration, increased emotional fluctuations
### Recommendations
- Maintain regular schedule, go to bed before 23:00 every night
- Improve sleep hygiene: Avoid caffeine intake in the afternoon
- Continue relaxation exercises to promote sleep
## Exercise-Emotion Correlation (Correlation Strength: High)
### Key Findings
- Positive correlation between exercise frequency and proportion of positive emotions (r=0.75, p<0.01)
- Average emotional intensity on exercise days is 1.5 points higher than on non-exercise days
- Anxiety levels decrease by an average of 50% after exercise
### Most Effective Exercise Types
1. Aerobic exercise (running, swimming) - 85% improvement rate
2. Yoga - 80% improvement rate
3. Outdoor walking - 75% improvement rate
### Recommendations
- Maintain 3-5 exercise sessions per week, each lasting more than 30 minutes
- Prioritize aerobic exercise
- Take an outdoor walk when feeling anxious
## Nutrition-Psychology Correlation (Correlation Strength: Medium)
### Key Findings
- Positive correlation between caffeine intake and GAD-7 scores (r=0.52, p<0.05)
- Positive correlation between high-sugar diet and emotional fluctuations (r=0.48, p<0.05)
- Insufficient Omega-3 intake may be associated with depressive symptoms
### Recommendations
- Reduce caffeine intake (≤2 cups per day)
- Reduce added sugar intake
- Consider supplementing Omega-3 (consult a doctor)
## Comprehensive Recommendations
Based on correlation analysis, the following lifestyle changes are most effective for improving mental health:
1. **Regular exercise** (3-5 times per week, 30+ minutes)
2. **Adequate sleep** (7-8 hours, bed before 23:00)
3. **Balanced diet** (reduce caffeine and sugar)
4. **Continuous treatment** (CBT psychotherapy)
The combined contribution of these 4 aspects to your mental health improvement is **75%**./mental reportError: Mental health data file not found
Recommendation: Please first use the /mental assess or /mental mood command to create dataWarning: Insufficient data for trend analysis
Recommendation: At least 3 PHQ-9/GAD-7 assessments or 7 days of mood journals are required
Current Data: X PHQ-9 assessments, X mood journal entries🔴 Crisis Warning: High-risk factors detected
Immediate Actions:
1. Contact the psychological crisis hotline: 400-xxx-xxxx (24/7)
2. Go to the nearest psychiatric emergency department
3. Dial emergency call: 120
4. Contact family or friends for company
Detected High-Risk Factors:
- [List high-risk factors]
Do not hesitate, seek professional help immediately!data-example/mental-health-tracker.jsondata-example/mental-health-logs/data-example/sleep-tracker.jsondata-example/fitness-tracker.jsondata-example/nutrition-tracker.jsondata-example/diabetes-tracker.jsondata-example/hypertension-tracker.jsondata-example/medication-tracker.json