# abhi-302-e/ai-academic-decision-system architecture

> Architecture diagram of the GitHub repository abhi-302-e/ai-academic-decision-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/abhi-302-e/ai-academic-decision-system
- Repository: https://github.com/abhi-302-e/ai-academic-decision-system

## Overview

This is a Streamlit academic ERP and decision-support application. Users enter through role-aware navigation: students register or sign in, faculty manage course assessments and attendance, and administrators govern registrations, courses, models, analytics, and reports. Student and faculty views use registered academic data for performance/risk predictions and intervention recommendations, with results presented in dashboards. SQLite is the shared academic record store; schedule import and model training support the operational workflow. Several connections are evidenced by the SOURCE INDEX rather than full excerpts, so uncertain wiring is omitted.

Main entry points: [`database.py`](https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/database.py) (Academic Database), [`app.py`](https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/app.py) (Role Navigation), [`dashboard/faculty_dashboard.py`](https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/dashboard/faculty_dashboard.py) (Faculty Workspace), [`prediction.py`](https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/prediction.py) (Academic Prediction)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and Navigation"]
  node_application["Role Navigation<br/>[app.py]"]
  node_identity["Authentication<br/>[auth.py]"]
  node_registration["Student Registration<br/>[register.py]"]
end

subgraph group_governance["Academic Governance"]
  node_admin["Admin Console<br/>[admin_dashboard.py]"]
  node_approvals["Student Approvals"]
  node_courses["Course Management"]
  node_analytics["Analytics<br/>[analytics.py]"]
  node_reports["Governance Reports<br/>[reports.py]"]
end

subgraph group_learning["Student and Faculty"]
  node_student["Student Portal"]
  node_faculty["Faculty Workspace"]
end

subgraph group_intelligence["Decision Intelligence"]
  node_training["Course Model Training"]
  node_prediction["Academic Prediction<br/>[prediction.py]"]
  node_recommendations["Intervention Recommendations"]
end

subgraph group_platform["Data and Integrations"]
  node_schedule["Schedule Import"]
  node_store[("Academic Database<br/>[database.py]")]
  node_email["Email Service<br/>[email_service.py]"]
  node_sms["SMS Service<br/>[sms_service.py]"]
end

node_user(("Academic User"))
node_sms_provider["Twilio"]

node_user -->|"opens"| node_application
node_application -->|"routes sign-in"| node_identity
node_application -->|"routes registration"| node_registration
node_application -->|"routes admin"| node_admin
node_application -->|"routes student"| node_student
node_application -->|"routes faculty"| node_faculty
node_identity -->|"authenticates against"| node_store
node_registration -->|"records registration"| node_store
node_admin -->|"manages records"| node_store
node_admin -.->|"routes approvals"| node_approvals
node_admin -->|"starts training"| node_training
node_approvals -->|"updates approvals"| node_store
node_courses -->|"manages courses"| node_store
node_courses -->|"imports timetable"| node_schedule
node_analytics -->|"queries academic data"| node_store
node_reports -->|"queries records"| node_store
node_student -->|"loads portal data"| node_store
node_student -->|"requests predictions"| node_prediction
node_student -->|"requests interventions"| node_recommendations
node_faculty -->|"records course activity"| node_store
node_faculty -->|"requests predictions"| node_prediction
node_faculty -->|"requests interventions"| node_recommendations
node_faculty -->|"sends notices"| node_email
node_faculty -->|"sends updates"| node_sms
node_training -->|"reads assessments"| node_store
node_training -.->|"provides trained models"| node_prediction
node_prediction -->|"reads registration and marks"| node_store
node_recommendations -->|"uses prediction"| node_prediction
node_recommendations -->|"reads academic policies"| node_store
node_sms -->|"delivers through"| node_sms_provider

