Web-based ML-powered assistant for early symptom assessment with bilingual (English/Urdu) support.
- Overview
- Objectives
- Key Features
- Architecture
- Tech Stack & Badges
- Screenshots
- Quickstart
- Configuration
- API Endpoints
- Project Structure
- Security & Privacy
- Roadmap
- Contributing
- License
- Disclaimer
- Urdu (Ψ§Ψ±Ψ―Ω) Summary
- Assets Inventory
AtriaAI helps patients perform an early self-assessment using symptoms and vitals (height, weight, BP, temperature). A trained ML model (model.pkl) runs on the server and returns a possible condition, confidence, and practical recommendations.
β οΈ AtriaAI does not replace clinical diagnosis. It is an assistive tool for awareness and timely consultation.
- Enable quick, simple self-checks via a clean, accessible UI.
- Provide bilingual (English/Urdu) outputs with non-technical explanations.
- Suggest precautions, home remedies, and exercise tips.
- Trigger consultation alerts for red-flag scenarios.
- Auth & Profiles: Registration, login, profile management.
- Vitals & Symptoms: Height, weight, BP, temperature, and free-text symptoms.
- Real-time Inference: Flask loads
model.pkland predicts on submit. - Recommendations: OTC guidance, home remedies, and doctor alerts.
- Bilingual UX: English and Urdu forms, labels, and results.
- History & Logs: View past predictions per user.
- Admin Dashboard: Users overview, audit, and basic model health.
- MySQL-backed: Persistent storage for users and history.
flowchart TD
U[User Web or Mobile Client] -->|Forms and API requests| W[Flask Web Application]
W --> AUTH[Authentication and Profiles]
W --> V[Vitals and Symptom Input]
V --> VAL[Validation and Preprocessing]
VAL --> M[ML Inference Service<br/>model.pkl]
M --> P[Prediction and Confidence]
P --> R[Recommendation Engine]
R --> F[Response Formatter<br/>English or Urdu]
F --> UI[Dashboard and Prediction Result]
W --> H[History and Audit Services]
H --> DB[(MySQL Database)]
AUTH --> DB
H --> ADM[Admin Dashboard]
ADM --> DB
W --> SEC[Security Controls<br/>CSRF, RBAC, HTTPS, Secure Cookies]
The diagram reflects the documented Flask application, authentication and profiles, validated vitals/symptoms flow, model inference, bilingual response formatting, history, admin dashboard, MySQL persistence, and production security controls.
git clone https://github.com/UsamaMatrix/Atria-AI.git
cd Atria-AIpython -m venv .venv
# Windows
.venv\Scripts\activate
# macOS/Linux
source .venv/bin/activatepip install -r requirements.txtFLASK_ENV=development
SECRET_KEY=change_this_secret
DB_HOST=127.0.0.1
DB_PORT=3306
DB_USER=atria_user
DB_PASSWORD=strong_password
DB_NAME=atria_db
DATABASE_URL=mysql+pymysql://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}
MODEL_PATH=ml/model.pkl
DEFAULT_LANG=en
FALLBACK_LANG=enpython manage.py db upgradeflask --app app run --debug- Language: Default via
DEFAULT_LANG; toggle per user in the profile. - Model: Configure the path with
MODEL_PATH. - Security: Use a strong
SECRET_KEY; enable HTTPS and secure cookies in production.
| Method | Endpoint | Description |
|---|---|---|
| GET | / |
Health check / landing |
| GET | /login |
Login form |
| POST | /login |
Authenticate |
| GET | /register |
Registration form |
| POST | /register |
Create new user |
| GET | /dashboard |
User dashboard |
| POST | /predict |
Submit vitals and symptoms |
| GET | /history |
Current user's prediction history |
| POST | /logout |
End session |
Atria-AI/
βββ app/
β βββ __init__.py
β βββ routes.py
β βββ models.py
β βββ services/
β β βββ inference.py
β β βββ recommend.py
β βββ i18n/
β β βββ en.json
β β βββ ur.json
β βββ templates/
β βββ static/
βββ assets/
βββ ml/
β βββ data/
β βββ notebooks/
β βββ training.py
β βββ model.pkl
βββ migrations/
βββ tests/
βββ requirements.txt
βββ .env.example
βββ manage.py
βββ README.md
- Passwords: Hash and salt passwords.
- CSRF: Protect forms with CSRF tokens.
- Validation: Apply strict input validation.
- Logs: Avoid PHI and redact sensitive fields.
- RBAC: Restrict admin features.
- Headers: Enforce HTTPS, HSTS, CSP, and secure cookies in production.
- Symptom NLP (entities and negation handling)
- Differential multi-condition outputs
- Doctor directory and appointment integration
- Model monitoring and drift detection
- Dockerfile and CI/CD
- PWA features and offline cache
- Fork the repo.
- Create a feature branch.
- Commit with clear messages.
- Open a PR with context and screenshots.
Licensed under the MIT License. See LICENSE.
AtriaAI provides informational guidance only and does not replace professional medical diagnosis, treatment, or advice. Always consult a qualified healthcare provider for serious or persistent symptoms.
AtriaAI Ψ§ΫΪ© ΩΫΨ¨ Ψ¨ΫΨ³Ϊ Ψ³Ψ³ΩΉΩ ΫΫ Ψ¬Ω ΨΉΩΨ§Ω Ψ§Ψͺ Ψ§ΩΨ± Ψ¨ΩΫΨ§Ψ―Ϋ ΩΫΩΉΩΨ² Ϊ©Ϋ Ψ¨ΩΫΨ§Ψ― ΩΎΨ± Ψ§Ψ¨ΨͺΨ―Ψ§Ψ¦Ϋ Ψ±ΫΩΩ Ψ§Ψ¦Ϋ ΩΨ±Ψ§ΫΩ Ϊ©Ψ±ΨͺΨ§ ΫΫΫ ΫΫ ΪΨ§Ϊ©ΩΉΨ± Ϊ©Ψ§ Ω ΨͺΨ¨Ψ§Ψ―Ω ΩΫΫΪΊ ΫΫΫ
assets/
βββ banner/
β βββ atriavai-banner.svg
βββ screens/
βββ login-light.png
βββ login-dark.png
βββ dashboard-patient-light.png
βββ dashboard-patient-dark.png
βββ dashboard-admin-light.png
βββ dashboard-admin-dark.png





