MedCognis Health is a high-performance clinical triage and command center platform engineered for modern healthcare environments.
The system addresses a core operational challenge in emergency and inpatient care: accurate, transparent, and real-time patient prioritization.
- Machine Learning (XGBoost)
- Rule-based clinical safety overrides
- Explainable AI (SHAP)
- Local LLM-powered clinical assistance (Llama 3 via Ollama)
MedCognis delivers interpretable, data-driven risk scoring to support faster clinical decisions and optimized patient flow.
๐ง Hybrid Risk Scoring Engine
- XGBoost-based triage classification
- Hard-coded safety overrides (critical BP, SpOโ, HR thresholds)
- Multi-layer prioritization logic
The core of MedCognis is its dual-layer AI engine that combines the predictive power of XGBoost with the clinical rigor of Safety Overrides.
- Structured Data Analysis: The engine processes 10+ clinical parameters (Age, BP, HR, SpOโ, etc.) to identify complex risk patterns.
- Clinical Safety Overrides: Before final scoring, the system checks for critical threshold violations (e.g., Temp > 40ยฐC or SpOโ < 90%) to ensure high-risk patients are never underestimated by purely statistical models.
- Real-time Explainability: Using SHAP, the engine identifies exactly which features (like high Heart Rate or Age) contributed most to the risk score, providing clinicians with immediate diagnostic context.
- Integrated SHAP (SHapley Additive exPlanations)
- Feature-level transparency for every prediction
- Clinician-readable reasoning outputs
- Symptom-vital correlation engine
- Condition prediction
- Specialist recommendation routing
- Glassmorphism-inspired UI
- ICU load tracking
- Department capacity visibility
- Vital trend radar & bar charts
- Heuristic PDF/Text ingestion
- Rapid structured data extraction
- In-memory preprocessing pipeline
- Secure, on-premise clinical assistant
- Powered by Llama 3 via Ollama
- No external data transmission
MedCognis follows a decoupled, service-oriented architecture optimized for low-latency clinical operations.
- Framework: Next.js (App Router)
- UI Styling: Tailwind CSS v4
- Data Visualization: Recharts
- Animations: Framer Motion
- Icons: Lucide React
- State Management: React hooks integrated with triage utilities
Orchestration between Frontend, ML models, and Database. Key Endpoints:
- Patient registration
- Risk prediction
- Model retraining
- Clinical AI chat
- Predictive Model: XGBoost classifier
- Data: Trained on structured clinical features
- Explainability: SHAP-based interpretability module
- Local LLM endpoint
- Ollama runtime
- Offline inference capability
- Transactional local database
- Patient records storage
- Role-Based Access Control (RBAC)
- Visit history tracking
| Layer | Technologies |
|---|---|
| Frontend | Next.js 16, Tailwind CSS v4, Recharts, Framer Motion, Lucide React |
| Backend | Python 3.10+, FastAPI, Uvicorn |
| AI / ML | XGBoost, SHAP, Scikit-Learn, Pandas, NumPy |
| Local LLM | Ollama (Llama 3) |
| Database | SQLite 3 |
| Dev Tools | npm, pip |
- Node.js โฅ 18
- Python โฅ 3.10
- Ollama installed and running
cd Models
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
python app.py# From project root
npm install
npm run devEnsure Ollama daemon is active:
ollama pull llama3
Default endpoint: http://localhost:11434
1๏ธโฃ Access Dashboard
Open: http://localhost:3000
2๏ธโฃ Patient Triage
- Navigate to Patient Records
- Upload CSV / JSON / PDF
- Trigger AI risk assessment
3๏ธโฃ Analytics View
- Inspect SHAP explanations
- Review risk breakdown
- Examine recommended specialists
4๏ธโฃ Clinical Assistant
- Access Support & Help
- Interact with local LLM for structured guidance
โโโ app/ # Next.js App Router
โโโ Models/ # Backend & ML Logic
โ โโโ app.py
โ โโโ triage_logic.py
โ โโโ triage_xgboost.pkl
โโโ components/ # Reusable UI Components
โโโ lib/ # Frontend utilities
โโโ public/ # Static assets
โโโ types/ # TypeScript interfaces
โโโ README.md
- DICOM imaging integration (MRI/CT)
- Predictive bed capacity forecasting
- Federated learning model updates
- Multi-branch hospital synchronization
- Advanced anomaly detection in vitals
Team Name: Phoenixphones Clinical AI Lead: Phoenixphones teams
Members:
- Naveen (Leader)
- Prashant Gupta (Frontend Developer)
- Sachin Chauhan (Synthesis Data Vault Generation and Research Work)
- Bibek Kumar Sah (Resources Generator and Idea Creator)
Licensed under the MIT License. See LICENSE file for details.
MedCognis Health is a clinical decision support system. It is not a substitute for licensed medical judgment and must be used under professional supervision.