click node_application "https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/app.py"
click node_identity "https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/auth.py"
click node_registration "https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/dashboard/register.py"
click node_admin "https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/dashboard/admin_dashboard.py"
click node_approvals "https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/dashboard/student_approvals.py"
click node_courses "https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/dashboard/course_management.py"
click node_analytics "https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/dashboard/analytics.py"
click node_reports "https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/dashboard/reports.py"
click node_student "https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/dashboard/student_dashboard.py"
click node_faculty "https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/dashboard/faculty_dashboard.py"
click node_schedule "https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/preprocessing/academic_schedule_import.py"
click node_store "https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/database.py"
click node_training "https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/models/train_registered_course_models.py"
click node_prediction "https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/prediction.py"
click node_recommendations "https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/recommendation_engine.py"
click node_email "https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/email_service.py"
click node_sms "https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/sms_service.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_application,node_identity,node_registration,node_user toneBlue
class node_admin,node_approvals,node_courses,node_analytics,node_reports toneAmber
class node_student,node_faculty toneMint
class node_training,node_prediction,node_recommendations toneRose
class node_schedule,node_store,node_email,node_sms,node_sms_provider toneIndigo
```

## Components

### Access and Navigation

- [Role Navigation](https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/app.py): `app.py`
- [Authentication](https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/auth.py): `auth.py`
- [Student Registration](https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/dashboard/register.py): `dashboard/register.py`

### Academic Governance

- [Admin Console](https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/dashboard/admin_dashboard.py): `dashboard/admin_dashboard.py`
- [Student Approvals](https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/dashboard/student_approvals.py): `dashboard/student_approvals.py`
- [Course Management](https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/dashboard/course_management.py): `dashboard/course_management.py`
- [Analytics](https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/dashboard/analytics.py): `dashboard/analytics.py`
- [Governance Reports](https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/dashboard/reports.py): `dashboard/reports.py`

### Student and Faculty

- [Student Portal](https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/dashboard/student_dashboard.py): `dashboard/student_dashboard.py`
- [Faculty Workspace](https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/dashboard/faculty_dashboard.py): `dashboard/faculty_dashboard.py`

### Decision Intelligence

- [Course Model Training](https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/models/train_registered_course_models.py): `models/train_registered_course_models.py`
- [Academic Prediction](https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/prediction.py): `prediction.py`
- [Intervention Recommendations](https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/recommendation_engine.py): `recommendation_engine.py`

### Data and Integrations

- [Schedule Import](https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/preprocessing/academic_schedule_import.py): `preprocessing/academic_schedule_import.py`
- [Academic Database](https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/database.py): `database.py`
- [Email Service](https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/email_service.py): `email_service.py`
- [SMS Service](https://github.com/abhi-302-e/ai-academic-decision-system/blob/main/sms_service.py): `sms_service.py`

### Other components

- **Academic User**
- **Twilio**

## Connections

- Academic User → Role Navigation: opens (evidence: `app.py`)
- Role Navigation → Authentication: routes sign-in (evidence: `app.py`)
- Role Navigation → Student Registration: routes registration (evidence: `app.py`)
- Role Navigation → Admin Console: routes admin (evidence: `app.py`)
- Role Navigation → Student Portal: routes student (evidence: `app.py`)
- Role Navigation → Faculty Workspace: routes faculty (evidence: `app.py`)
- Authentication → Academic Database: authenticates against (evidence: `auth.py`)
- Student Registration → Academic Database: records registration (evidence: `dashboard/register.py`)
- Admin Console → Academic Database: manages records (evidence: `dashboard/admin_dashboard.py`)
- Admin Console → Student Approvals: routes approvals
- Admin Console → Course Model Training: starts training (evidence: `dashboard/admin_dashboard.py`)
- Student Approvals → Academic Database: updates approvals (evidence: `dashboard/student_approvals.py`)
- Course Management → Academic Database: manages courses (evidence: `dashboard/course_management.py`)
- Course Management → Schedule Import: imports timetable (evidence: `dashboard/course_management.py`)
- Analytics → Academic Database: queries academic data (evidence: `dashboard/analytics.py`)
- Governance Reports → Academic Database: queries records (evidence: `dashboard/reports.py`)
- Student Portal → Academic Database: loads portal data (evidence: `dashboard/student_dashboard.py`)
- Student Portal → Academic Prediction: requests predictions (evidence: `dashboard/student_dashboard.py`)
- Student Portal → Intervention Recommendations: requests interventions (evidence: `dashboard/student_dashboard.py`)
- Faculty Workspace → Academic Database: records course activity (evidence: `dashboard/faculty_dashboard.py`)
- Faculty Workspace → Academic Prediction: requests predictions (evidence: `dashboard/faculty_dashboard.py`)
- Faculty Workspace → Intervention Recommendations: requests interventions (evidence: `dashboard/faculty_dashboard.py`)
- Faculty Workspace → Email Service: sends notices (evidence: `dashboard/faculty_dashboard.py`)
- Faculty Workspace → SMS Service: sends updates (evidence: `dashboard/faculty_dashboard.py`)
- Course Model Training → Academic Database: reads assessments (evidence: `models/train_registered_course_models.py`)
- Course Model Training → Academic Prediction: provides trained models (evidence: `prediction.py`)
- Academic Prediction → Academic Database: reads registration and marks (evidence: `prediction.py`)
- Intervention Recommendations → Academic Prediction: uses prediction (evidence: `recommendation_engine.py`)
- Intervention Recommendations → Academic Database: reads academic policies (evidence: `recommendation_engine.py`)
- SMS Service → Twilio: delivers through (evidence: `sms_service.py`)
