Skip to content

Repository files navigation

Digital Psychological Intervention System

A comprehensive mental health platform for the Smart India Hackathon, featuring AI-powered psychological screening, counselor booking, peer support forum, and administrative oversight.

System Architecture

🏗️ Components

  • Mobile App: React Native with Expo (iOS/Android)
  • Admin Panel: React.js with Vite (Web Dashboard)
  • Backend API: Node.js with Express
  • Database: MongoDB with Mongoose ODM
  • AI Integration: Google Gemini API for chat and screening analysis

📱 Mobile App Features

  • User Authentication (Login/Signup/Guest)
  • AI-Powered Chat Support with Crisis Detection
  • Comprehensive Psychological Screening (PHQ-9, GAD-7, GHQ-12)
  • Counselor Booking System
  • Resources Hub with Filtering
  • Anonymous Peer Support Forum
  • Daily Mood Tracking
  • Profile Management

🖥️ Admin Dashboard Features

  • Real-time Analytics Dashboard
  • User Management & Monitoring
  • Booking Oversight & Scheduling
  • Forum Moderation Tools
  • Crisis Alert Management
  • Resource Content Management
  • System Health Monitoring

🔧 Backend API Features

  • JWT Authentication & Authorization
  • AI Chat with Gemini Integration
  • Psychological Screening Analysis
  • Booking Management System
  • Forum with Moderation
  • Resource Management
  • Analytics & Reporting
  • Crisis Detection & Alerts

🚀 Quick Start

Prerequisites

  • Node.js (v16+)
  • MongoDB
  • Expo CLI
  • Google Gemini API Key

Environment Variables

```env PORT=5000 MONGO_URI=mongodb://localhost:27017/digital-psych JWT_ACCESS_SECRET=your-jwt-secret GEMINI_API_KEY=your-gemini-api-key ```

Backend Setup

```bash cd backend npm install npm run dev ```

Mobile App Setup

```bash cd mobile-app npm install expo start ```

Admin Panel Setup

```bash cd admin-panel npm install npm run dev ```

📊 API Endpoints

Authentication

  • POST /api/auth/register - User registration
  • POST /api/auth/login - User login
  • POST /api/auth/guest - Guest login

AI Chat

  • POST /api/ai/chat - Send message to AI
  • GET /api/ai/sessions/:userId - Get chat history

Screening

  • POST /api/screening/submit - Submit screening responses
  • GET /api/screening/history/:userId - Get screening history
  • GET /api/screening/analytics - Get screening analytics

Bookings

  • POST /api/bookings/create - Create booking
  • GET /api/bookings/user/:userId - Get user bookings
  • GET /api/bookings/counselor/:counselorId - Get counselor bookings

Forum

  • POST /api/forum/posts - Create forum post
  • GET /api/forum/posts - Get forum posts
  • POST /api/forum/posts/:id/reply - Reply to post

Resources

  • GET /api/resources - Get all resources
  • GET /api/resources/category/:category - Get resources by category

Admin

  • GET /api/admin/analytics - Get system analytics
  • GET /api/admin/users - Get all users
  • POST /api/admin/moderate - Moderate content

🔒 Security Features

  • JWT Token Authentication
  • Password Hashing with bcrypt
  • Input Validation & Sanitization
  • Rate Limiting
  • CORS Protection
  • Anonymous Forum Posting
  • Data Encryption

🎯 Key Innovations

  • AI-Powered Crisis Detection: Real-time analysis of user messages for crisis intervention
  • Multi-Modal Screening: Combines PHQ-9, GAD-7, and GHQ-12 for comprehensive assessment
  • Anonymous Peer Support: Safe space for users to share experiences
  • Predictive Analytics: Early warning system for mental health deterioration
  • Integrated Care Pathway: Seamless transition from screening to professional help

📈 Impact Metrics

  • User Engagement Tracking
  • Screening Completion Rates
  • Crisis Intervention Success
  • Counselor Booking Analytics
  • Forum Participation Metrics
  • Resource Utilization Data

🏆 Hackathon Highlights

  • Scalable Architecture: Microservices-ready design
  • Real-time Features: Live chat and notifications
  • Data-Driven Insights: Comprehensive analytics dashboard
  • User-Centric Design: Intuitive mobile-first interface
  • Professional Integration: Counselor portal and booking system
  • Crisis Management: Automated detection and intervention protocols

📞 Support

For technical support or questions about the Digital Psychological Intervention System, please contact the development team.


Built for Smart India Hackathon - Empowering Mental Health Through Technology

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages