# danielke32/fl_edutech architecture

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

- Interactive diagram: https://gitdiagram.com/danielke32/fl_edutech
- Repository: https://github.com/danielke32/fl_edutech

## Overview

FL_Edutech is a research pipeline for evaluating centralized and federated learning approaches to predict at-risk students in health professional education. The principal workflow prepares OULAD data, creates four client-distribution scenarios, trains centralized and federated models, and analyzes results. The federated training excerpt explicitly loads scenario client data; the analysis excerpt shows result aggregation and statistical/figure generation. Some handoffs are indicated in the stage structure but their exact output paths are not visible in the excerpts, so those links are marked unverified.

Main entry points: [`p2_stage4_analysis_3.py`](https://github.com/danielke32/fl_edutech/blob/main/p2_stage4_analysis_3.py) (Analyze results), [`p2_stage1_preprocessing.py`](https://github.com/danielke32/fl_edutech/blob/main/p2_stage1_preprocessing.py) (Preprocess data), [`p2_stage2_create_scenarios.py`](https://github.com/danielke32/fl_edutech/blob/main/p2_stage2_create_scenarios.py) (Create scenarios), [`p2_stage3c_train_federated.py`](https://github.com/danielke32/fl_edutech/blob/main/p2_stage3c_train_federated.py) (Federated training)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Data preparation"]
  node_preprocessing["Preprocess data"]
end

subgraph group_experiments["Experiment setup"]
  node_scenarios["Create scenarios"]
end

subgraph group_training["Model training"]
  node_centralized["Centralized training"]
  node_federated["Federated training"]
end

subgraph group_evaluation["Evaluation"]
  node_analysis["Analyze results"]
  node_stats["Statistical tests"]
  node_figures["Analysis figures"]
end

node_researcher(("Researcher"))
node_oulad["OULAD data"]

node_researcher -.->|"runs pipeline"| node_preprocessing
node_oulad -.->|"provides data"| node_preprocessing
node_preprocessing -.->|"prepares training data"| node_scenarios
node_researcher -.->|"runs stage"| node_scenarios
node_scenarios -->|"loads client data"| node_federated
node_researcher -.->|"runs baseline"| node_centralized
node_researcher -.->|"runs experiments"| node_federated
node_centralized -.->|"provides results"| node_analysis
node_federated -.->|"provides results"| node_analysis
node_analysis -->|"computes tests"| node_stats
node_analysis -->|"generates figures"| node_figures

click node_preprocessing "https://github.com/danielke32/fl_edutech/blob/main/p2_stage1_preprocessing.py"
click node_scenarios "https://github.com/danielke32/fl_edutech/blob/main/p2_stage2_create_scenarios.py"
click node_centralized "https://github.com/danielke32/fl_edutech/blob/main/p2_stage3b_train_centralized.py"
click node_federated "https://github.com/danielke32/fl_edutech/blob/main/p2_stage3c_train_federated.py"
click node_analysis "https://github.com/danielke32/fl_edutech/blob/main/p2_stage4_analysis_3.py"
click node_stats "https://github.com/danielke32/fl_edutech/blob/main/p2_stage4_analysis_3.py"
click node_figures "https://github.com/danielke32/fl_edutech/blob/main/p2_stage4_analysis_3.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_preprocessing toneBlue
class node_scenarios toneAmber
class node_centralized,node_federated toneMint
class node_analysis,node_stats,node_figures toneRose
class node_researcher,node_oulad toneIndigo
```

## Components

### Data preparation

- [Preprocess data](https://github.com/danielke32/fl_edutech/blob/main/p2_stage1_preprocessing.py): `p2_stage1_preprocessing.py`

### Experiment setup

- [Create scenarios](https://github.com/danielke32/fl_edutech/blob/main/p2_stage2_create_scenarios.py): `p2_stage2_create_scenarios.py`

### Model training

- [Centralized training](https://github.com/danielke32/fl_edutech/blob/main/p2_stage3b_train_centralized.py): `p2_stage3b_train_centralized.py`
- [Federated training](https://github.com/danielke32/fl_edutech/blob/main/p2_stage3c_train_federated.py): `p2_stage3c_train_federated.py`

### Evaluation

- [Analyze results](https://github.com/danielke32/fl_edutech/blob/main/p2_stage4_analysis_3.py): `p2_stage4_analysis_3.py`
- [Statistical tests](https://github.com/danielke32/fl_edutech/blob/main/p2_stage4_analysis_3.py): `p2_stage4_analysis_3.py`
- [Analysis figures](https://github.com/danielke32/fl_edutech/blob/main/p2_stage4_analysis_3.py): `p2_stage4_analysis_3.py`

### Other components

- **Researcher**
- **OULAD data**

## Connections

- Researcher → Preprocess data: runs pipeline
- OULAD data → Preprocess data: provides data
- Preprocess data → Create scenarios: prepares training data
- Researcher → Create scenarios: runs stage
- Create scenarios → Federated training: loads client data (evidence: `p2_stage3c_train_federated.py`)
- Researcher → Centralized training: runs baseline
- Researcher → Federated training: runs experiments
- Centralized training → Analyze results: provides results
- Federated training → Analyze results: provides results
- Analyze results → Statistical tests: computes tests (evidence: `p2_stage4_analysis_3.py`)
- Analyze results → Analysis figures: generates figures (evidence: `p2_stage4_analysis_3.py`)
