# swagath18/symptom_prediction_unsupervised_ml_model architecture

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

- Interactive diagram: https://gitdiagram.com/swagath18/symptom_prediction_unsupervised_ml_model
- Repository: https://github.com/swagath18/symptom_prediction_unsupervised_ml_model

## Overview

##### Project Overview
- The project is centered on unsupervised learning to predict symptoms based on mold types (and vice versa) using clustering algorithms. It leverages data preprocessing steps which include both one-hot encoding (as seen in Data_cleaning_one_hot_encoding.ipynb) and non-one-hot-encoded data preparation (data_prep_no_1hot_encoding.ipynb).
- The goal is to identify patterns and correlations between mold types, symptoms, and diagnoses using large, complex, unlabeled datasets.

##### Main Components
a. Data Sources:

b. Data Preprocessing & Cleaning:
- Two parallel processes:
- One Notebook for data cleaning that applies one-hot encoding (Data_cleaning_one_hot_encoding.ipynb).
- One Notebook for data preparation without one-hot encoding (data_prep_no_1hot_encoding.ipynb).
- Both processes should be shown as separate blocks since they represent alternative or experimental pipelines for preprocessing.

c. Core ML Pipeline – Unsupervised Learning:
- A block representing the Clustering Algorithm (the heart of the unsupervised model).

d. Analysis & Output:
- Following the clustering, add a block that summarizes the results:
- “Correlation Analysis & Pattern Identification”
- Possibly include “Visualization & Reporting” if the notebooks include any result visualization steps.

##### Relationships and Flow
- Both preprocessing blocks then funnel into the “Clustering/Pattern Detection” block.

##### Architectural Patterns & Technologies
- Since both notebooks serve as data preprocessing steps, they indicate a modular design. Each notebook can be thought of as separate modules that feed into a single ML pipeline.

##### Final Recommendations
- Components (data input, multiple preprocessing flows, model, and analysis output) are well represented with clear directional flow.

## Diagram (Mermaid)

```mermaid
flowchart TD
    Documentation["Project Documentation (README.md)"]:::doc
    RawData["Raw Data"]:::data
    DataCleaning["Data Cleaning: One-Hot Notebook"]:::notebook
    DataPrep["Data Prep: Without One-Hot Notebook"]:::notebook
    Clustering["Clustering/Pattern Detection"]:::ml
    Analysis["Correlation Analysis & Pattern Identification"]:::analysis

    Documentation -->|"guides"| RawData
    RawData -->|"sends data to"| DataCleaning
    RawData -->|"sends data to"| DataPrep
    DataCleaning -->|"prepares data"| Clustering
    DataPrep -->|"prepares data"| Clustering
    Clustering -->|"generates results"| Analysis
    Analysis ---|"iterate"| RawData

    click Documentation "https://github.com/swagath18/symptom_prediction_unsupervised_ml_model/blob/main/README.md"
    click DataCleaning "https://github.com/swagath18/symptom_prediction_unsupervised_ml_model/blob/main/Data_cleaning_one_hot_encoding.ipynb"
    click DataPrep "https://github.com/swagath18/symptom_prediction_unsupervised_ml_model/blob/main/data_prep_no_1hot_encoding.ipynb"

    classDef doc fill:#f9c2ff,stroke:#333,stroke-width:2px;
    classDef data fill:#a3d5ff,stroke:#333,stroke-width:2px;
    classDef notebook fill:#fff2a8,stroke:#333,stroke-width:2px;
    classDef ml fill:#c1eac5,stroke:#333,stroke-width:2px;
    classDef analysis fill:#ffb3ba,stroke:#333,stroke-width:2px;
```
