# zayyancpu/disease-prediction-modeling architecture

> Architecture diagram of the GitHub repository zayyancpu/disease-prediction-modeling, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-06-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/zayyancpu/disease-prediction-modeling
- Repository: https://github.com/zayyancpu/disease-prediction-modeling

## Overview

##### Project type and purpose
- This is a standalone machine-learning lab project implemented in a Jupyter Notebook (`code.ipynb`).
- The goal is multi-class disease prediction and classification using healthcare data (`Multiple Disease Data.csv`).
- It is not a web application or microservices system, but an end-to-end ML pipeline: from raw data ingestion through preprocessing, modeling, evaluation, and (potentially) deployment.

##### File structure
- Top-level files:
- `Multiple Disease Data.csv` – raw dataset
- `code.ipynb` – the full ML pipeline in notebook form
- `README.md` – detailed description of objectives, technical steps, and future work
- `LICENSE` – project license
- There are no separate backend/frontend directories or service modules; everything is contained in the notebook alongside the dataset.
- Key technologies (inferred from README): pandas, NumPy, scikit-learn, matplotlib/seaborn.

##### README for additional insights
- The workflow enumerates seven stages: data collection, preprocessing, EDA, feature selection, model training, hyperparameter tuning, and model evaluation.
- Six supervised learning algorithms are tested.
- Future work mentions SMOTE, deep-learning, and potential feature engineering extensions.

##### Elements
- Clear labels for each pipeline stage (e.g., “Data Preprocessing”, “Model Evaluation”).
- Blue for data stores (CSV, database)
- Green for processing modules (preprocessing, EDA)
- Orange for modeling components (training, tuning, evaluation)
- Purple for deployment/monitoring
- Annotations for key technologies at each stage (e.g., “scikit-learn GridSearchCV”).

## Diagram (Mermaid)

```mermaid
graph TD
    %% Nodes outside notebook
    DataSource["Multiple Disease Data.csv"]:::data
    README["README.md"]:::doc
    LICENSE["LICENSE"]:::doc

    %% Jupyter Notebook orchestration
    subgraph "Jupyter Notebook (code.ipynb)"
        direction TB
        Preprocessing["Data Preprocessing"]:::process
        EDA["Exploratory Data Analysis (EDA)"]:::process
        FeatureSelection["Feature Selection"]:::process
        ModelTraining["Model Training (6 algorithms)"]:::model
        HyperparameterTuning["Hyperparameter Tuning\n(GridSearchCV/RandomSearch)"]:::model
        ModelEvaluation["Model Evaluation"]:::model
        Deployment["Deployment Layer\n(API Service/Batch Inference)"]:::deploy
        Monitoring["Monitoring & Logging"]:::deploy
    end

    %% Data flow
    DataSource -->|loads into| Preprocessing
    Preprocessing -->|cleaned data| EDA
    Preprocessing -->|cleaned data| FeatureSelection
    EDA -->|insights| ModelTraining
    FeatureSelection -->|selected features| ModelTraining
    ModelTraining -->|trained models| HyperparameterTuning
    HyperparameterTuning -->|tuned models| ModelEvaluation
    ModelEvaluation -->|final model| Deployment
    Deployment -->|metrics/logs| Monitoring

    %% Documentation and license
    NotebookNote["Orchestration & modules"]:::note
    NotebookNote -.-> Preprocessing
    README -.-> NotebookNote
    LICENSE -.-> NotebookNote

    %% Click events
    click DataSource "https://github.com/zayyancpu/disease-prediction-modeling/blob/main/Multiple Disease Data.csv"
    click Notebook "https://github.com/zayyancpu/disease-prediction-modeling/blob/main/code.ipynb"
    click Preprocessing "https://github.com/zayyancpu/disease-prediction-modeling/blob/main/code.ipynb"
    click EDA "https://github.com/zayyancpu/disease-prediction-modeling/blob/main/code.ipynb"
    click FeatureSelection "https://github.com/zayyancpu/disease-prediction-modeling/blob/main/code.ipynb"
    click ModelTraining "https://github.com/zayyancpu/disease-prediction-modeling/blob/main/code.ipynb"
    click HyperparameterTuning "https://github.com/zayyancpu/disease-prediction-modeling/blob/main/code.ipynb"
    click ModelEvaluation "https://github.com/zayyancpu/disease-prediction-modeling/blob/main/code.ipynb"
    click README "https://github.com/zayyancpu/disease-prediction-modeling/blob/main/README.md"
    click LICENSE "https://github.com/zayyancpu/disease-prediction-modeling/tree/main/LICENSE"

    %% Styles
    classDef data fill:#ADD8E6,stroke:#000,stroke-width:1px
    classDef process fill:#90EE90,stroke:#000,stroke-width:1px
    classDef model fill:#FFA500,stroke:#000,stroke-width:1px
    classDef deploy fill:#DDA0DD,stroke:#000,stroke-width:1px
    classDef doc fill:#F5F5F5,stroke:#333,stroke-width:1px,stroke-dasharray: 2 2
    classDef note fill:#FFFFFF,stroke:#888,stroke-dasharray: 2 2,stroke-width:1px
```
