Skip to content

Python/Streamlit mental health application featuring advanced analytics, personalized therapeutic insights, and evidence-based coping tools for trigger management.

License

Notifications You must be signed in to change notification settings

worldsocoled/therapeutic-trigger-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

44 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 Therapeutic Trigger Tracker

Python Streamlit License PRs Welcome

A comprehensive, evidence-based mental health tracking application designed to help individuals understand, monitor, and manage their emotional triggers through therapeutic insights and data-driven self-awareness.

πŸš€ Live Application

Try the App Now!

Start your therapeutic journey with secure, evidence-based mental health tracking.

πŸ“‹ Table of Contents

🌟 Overview

The Therapeutic Trigger Tracker is a sophisticated mental health application that combines evidence-based psychological frameworks with modern data visualization to provide users with deep insights into their emotional patterns and triggers. Built with Python and Streamlit, it offers a professional-grade therapeutic tracking experience while remaining accessible and user-friendly.

🎯 Mission

Empowering individuals with data-driven self-awareness tools to understand, process, and grow from their emotional experiences through evidence-based therapeutic approaches.

πŸ† Key Benefits

  • πŸ” Pattern Recognition: Identify recurring triggers and emotional responses
  • πŸ“ˆ Progress Tracking: Monitor your healing journey with quantifiable metrics
  • πŸ› οΈ Coping Tools: Access evidence-based therapeutic techniques
  • 🎯 Personalized Insights: Receive tailored recommendations based on your data
  • πŸ’ͺ Empowerment: Take control of your mental health journey
  • πŸ” Secure Accounts: User authentication system to protect your private data
  • πŸ“… Historical Tracking: Monitor your progress over time with personalized data

✨ Features

πŸ” User Authentication

  • Secure sign-up and login system to protect your privacy
  • Individual user accounts with isolated data storage
  • Password protection for your sensitive information
  • Personalized experience tailored to your journey

πŸ“ Comprehensive Entry System

  • Multi-dimensional trigger categorization (Interpersonal, Environmental, Cognitive, Physical, etc.)
  • Enhanced emotional tracking including complex emotions (shame, loneliness, overwhelm)
  • Narrative therapy elements (before/after contexts, thoughts, physical sensations)
  • Coping strategy effectiveness rating
  • Therapeutic check-ins (self-compassion, safety, energy levels)

πŸ“Š Advanced Analytics Dashboard

  • Real-time wellness scoring algorithm
  • Emotional trend analysis with moving averages
  • Trigger pattern recognition across time and location
  • Intensity correlation studies
  • Progress indicators with visual feedback
  • Personalized historical data tracking over time

🎯 Therapeutic Insights Engine

  • Personalized recommendations based on clinical frameworks
  • Evidence-based intervention suggestions
  • Crisis support indicators for high-intensity patterns
  • Pattern analysis using psychological best practices
  • Growth tracking with milestone recognition

πŸ› οΈ Interactive Coping Tools

  • Guided breathing exercises with visual prompts
  • 5-4-3-2-1 grounding techniques with interactive guidance
  • Self-compassion breaks with therapeutic scripts
  • Personalized coping plans for different intensity levels
  • Emergency resource management

πŸ“ˆ Progress & Goal Tracking

  • SMART goal setting with progress calculations
  • Achievement system with therapeutic milestones
  • Consistency tracking with streak monitoring
  • Long-term trend visualization
  • Wellness score evolution

πŸ“š Complete Entry Management

  • Advanced search and filtering across all data fields
  • Chronological organization with multiple sorting options
  • Detailed entry views with therapeutic context
  • Data export capabilities for professional consultation

πŸ”¬ Therapeutic Framework

This application integrates multiple evidence-based therapeutic approaches:

🧘 Cognitive Behavioral Therapy (CBT)

  • Thought pattern identification and tracking
  • Behavioral response analysis
  • Mood-behavior correlation studies
  • Cognitive restructuring support

πŸ’Ž Dialectical Behavior Therapy (DBT)

  • Distress tolerance skill tracking
  • Emotion regulation measurements
  • Interpersonal effectiveness indicators
  • Mindfulness integration

🌱 Acceptance and Commitment Therapy (ACT)

  • Values alignment assessment
  • Psychological flexibility tracking
  • Mindful awareness practices
  • Acceptance-based interventions

