How harsh0259/sih-2026 works
SENTINEL is a personnel welfare and stress-monitoring system. Personnel and welfare officers use its web interface to review rosters, risk analytics, sleep, wellness, and alerts; personnel can submit wellness and sleep information. The frontend calls a FastAPI backend that exposes authentication and personnel-management domains, while risk assessment can invoke a separate AI engine for prediction and explanations. The backend persists domain records through SQLAlchemy. The README is empty, so the capability map relies on the file tree and source index; unsampled route implementations and API wiring limit some relationship details.
Main entry points: App.jsx Web app · main.py FastAPI app · predict.py Risk prediction · client.js API client
Components 30
Web application
- Web app
Frontend/src/App.jsx - API client
Frontend/src/api/client.js - Dashboard
Frontend/src/pages/DashboardPage.jsx - Personnel roster
Frontend/src/pages/RosterPage.jsx - Risk analytics
Frontend/src/pages/RiskAnalyticsPage.jsx - Wellness check-in
Frontend/src/pages/WellnessCheckinPage.jsx - Sleep tracker
Frontend/src/pages/SleepTrackerPage.jsx - Alerts
Frontend/src/pages/AlertsPage.jsx
Backend API
- FastAPI app
Backend/app/main.py - Authentication
Backend/app/routes/auth.py - Personnel routes
Backend/app/routes/personnel.py - Workload routes
Backend/app/routes/workload.py - Deployment routes
Backend/app/routes/deployment.py - Leave routes
Backend/app/routes/leave.py - Wellness routes
Backend/app/routes/wellness.py - Sleep routes
Backend/app/routes/sleep.py - Risk routes
Backend/app/routes/risk.py - AI service client
Backend/app/services/ai_client.py
Welfare data
- Database sessions
Backend/app/core/database.py - Personnel records
Backend/app/models/personnel.py - User accounts
Backend/app/models/user.py - Wellness records
Backend/app/models/wellness.py
Risk engine
- AI risk API
AI_RISK_ENGINE/api/main.py - Risk prediction
Backend/src/predict.py - Sleep estimation
Backend/src/sleep.py - Feature engineering
Backend/src/features.py - Factor explanations
Backend/src/explain.py - Risk trends
Backend/src/trend.py
Other components
- Welfare officer
- Personnel user
Connections 32
- Welfare officer → Web app: reviews welfare
- Personnel user → Web app: submits check-ins
- Web app → Dashboard: shows
Frontend/src/App.jsx - Web app → Personnel roster: shows
Frontend/src/App.jsx - Web app → Risk analytics: shows
Frontend/src/App.jsx - Web app → Wellness check-in: shows
Frontend/src/App.jsx - Web app → Sleep tracker: shows
Frontend/src/App.jsx - Web app → Alerts: shows
Frontend/src/App.jsx - Web app → API client: loads personnel
Frontend/src/App.jsx - Dashboard → API client: uses
Frontend/src/pages/DashboardPage.jsx - Wellness check-in → API client: submits check-ins
Frontend/src/pages/WellnessCheckinPage.jsx - Sleep tracker → API client: uses
Frontend/src/pages/SleepTrackerPage.jsx - Web app → FastAPI app: requests API
- FastAPI app → Authentication: registers
Backend/app/main.py - FastAPI app → Personnel routes: registers
Backend/app/main.py - FastAPI app → Workload routes: registers
Backend/app/main.py - FastAPI app → Deployment routes: registers
Backend/app/main.py - FastAPI app → Leave routes: registers
Backend/app/main.py - FastAPI app → Wellness routes: registers
Backend/app/main.py - FastAPI app → Sleep routes: registers
Backend/app/main.py - FastAPI app → Risk routes: registers
Backend/app/main.py - Authentication → User accounts: queries
Backend/app/routes/auth.py - Authentication → Database sessions: uses session
Backend/app/routes/auth.py - Personnel routes → Personnel records: manages
- Wellness routes → Wellness records: manages
Backend/app/routes/wellness.py - Risk routes → AI service client: requests prediction
Backend/app/routes/risk.py - AI service client → AI risk API: posts prediction
Backend/app/services/ai_client.py - AI risk API → Risk prediction: dispatches
AI_RISK_ENGINE/api/main.py - Risk prediction → Sleep estimation: estimates sleep
Backend/src/predict.py - Risk prediction → Feature engineering: builds features
Backend/src/predict.py - Risk prediction → Factor explanations: explains factors
Backend/src/predict.py - Risk prediction → Risk trends: calculates trend
Backend/src/predict.py