Team: SMK
Members:
- Srivatsa Kamble — 20231CSE0257
- Kishore S V — 20231CSE0260
- Mohan A — 20231CSE0273
Guide: Nayeem Akhtar Sholapur
A software-only academic performance monitoring and institutional analytics platform. The system enables universities and institutions to track student performance, generate analytics, predict outcomes, and identify at-risk students using machine learning — all within a secure multi-tenant architecture.
Educational institutions struggle to monitor student performance at scale, identify at-risk students early, and provide data-driven insights to administrators, faculty, students, and parents. Manual tracking and fragmented systems make it difficult to deliver timely interventions and institutional analytics.
- Provide a unified platform for academic performance monitoring across an institution
- Enable ML-powered predictions for performance, pass/fail outcomes, and at-risk detection
- Deliver role-specific dashboards for admins, students, faculty, and parents
- Ensure complete data isolation between institutions (multi-tenant)
- Support institutional, department, and subject-level analytics
| Portal | Key Capabilities |
|---|---|
| Institution Admin | Analytics dashboard, department/subject analytics, student management, predictions, at-risk detection, reports |
| Student | Academic profile, performance, predictions, improvement areas, goal setting, reports |
| Faculty | Assigned students, performance tracking, predictions, at-risk students, reports |
| Parent | Child performance, predictions, improvement areas, reports |
Next.js Client (Bun)
↓
FastAPI Backend (uv)
↓
PostgreSQL
↓
ML Prediction Layer (versioned model artifacts)
Each institution operates as an independent tenant with backend-enforced data isolation.
| Layer | Technologies |
|---|---|
| Client | Next.js, React, TypeScript, Tailwind CSS, shadcn/ui, TanStack Query, react-hook-form, zod, Bun |
| Backend | FastAPI, Python, SQLAlchemy, Alembic, argon2-cffi, PyJWT, slowapi, WeasyPrint, uv |
| Database | PostgreSQL (Alembic migrations) |
| ML | Pandas, NumPy, Scikit-learn, joblib, Jupyter (uv) |
| CI | GitHub Actions (pytest, ruff, eslint, build) |
| Infrastructure | Docker Compose (PostgreSQL), Sentry (optional) |
scholar-pulse/
├── client/ # Next.js frontend (Bun)
├── backend/ # FastAPI API server (uv)
├── ml/ # ML development & training (uv)
├── docs/ # Project documentation
├── docker-compose.yml
├── .env.example
└── README.md
university_data/*.csv → Training → .pkl / .json artifacts → Python inference → FastAPI
Three components trained on the synthetic CBCS university dataset:
- Performance Prediction — end-term marks from 0-100 via HistGradientBoostingRegressor
- Pass/Fail Prediction — PASS/FAIL classification with probabilities via HistGradientBoostingClassifier, tuned for FAIL recall
- At-Risk Detection — versioned rule-based weighted risk engine (not ML)
Current held-out results:
| Component | Metrics |
|---|---|
| Model 1 — end-term marks | MAE 5.6549 · RMSE 7.0895 · R² 0.7574 |
| Model 2 — pass/fail | FAIL recall 0.9519 · FAIL precision 0.1606 · ROC-AUC 0.9912 |
| Model 3 — risk engine | Accuracy 74.85% · macro F1 70.78% |
Model 2's test-set FAIL rate is 0.81%, so its precision/recall trade-off should be considered alongside its always-PASS accuracy of 0.9919. These synthetic-dataset results are not guarantees of institutional performance. See ML evaluation for test-set details and caveats.
See docs/ml-pipeline.md and ml/README.md.
Prediction and authentication endpoints under /api/v1:
POST /predictions/performance
POST /predictions/pass-fail
POST /predictions/risk
POST /predictions/all
POST /predictions/student
POST /predictions/regenerate
POST /auth/refresh
- Dataset and problem definition
- Data preprocessing and EDA
- ML model development
- Model evaluation and finalization
- FastAPI backend and academic data system
- Analytics dashboards
- Large-scale data testing
- Integration, testing and deployment
See docs/development-phases.md for details.
cp .env.example .env
docker compose up -dcd client
bun install
bun run devClient runs at http://localhost:3000.
cd backend
cp .env.example .env
uv sync
uv run alembic upgrade head
uv run python scripts/seed.py --scale 100
uv run uvicorn app.main:app --reload --port 8000API runs at http://localhost:8000. Interactive API docs: Swagger UI · ReDoc. Health: GET /health.
Default admin login: admin@demo.com / admin123. See sample-credentials.md for the other seeded logins.
cd ml
uv syncSDG 4: Quality Education. Early identification of at-risk students supports timely academic intervention. Role-specific academic feedback helps students, faculty, parents, and administrators act on relevant evidence.
SDG 9: Industry, Innovation and Infrastructure. The deployable multi-tenant analytics platform gives institutions reusable infrastructure for academic monitoring. Its prediction and reporting services turn institutional data into an operational innovation.
From /backend, run uv run pytest tests and uv run ruff check ..
| Document | Description |
|---|---|
| overview.md | Project overview and scope |
| architecture.md | System architecture and technology decisions |
| features.md | Feature list by portal |
| development-phases.md | Implementation phases |
| Document | Description |
|---|---|
| database.md | Database entities and seed data |
| database-constraints.md | Indexes, uniqueness, audit fields |
| migrations.md | Alembic migration strategy |
| backend-api.md | Swagger/ReDoc UI, auth, generated reference |
| deployment.md | Publish backend docs to GitHub Pages |
| backend-structure.md | backend/ layout and route modules |
| api-reference.generated.md | Per-endpoint inputs/outputs (auto-generated) |
| api.md | API categories (short index) |
| api-conventions.md | Pagination, errors, response envelopes |
| Document | Description |
|---|---|
| authentication.md | Authentication flows |
| security.md | argon2, PyJWT, rate limiting |
| authorization.md | Role-permission matrix |
| onboarding.md | Admin signup and onboarding |
| multi-tenancy.md | Multi-tenant isolation |
| user-roles.md | User roles and access |
| user-management.md | Admin user management |
| Document | Description |
|---|---|
| dataset.md | Dataset strategy |
| ml-pipeline.md | ML pipeline and models |
| ml-evaluation.md | Metrics, versioning, SHAP explainability |
| Document | Description |
|---|---|
| frontend-stack.md | TanStack Query, RHF, zod, auth handling |
| reports.md | PDF export with WeasyPrint |
| Document | Description |
|---|---|
| infrastructure.md | Environments, secrets, Sentry, backup |
| deployment.md | Production deployment guide |
| e2e-testing.md | Manual validation checklist |
| ci.md | GitHub Actions CI pipeline |
This project does not include: hardware/IoT, ESP32, RFID, sensors, GIS, blockchain, smart contracts, Kubernetes, Kafka, Spark, Redis, or microservices architecture.
Academic project — ScholarPulse, SMK Team.