πŸ›‘οΈ Trauma-Informed Care

  • Safety-focused design principles
  • Trustworthiness and transparency
  • Choice and collaboration emphasis
  • Strengths-based approach

πŸš€ Quick Start

Option 1: Use the Live Application (Recommended)

Access the App Here - No installation required!

Option 2: Run Locally

# Clone the repository
git clone https://github.com/worldsocoled/therapeutic-trigger-tracker.git

# Navigate to project directory
cd therapeutic-trigger-tracker

# Install dependencies
pip install -r requirements.txt

# Run the application
streamlit run app.py

🌐 visit the live app: https://therapeutic-trigger-tracker-4f8zqxgabnkfgp3wayghkj.streamlit.app/**

πŸ“¦ Installation

Prerequisites

  • Python 3.7+ (recommended: Python 3.9+)
  • pip package manager

Dependencies

streamlit>=1.25.0
pandas>=1.5.0
plotly>=5.0.0
numpy>=1.20.0
supabase>=2.0.0

Installation Methods

Option 1: Using pip

pip install streamlit pandas plotly numpy

Option 2: Using requirements.txt

pip install -r requirements.txt

Option 3: Using conda

conda create -n trigger-tracker python=3.9
conda activate trigger-tracker
pip install -r requirements.txt

Verify Installation

streamlit --version
python -c "import pandas, plotly, numpy; print('All dependencies installed successfully!')"

🎯 Usage

πŸ‘€ Account Setup

  • Create an Account: Sign up with a secure username and password
  • Log In: Access your personalized dashboard with your credentials
  • Data Privacy: Your entries are stored securely and privately

πŸ“± Application Navigation

  • ✨ New Entry: Log detailed trigger experiences with therapeutic context
  • πŸ“Š Dashboard: View real-time analytics and emotional trends
  • 🎯 Insights: Receive personalized therapeutic recommendations
  • πŸ› οΈ Coping Tools: Access evidence-based therapeutic techniques
  • πŸ“ˆ Progress: Track long-term growth and set therapeutic goals
  • πŸ“š All Entries: Manage and review your complete therapeutic journal

πŸ’‘ Best Practices

  • Daily Consistency: Aim for daily entries to capture comprehensive patterns
  • Honest Reflection: The app is most effective with genuine, honest entries
  • Regular Review: Weekly review of insights and progress for optimal growth
  • Professional Integration: Share data with your therapist for enhanced treatment
  • Goal Setting: Use the progress tracking to set and achieve therapeutic goals

πŸ“‹ Entry Guidelines

  1. Take three deep breaths before beginning each entry
  2. Be specific about triggers and circumstances
  3. Include physical sensations and emotional nuances
  4. Rate coping effectiveness honestly
  5. Practice self-compassion in your reflections

πŸ“Š Screenshots

🏠 Main Dashboard

Real-time wellness metrics and emotional trend analysis

✨ Entry Interface

Comprehensive trigger logging with therapeutic framework integration

🎯 Insights Page

Personalized recommendations based on evidence-based psychology

πŸ› οΈ Coping Tools

Interactive therapeutic techniques with guided instructions

πŸ” User Authentication

Secure login and sign-up system for personalized tracking

πŸ› οΈ Technical Details

Architecture

  • Frontend: Streamlit with custom CSS/HTML
  • Backend: Python with pandas for data processing
  • Visualization: Plotly for interactive charts
  • Data Storage: CSV files with user authentication system
  • Styling: Glass morphism design with therapeutic color psychology

Data Structure

User Schema:
- username: string (unique)
- password: string (hashed)

Entry Schema:
- user_id: string (linked to user account)
- timestamp: datetime
- trigger: string (categorized)
- intensity: integer (1-10)
- emotions: multiple integers (anxiety, sadness, anger, etc.)
- coping_strategies: array
- effectiveness: integer (1-10)
- context: object (before, after, thoughts, physical)
- therapeutic_metrics: object (self-compassion, safety, energy)

Key Algorithms

  • Wellness Score Calculation: Multi-factor algorithm considering negative emotions, positive emotions, and coping effectiveness
  • Pattern Recognition: Time-series analysis for trigger identification
  • Progress Tracking: Trend analysis with moving averages
  • Recommendation Engine: Rules-based system using therapeutic best practices
  • User Authentication: Secure password hashing and verification

