# sharmeenshahid08/campus-health-detector architecture

> Architecture diagram of the GitHub repository sharmeenshahid08/campus-health-detector, 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/sharmeenshahid08/campus-health-detector
- Repository: https://github.com/sharmeenshahid08/campus-health-detector

## Overview

Campus Health Detector is a Streamlit clinical decision-support dashboard. A user enters student and visit details, receives predictions for stress relation, diagnosis, treatment, and follow-up, and can inspect model results and campus health trends. The dashboard trains models at startup; a separate Python script also contains a data-generation, training, and prediction workflow. Evidence is partial, so the graph avoids assuming that the script supplies the dashboard or that the CSV is loaded by a particular code path.

Main entry points: [`streamlit_app.py`](https://github.com/sharmeenshahid08/campus-health-detector/blob/main/streamlit_app.py) (Dashboard interface), [`full_dataset_5000.csv`](https://github.com/sharmeenshahid08/campus-health-detector/blob/main/full_dataset_5000.csv) (5,000 health records)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dashboard["Streamlit dashboard"]
  node_dashboard_ui["Dashboard interface<br/>[streamlit_app.py]"]
  node_patient_input["Patient input<br/>[streamlit_app.py]"]
end

subgraph group_ml["Prediction and modeling"]
  node_training["Startup model training<br/>[streamlit_app.py]"]
  node_inference["Patient prediction<br/>[streamlit_app.py]"]
  node_standalone_pipeline["Standalone ML workflow"]
end

subgraph group_analytics["Results and insights"]
  node_model_results["Model results<br/>[streamlit_app.py]"]
  node_data_insights["Data insights<br/>[streamlit_app.py]"]
end

subgraph group_data["Health data"]
  node_health_records[("5,000 health records")]
end

node_user(("Medical staff"))

node_user -->|"uses"| node_dashboard_ui
node_dashboard_ui -->|"collects"| node_patient_input
node_dashboard_ui -->|"trains at startup"| node_training
node_patient_input -->|"requests predictions"| node_inference
node_training -.->|"supplies models"| node_inference
node_dashboard_ui -->|"displays"| node_model_results
node_dashboard_ui -->|"displays"| node_data_insights
node_health_records -.->|"trains on"| node_training

click node_dashboard_ui "https://github.com/sharmeenshahid08/campus-health-detector/blob/main/streamlit_app.py"
click node_patient_input "https://github.com/sharmeenshahid08/campus-health-detector/blob/main/streamlit_app.py"
click node_training "https://github.com/sharmeenshahid08/campus-health-detector/blob/main/streamlit_app.py"
click node_inference "https://github.com/sharmeenshahid08/campus-health-detector/blob/main/streamlit_app.py"
click node_standalone_pipeline "https://github.com/sharmeenshahid08/campus-health-detector/blob/main/campus_health_detector.py"
click node_model_results "https://github.com/sharmeenshahid08/campus-health-detector/blob/main/streamlit_app.py"
click node_data_insights "https://github.com/sharmeenshahid08/campus-health-detector/blob/main/streamlit_app.py"
click node_health_records "https://github.com/sharmeenshahid08/campus-health-detector/blob/main/full_dataset_5000.csv"

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_dashboard_ui,node_patient_input toneBlue
class node_training,node_inference,node_standalone_pipeline toneAmber
class node_model_results,node_data_insights toneMint
class node_health_records toneRose
class node_user toneIndigo
```

## Components

### Streamlit dashboard

- [Dashboard interface](https://github.com/sharmeenshahid08/campus-health-detector/blob/main/streamlit_app.py): `streamlit_app.py`
- [Patient input](https://github.com/sharmeenshahid08/campus-health-detector/blob/main/streamlit_app.py): `streamlit_app.py`

### Prediction and modeling

- [Startup model training](https://github.com/sharmeenshahid08/campus-health-detector/blob/main/streamlit_app.py): `streamlit_app.py`
- [Patient prediction](https://github.com/sharmeenshahid08/campus-health-detector/blob/main/streamlit_app.py): `streamlit_app.py`
- [Standalone ML workflow](https://github.com/sharmeenshahid08/campus-health-detector/blob/main/campus_health_detector.py): `campus_health_detector.py`

### Results and insights

- [Model results](https://github.com/sharmeenshahid08/campus-health-detector/blob/main/streamlit_app.py): `streamlit_app.py`
- [Data insights](https://github.com/sharmeenshahid08/campus-health-detector/blob/main/streamlit_app.py): `streamlit_app.py`

### Health data

- [5,000 health records](https://github.com/sharmeenshahid08/campus-health-detector/blob/main/full_dataset_5000.csv): `full_dataset_5000.csv`

### Other components

- **Medical staff**

## Connections

- Medical staff → Dashboard interface: uses (evidence: `README.md`)
- Dashboard interface → Patient input: collects (evidence: `README.md`)
- Dashboard interface → Startup model training: trains at startup (evidence: `README.md`)
- Patient input → Patient prediction: requests predictions (evidence: `README.md`)
- Startup model training → Patient prediction: supplies models (evidence: `streamlit_app.py`)
- Dashboard interface → Model results: displays (evidence: `README.md`)
- Dashboard interface → Data insights: displays (evidence: `README.md`)
- 5,000 health records → Startup model training: trains on
