# mostafaelsonny/student-success-analytics architecture

> Architecture diagram of the GitHub repository mostafaelsonny/student-success-analytics, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mostafaelsonny/student-success-analytics
- Repository: https://github.com/mostafaelsonny/student-success-analytics

## Overview

This repository implements a student-success analytics system: OULAD data is loaded into a SQL Server warehouse, analyzed in Power BI, and used for Day-28 early-risk prediction. The main path runs from source data through ETL and the star-schema warehouse to dashboards and prediction outputs; the ML branch prepares leakage-controlled features, trains and evaluates models, and exports predictions for warehouse use. The README documents the end-to-end architecture; source excerpts confirm key ML and prediction-ingestion behavior, while SSIS package internals and the Power BI model were not sampled.

Main entry points: [`01_DataWarehouse_SQL/DDL`](https://github.com/mostafaelsonny/student-success-analytics/tree/develop/01_DataWarehouse_SQL/DDL) (Star-schema warehouse), [`04_Machine_Learning/src/feature_engineering.py`](https://github.com/mostafaelsonny/student-success-analytics/blob/develop/04_Machine_Learning/src/feature_engineering.py) (Leakage-safe feature engineering), [`03_PowerBI_Dashboard/Dashboard_v0.1.pbix`](https://github.com/mostafaelsonny/student-success-analytics/blob/develop/03_PowerBI_Dashboard/Dashboard_v0.1.pbix) (Power BI dashboard), [`04_Machine_Learning/src/export_predictions_to_sql.py`](https://github.com/mostafaelsonny/student-success-analytics/blob/develop/04_Machine_Learning/src/export_predictions_to_sql.py) (Prediction SQL export)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_etl["Data ingestion"]
  node_ssis["SSIS ETL"]
  node_fallback["Python ETL fallback"]
  node_staging[("Staging tables")]
end

subgraph group_warehouse["Analytics warehouse"]
  node_warehouse[("Star-schema warehouse")]
  node_views["Analytical views"]
  node_ingest["Prediction ingestion"]
end

subgraph group_ml["Early warning ML"]
  node_feature_prep["Day-28 dataset preparation"]
  node_features["Leakage-safe feature engineering"]
  node_baseline["Baseline modeling<br/>[baseline_model.py]"]
  node_evaluation["Model comparison"]
  node_training["Final model selection<br/>[train.py]"]
  node_inference["Risk scoring and SHAP<br/>[inference.py]"]
  node_export["Prediction SQL export"]
  node_audit["Model quality audit<br/>[audit_model.py]"]
end

subgraph group_bi["Business intelligence"]
  node_dashboard["Power BI dashboard"]
  node_measures["Core DAX measures"]
end

node_source[("OULAD source data")]
node_raw_actor(("Analyst / educator"))

node_source -->|"loads from"| node_ssis
node_ssis -->|"stages data"| node_staging
node_staging -->|"loads warehouse"| node_warehouse
node_source -.->|"fallback loads"| node_fallback
node_warehouse -.->|"serves queries"| node_views
node_warehouse -->|"feeds analytics"| node_dashboard
node_views -.->|"supports reporting"| node_dashboard
node_measures -.->|"defines measures"| node_dashboard
node_raw_actor -.->|"reviews insights"| node_dashboard
node_source -->|"provides source tables"| node_feature_prep
node_feature_prep -->|"calls feature extraction"| node_features
node_features -.->|"provides features"| node_baseline
node_features -.->|"provides features"| node_evaluation
node_features -.->|"provides features"| node_training
node_training -.->|"produces model"| node_inference
node_export -->|"uses scoring"| node_inference
node_export -->|"reads features"| node_warehouse
node_export -.->|"exports predictions"| node_ingest
node_ingest -->|"merges predictions"| node_warehouse
node_audit -.->|"audits model quality"| node_training
node_warehouse -.->|"supplies prediction features"| node_inference

click node_source "https://github.com/mostafaelsonny/student-success-analytics/tree/develop/data/raw"
click node_ssis "https://github.com/mostafaelsonny/student-success-analytics/blob/develop/02_ETL_SSIS/Packages/StudentSuccess_ETL/Master_ETL_Orchestrator.dtsx"
click node_fallback "https://github.com/mostafaelsonny/student-success-analytics/tree/develop/02_ETL_SSIS/ETL_Python_Fallback"
click node_staging "https://github.com/mostafaelsonny/student-success-analytics/tree/develop/02_ETL_SSIS/Staging"
click node_warehouse "https://github.com/mostafaelsonny/student-success-analytics/tree/develop/01_DataWarehouse_SQL/DDL"
click node_views "https://github.com/mostafaelsonny/student-success-analytics/tree/develop/01_DataWarehouse_SQL/Views"
click node_dashboard "https://github.com/mostafaelsonny/student-success-analytics/blob/develop/03_PowerBI_Dashboard/Dashboard_v0.1.pbix"
click node_measures "https://github.com/mostafaelsonny/student-success-analytics/blob/develop/03_PowerBI_Dashboard/DAX_Measures/01_core_measures.dax"
click node_feature_prep "https://github.com/mostafaelsonny/student-success-analytics/blob/develop/04_Machine_Learning/src/prepare_day28_dataset.py"
click node_features "https://github.com/mostafaelsonny/student-success-analytics/blob/develop/04_Machine_Learning/src/feature_engineering.py"
click node_baseline "https://github.com/mostafaelsonny/student-success-analytics/blob/develop/04_Machine_Learning/src/baseline_model.py"
click node_evaluation "https://github.com/mostafaelsonny/student-success-analytics/blob/develop/04_Machine_Learning/src/model_evaluation.py"
click node_training "https://github.com/mostafaelsonny/student-success-analytics/blob/develop/04_Machine_Learning/src/train.py"
click node_inference "https://github.com/mostafaelsonny/student-success-analytics/blob/develop/04_Machine_Learning/src/inference.py"
click node_export "https://github.com/mostafaelsonny/student-success-analytics/blob/develop/04_Machine_Learning/src/export_predictions_to_sql.py"
click node_ingest "https://github.com/mostafaelsonny/student-success-analytics/blob/develop/01_DataWarehouse_SQL/ETL_SQL/ingest_ml_predictions.py"
click node_audit "https://github.com/mostafaelsonny/student-success-analytics/blob/develop/04_Machine_Learning/src/audit_model.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_ssis,node_fallback,node_staging toneBlue
class node_warehouse,node_views,node_ingest,node_source toneAmber
class node_feature_prep,node_features,node_baseline,node_evaluation,node_training,node_inference,node_export,node_audit toneMint
class node_dashboard,node_measures toneRose
class node_raw_actor toneIndigo
```

## Components

### Data ingestion

- [SSIS ETL](https://github.com/mostafaelsonny/student-success-analytics/blob/develop/02_ETL_SSIS/Packages/StudentSuccess_ETL/Master_ETL_Orchestrator.dtsx): `02_ETL_SSIS/Packages/StudentSuccess_ETL/Master_ETL_Orchestrator.dtsx`
- [Python ETL fallback](https://github.com/mostafaelsonny/student-success-analytics/tree/develop/02_ETL_SSIS/ETL_Python_Fallback): `02_ETL_SSIS/ETL_Python_Fallback`
- [Staging tables](https://github.com/mostafaelsonny/student-success-analytics/tree/develop/02_ETL_SSIS/Staging): `02_ETL_SSIS/Staging`

### Analytics warehouse

- [Star-schema warehouse](https://github.com/mostafaelsonny/student-success-analytics/tree/develop/01_DataWarehouse_SQL/DDL): `01_DataWarehouse_SQL/DDL`
- [Analytical views](https://github.com/mostafaelsonny/student-success-analytics/tree/develop/01_DataWarehouse_SQL/Views): `01_DataWarehouse_SQL/Views`
- [Prediction ingestion](https://github.com/mostafaelsonny/student-success-analytics/blob/develop/01_DataWarehouse_SQL/ETL_SQL/ingest_ml_predictions.py): `01_DataWarehouse_SQL/ETL_SQL/ingest_ml_predictions.py`

### Early warning ML

- [Day-28 dataset preparation](https://github.com/mostafaelsonny/student-success-analytics/blob/develop/04_Machine_Learning/src/prepare_day28_dataset.py): `04_Machine_Learning/src/prepare_day28_dataset.py`
- [Leakage-safe feature engineering](https://github.com/mostafaelsonny/student-success-analytics/blob/develop/04_Machine_Learning/src/feature_engineering.py): `04_Machine_Learning/src/feature_engineering.py`
- [Baseline modeling](https://github.com/mostafaelsonny/student-success-analytics/blob/develop/04_Machine_Learning/src/baseline_model.py): `04_Machine_Learning/src/baseline_model.py`
- [Model comparison](https://github.com/mostafaelsonny/student-success-analytics/blob/develop/04_Machine_Learning/src/model_evaluation.py): `04_Machine_Learning/src/model_evaluation.py`
- [Final model selection](https://github.com/mostafaelsonny/student-success-analytics/blob/develop/04_Machine_Learning/src/train.py): `04_Machine_Learning/src/train.py`
- [Risk scoring and SHAP](https://github.com/mostafaelsonny/student-success-analytics/blob/develop/04_Machine_Learning/src/inference.py): `04_Machine_Learning/src/inference.py`
- [Prediction SQL export](https://github.com/mostafaelsonny/student-success-analytics/blob/develop/04_Machine_Learning/src/export_predictions_to_sql.py): `04_Machine_Learning/src/export_predictions_to_sql.py`
- [Model quality audit](https://github.com/mostafaelsonny/student-success-analytics/blob/develop/04_Machine_Learning/src/audit_model.py): `04_Machine_Learning/src/audit_model.py`

### Business intelligence

- [Power BI dashboard](https://github.com/mostafaelsonny/student-success-analytics/blob/develop/03_PowerBI_Dashboard/Dashboard_v0.1.pbix): `03_PowerBI_Dashboard/Dashboard_v0.1.pbix`
- [Core DAX measures](https://github.com/mostafaelsonny/student-success-analytics/blob/develop/03_PowerBI_Dashboard/DAX_Measures/01_core_measures.dax): `03_PowerBI_Dashboard/DAX_Measures/01_core_measures.dax`

### Other components

- [OULAD source data](https://github.com/mostafaelsonny/student-success-analytics/tree/develop/data/raw): `data/raw`
- **Analyst / educator**

## Connections

- OULAD source data → SSIS ETL: loads from (evidence: `README.md`)
- SSIS ETL → Staging tables: stages data (evidence: `README.md`)
- Staging tables → Star-schema warehouse: loads warehouse (evidence: `README.md`)
- OULAD source data → Python ETL fallback: fallback loads
- Star-schema warehouse → Analytical views: serves queries
- Star-schema warehouse → Power BI dashboard: feeds analytics (evidence: `README.md`)
- Analytical views → Power BI dashboard: supports reporting
- Core DAX measures → Power BI dashboard: defines measures
- Analyst / educator → Power BI dashboard: reviews insights
- OULAD source data → Day-28 dataset preparation: provides source tables (evidence: `04_Machine_Learning/src/prepare_day28_dataset.py`)
- Day-28 dataset preparation → Leakage-safe feature engineering: calls feature extraction (evidence: `04_Machine_Learning/src/prepare_day28_dataset.py`)
- Leakage-safe feature engineering → Baseline modeling: provides features (evidence: `04_Machine_Learning/src/baseline_model.py`)
- Leakage-safe feature engineering → Model comparison: provides features (evidence: `04_Machine_Learning/src/model_evaluation.py`)
- Leakage-safe feature engineering → Final model selection: provides features (evidence: `04_Machine_Learning/src/train.py`)
- Final model selection → Risk scoring and SHAP: produces model
- Prediction SQL export → Risk scoring and SHAP: uses scoring (evidence: `04_Machine_Learning/src/export_predictions_to_sql.py`)
- Prediction SQL export → Star-schema warehouse: reads features (evidence: `04_Machine_Learning/src/export_predictions_to_sql.py`)
- Prediction SQL export → Prediction ingestion: exports predictions
- Prediction ingestion → Star-schema warehouse: merges predictions (evidence: `01_DataWarehouse_SQL/ETL_SQL/ingest_ml_predictions.py`)
- Model quality audit → Final model selection: audits model quality
- Star-schema warehouse → Risk scoring and SHAP: supplies prediction features