Performance

  • Responsive Design: Mobile-first approach with responsive layouts
  • Fast Loading: Optimized data processing and caching
  • Scalable: Handles thousands of entries efficiently
  • Accessible: WCAG 2.1 compliance with proper contrast ratios
  • Secure: Password protection and user data isolation

πŸ—οΈ Architecture

therapeutic-trigger-tracker/
β”œβ”€β”€ πŸ“„ app.py                    # Main Streamlit application
β”œβ”€β”€ πŸ“ data/                     # Data storage directory
β”‚   β”œβ”€β”€ users.csv               # User authentication data
β”‚   β”œβ”€β”€ user_data/              # Individual user data directory
β”‚   β”‚   β”œβ”€β”€ user1_entries.csv   # User-specific trigger entries
β”‚   β”‚   β”œβ”€β”€ user1_goals.csv    # User-specific goal tracking
β”‚   β”‚   └── user1_coping.csv   # User-specific coping plans
β”œβ”€β”€ πŸ“ utils/                    # Utility functions
β”œβ”€β”€ πŸ“ assets/                   # Images and static files
β”œβ”€β”€ πŸ“‹ requirements.txt          # Python dependencies
β”œβ”€β”€ πŸ“– README.md                # Project documentation
└── πŸ“„ LICENSE                  # MIT License

Key Components:
β”œβ”€β”€ 🎨 CSS Styling              # Therapeutic design with glass morphism
β”œβ”€β”€ πŸ“Š Data Processing          # Pandas-based analytics
β”œβ”€β”€ πŸ“ˆ Visualization            # Plotly interactive charts
β”œβ”€β”€ 🧠 Therapeutic Logic        # Evidence-based algorithms
β”œβ”€β”€ πŸ” Authentication System    # User login and sign-up functionality
└── πŸ”§ Helper Functions         # Utility and calculation functions

🀝 Contributing

We welcome contributions from mental health professionals, developers, and users! Here's how you can help:

Ways to Contribute

  • πŸ› Bug Reports: Submit issues with detailed reproduction steps
  • πŸ’‘ Feature Requests: Suggest new therapeutic tools or insights
  • πŸ“ Documentation: Improve README, comments, or user guides
  • 🧠 Therapeutic Input: Mental health professionals can suggest evidence-based improvements
  • πŸ’» Code Contributions: Submit pull requests with new features or fixes

Development Setup

# Fork the repository
git clone https://github.com/worldsocoled/therapeutic-trigger-tracker.git

# Create a feature branch
git checkout -b feature/your-feature-name

# Make changes and commit
git commit -m "Add: therapeutic feature description"

# Push and create pull request
git push origin feature/your-feature-name

Contribution Guidelines

  • Follow Python PEP 8 style guidelines
  • Include docstrings for new functions
  • Add comments for therapeutic rationale
  • Test changes with sample data
  • Update documentation for new features

πŸ“š Resources

Therapeutic References

Technical Documentation

Mental Health Resources

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

MIT License

Copyright (c) 2024 Therapeutic Trigger Tracker

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.

πŸ‘¨β€βš•οΈ Disclaimer

⚠️ Important Medical Notice

This application is designed for educational and self-reflection purposes only and is not intended to replace professional mental health care.

  • 🩺 Not a Medical Device: This app is not a substitute for professional diagnosis or treatment
  • πŸ‘©β€βš•οΈ Seek Professional Help: Always consult qualified mental health professionals for clinical concerns
  • 🚨 Emergency Situations: If you're experiencing thoughts of self-harm, contact emergency services immediately
  • πŸ“Š Data Privacy: Your data is stored securely with user authentication protection
  • πŸ”’ No Guarantees: While based on evidence-based practices, results may vary

Crisis Resources

  • Immediate Danger: Call 911 (US) or your local emergency number
  • Suicide Prevention: Call 988 (US) or visit suicidepreventionlifeline.org
  • Crisis Text Line: Text HOME to 741741

πŸ“ž Support & Contact


🌟 Start Your Healing Journey Today

"The curious paradox is that when I accept myself just as I am, then I can change." - Carl Rogers

Made with ❀️ and evidence-based psychology

⭐ Star this repository if it helps you on your healing journey!

About

Python/Streamlit mental health application featuring advanced analytics, personalized therapeutic insights, and evidence-based coping tools for trigger management.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages