Empowering data-driven healthcare decisions through advanced analytics and visualization
EquiHealth is a comprehensive web-based healthcare analytics platform that leverages machine learning to analyze health metrics, predict outcomes, and visualize healthcare accessibility across different regions. The platform enables healthcare professionals, policymakers, and researchers to make informed decisions based on comprehensive data analysis.
๐ Live Demo: https://equihealth.onrender.com
- Interactive Data Upload: Support for CSV files with flexible column mapping
- Real-time Data Processing: Instant analysis of healthcare metrics
- Interactive Geographic Visualization: Plotly-powered maps with hover functionality and zoom capabilities
- User-Specific Data Management: Session-based data isolation for multi-user support
- Comprehensive Reports: Detailed analytics with downloadable results and scrollable data tables
- Predictive Modeling: XGBoost-powered health outcome predictions with hyperparameter optimization
- Risk Assessment: Advanced algorithms for healthcare risk evaluation
- Data Standardization: Automated preprocessing and feature scaling with StandardScaler
- Model Persistence: Trained models saved for consistent predictions using joblib serialization
- Real-time Predictions: Live model inference on uploaded healthcare data
- Responsive Design: Optimized for desktop, tablet, and mobile devices
- Glassmorphism UI: Modern, professional interface with backdrop blur effects and transparent overlays
- Intuitive Navigation: Fixed navigation bars with context-aware links and smooth transitions
- Session-Based Authentication: Secure user login/signup with password hashing and session management
- Flash Message System: Real-time user feedback with animated notifications
- Accessibility: High contrast design with enhanced readability and ARIA compliance
- Disease Tracking: TB, Diabetes, Malaria, HIV/AIDS incidence analysis
- Public Health Indicators: Infant Mortality Rate (IMR) monitoring
- Vaccination Coverage: Immunization rate tracking and analysis
- Socioeconomic Factors: Income level correlation with health outcomes
- Python 3.8+
- pip (Python package installer)
- Modern web browser (Chrome, Firefox, Safari, Edge)
-
Clone the repository
git clone https://github.com/MaheshR03/equihealth.git cd equihealth
-
Install dependencies
pip install -r requirements.txt
-
Run the application
python app.py
-
Access the platform Open your browser and navigate to
http://localhost:5000
Modern glassmorphism design with intuitive navigation
Intuitive CSV upload with intelligent column mapping
Comprehensive data analysis and results
Plotly-powered geographic visualizations with hover functionality
External resources and platform information
- Flask - Lightweight WSGI web application framework
- Python - Core programming language
- Pandas - Data manipulation and analysis
- NumPy - Numerical computing library
- Scikit-learn - Machine learning utilities and preprocessing
- XGBoost - Gradient boosting framework for predictive modeling
- StandardScaler - Feature normalization and standardization
- Pickle - Model serialization and persistence
- Plotly Integration - Interactive maps with hover tooltips and zoom functionality
- HTML Map Generation - Dynamic visualization files for user-specific data
- Responsive Iframes - Seamless integration of interactive content
- Color-coded Visualizations - Intuitive data representation with prediction-based coloring
- HTML5 - Semantic markup language with modern form elements
- CSS3 - Advanced styling with glassmorphism effects, animations, and responsive grids
- JavaScript - Interactive user interface elements, form validation, and enhanced UX
- Responsive Design - Mobile-first approach with flexible layouts and adaptive navigation
- Flask Debug Mode - Development server with hot reload and error tracking
- CSV Processing - Flexible data import capabilities with intelligent column mapping
- Static File Serving - Efficient asset delivery with proper MIME type handling
- Session Management - Secure user authentication with Werkzeug password hashing
- Interactive Maps - Plotly-powered visualizations with user-specific file generation
- Create an account or login to access personalized features
- Secure session management ensures data privacy and user isolation
- Password protection with industry-standard hashing
- Navigate to the Upload page (authentication required)
- Prepare your CSV file with required healthcare columns:
- District, Latitude, Longitude
- TB Incidence, Diabetes Prevalence
- Malaria Incidence, HIV/AIDS Prevalence
- IMR, Vaccination Rate, Income Level
- Upload your CSV file for real-time analysis and ML predictions
- Access the Report page to view processed data in interactive tables
- Download analysis results in CSV format with user-specific predictions
- Review ML-generated scores and comprehensive health metrics
- Visit the Map page for dynamic visual representation
- Hover over data points to see detailed district information and predictions
- Zoom and pan through interactive maps powered by Plotly
- Analyze healthcare accessibility patterns across regions
- Browse the Resources page for external health databases
- Access WHO, CDC, and Indian health ministry data
- Find relevant research and policy documents
equihealth/
โโโ app.py # Main Flask application with authentication & ML integration
โโโ requirements.txt # Python dependencies (updated with Plotly)
โโโ README.md # Comprehensive project documentation
โโโ health_data.csv # Sample healthcare dataset
โโโ predictions.csv # ML model output
โโโ test_upload.csv # Sample test data for demonstrations
โโโ health-data/ # Model storage directory
โ โโโ predictionmodel.pkl # Trained XGBoost model
โ โโโ scaler.pkl # StandardScaler for feature normalization
โโโ static/ # Static assets
โ โโโ styles.css # Enhanced stylesheet with glassmorphism design
โ โโโ scripts.js # JavaScript for interactive UX features
โ โโโ health_data.csv # Sample data for download
โ โโโ maps/ # User-specific interactive map storage
โ โโโ *.html # Plotly-generated interactive maps per user
โโโ templates/ # HTML templates with unified navigation
โ โโโ frontpage.html # Modern landing page
โ โโโ login.html # User authentication interface
โ โโโ signup.html # User registration interface
โ โโโ upload.html # Data upload interface with validation
โ โโโ report.html # Analysis results with scrollable tables
โ โโโ result.html # Prediction results with professional styling
โ โโโ show-map.html # Interactive geographic visualization
โ โโโ resource.html # External resources and links
โ โโโ about.html # Platform information and features
โโโ healthcare_access_xgboost_model.ipynb # ML model development notebook (XGBoost training)
- Column Standardization: Flexible mapping of CSV columns to expected features with intelligent name recognition
- Missing Value Handling: Intelligent imputation for incomplete data with validation checks
- Feature Scaling: StandardScaler normalization for optimal model performance and consistency
- Data Validation: Comprehensive checks for data integrity and user-friendly error messages
- User Data Isolation: Session-based data management ensuring privacy and multi-user support
- Algorithm: XGBoost Classifier with hyperparameter optimization using RandomizedSearchCV
- Training Pipeline: SMOTE-ENN for class balancing and robust model training
- Feature Engineering: Automated creation of derived health indicators and geographic features
- Cross-validation: 5-fold validation ensures model generalization and reliability
- Model Persistence: Joblib serialization for consistent inference across sessions
- Health Risk Classifications: Multi-class predictions (Very Low to Very High Access)
- Interactive Visualizations: Real-time map generation with color-coded predictions
- Confidence Metrics: Statistical measures of prediction reliability and model performance
- Regional Comparisons: Benchmarking against similar geographic areas and historical data
- Fast Processing: Optimized algorithms for real-time analysis with efficient data pipelines
- Scalable Architecture: Handles datasets from small studies to national surveys with session management
- Efficient Memory Usage: Streamlined data processing pipelines with user-specific storage
- Interactive Visualizations: Plotly-powered maps with smooth zoom and hover functionality
- Intuitive Interface: No technical expertise required with guided workflows
- Responsive Design: Works seamlessly across all devices with adaptive layouts
- Comprehensive Authentication: Secure login system with session-based data isolation
- Real-time Feedback: Interactive flash messages and progress indicators
- Robust Error Handling: Graceful handling of edge cases with user-friendly error messages
- Data Validation: Comprehensive input verification with intelligent column mapping
- Model Persistence: Consistent predictions across sessions using trained XGBoost models
- Session Security: Protected user data with secure password hashing and session management
- Web-based Platform: No software installation required with modern browser support
- Cross-platform Compatibility: Works on Windows, macOS, and Linux with responsive design
- Multi-format Support: Flexible CSV import with intelligent column recognition
- Interactive Features: Hover tooltips, zoom controls, and accessible navigation
- Resource Allocation: Identify underserved regions requiring healthcare investment
- Program Evaluation: Assess effectiveness of public health interventions
- Trend Analysis: Monitor long-term health outcome improvements
- Epidemiological Studies: Analyze disease patterns and correlations
- Health Equity Research: Investigate healthcare disparities
- Predictive Analytics: Forecast future healthcare needs
- Population Health: Understand community health profiles
- Risk Stratification: Identify high-risk patient populations
- Intervention Planning: Target resources for maximum impact
We welcome contributions to improve EquiHealth! Please follow these steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
For questions, suggestions, or support:
- Email: [email protected]
- Documentation: Project Wiki
- Issues: GitHub Issues
- Enhanced ML Models: Deep learning integration for complex health pattern recognition
- Real-time Data Feeds: Live healthcare data integration from government APIs
- Advanced Analytics Dashboard: Comprehensive KPI tracking and trend analysis
- API Development: RESTful endpoints for external systems and third-party integrations
- Multi-language Support: Internationalization for global healthcare applications
- Mobile Application: Native iOS and Android apps with offline capability
- Advanced Visualizations: 3D geographic rendering and time-series animations
- Collaborative Features: Multi-user data sharing and team-based analysis tools
โ Interactive Map Visualization
- Upgraded from static matplotlib to dynamic Plotly maps
- Added hover functionality showing district details and predictions
- Implemented zoom and pan capabilities for detailed exploration
โ User Authentication & Session Management
- Complete login/signup system with secure password hashing
- Session-based data isolation for multi-user support
- User-specific map generation and data storage
โ Enhanced User Interface
- Consistent navigation across all pages with context-aware links
- Professional glassmorphism design with backdrop blur effects
- Responsive layouts optimized for all device sizes
โ Improved Data Pipeline
- Intelligent CSV column mapping with flexible naming conventions
- Real-time ML predictions using trained XGBoost models
- Enhanced error handling with user-friendly feedback messages
โ Technical Infrastructure
- Plotly integration for interactive visualizations
- User-specific file generation for maps and reports
- Enhanced CSS framework with modern styling patterns
Built with โค๏ธ for better healthcare outcomes
Website โข Docs โข Requirements
Ready to deploy EquiHealth to production? Check out our comprehensive deployment guide:
๐ View Complete Deployment Guide
- ๐ฅ Render (Recommended for beginners - Free tier with HTTPS)
- ๐ Railway (Modern platform with excellent Python support)
- ๐ PythonAnywhere (Python-focused hosting)
- โ๏ธ Heroku (Enterprise-grade platform)
The deployment guide includes:
- Step-by-step instructions for each platform
- Production configuration setup
- Security considerations
- Monitoring and analytics setup
- Pre-deployment checklist