# nantiny99/wafer-level-anomaly-detection-with-mlflow architecture

> Architecture diagram of the GitHub repository nantiny99/wafer-level-anomaly-detection-with-mlflow, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nantiny99/wafer-level-anomaly-detection-with-mlflow
- Repository: https://github.com/nantiny99/wafer-level-anomaly-detection-with-mlflow

## Overview

This repository is a notebook-based wafer anomaly-detection experiment. The documented workflow evaluates Isolation Forest and Autoencoder models on two ST-AWFD wafer datasets, compares results with imbalance-aware metrics, and tracks runs and artifacts in MLflow. The tree contains only the notebook and README, and no source excerpts were provided, so the graph reflects documented capabilities rather than inspected notebook internals.

Main entry points: [`Detecting Anomaly with MLflow.ipynb`](https://github.com/nantiny99/wafer-level-anomaly-detection-with-mlflow/blob/main/Detecting%20Anomaly%20with%20MLflow.ipynb) (Experiment Notebook)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Wafer Data"]
  node_dataset["ST-AWFD Dataset"]
  node_wafer_sets["Wafer 1 and 2"]
end

subgraph group_experiments["Model Experiments"]
  node_notebook["Experiment Notebook"]
  node_isolation_forest["Isolation Forest"]
  node_autoencoder["Autoencoder"]
  node_threshold["Threshold Selection"]
end

subgraph group_evaluation["Evaluation and Tracking"]
  node_metrics["Metric Evaluation"]
  node_mlflow["MLflow Tracking"]
  node_artifacts["Model Artifacts"]
  node_comparison["Performance Comparison"]
end

node_analyst(("Experimenter"))

node_analyst -->|"runs experiments"| node_notebook
node_dataset -->|"provides data"| node_wafer_sets
node_notebook -->|"evaluates datasets"| node_wafer_sets
node_notebook -->|"evaluates model"| node_isolation_forest
node_notebook -->|"evaluates model"| node_autoencoder
node_autoencoder -->|"requires tuning"| node_threshold
node_notebook -->|"assesses performance"| node_metrics
node_notebook -->|"tracks runs"| node_mlflow
node_mlflow -->|"tracks artifacts"| node_artifacts
node_notebook -->|"compares results"| node_comparison
node_metrics -->|"informs comparison"| node_comparison

click node_wafer_sets "https://github.com/nantiny99/wafer-level-anomaly-detection-with-mlflow/blob/main/Detecting%20Anomaly%20with%20MLflow.ipynb"
click node_notebook "https://github.com/nantiny99/wafer-level-anomaly-detection-with-mlflow/blob/main/Detecting%20Anomaly%20with%20MLflow.ipynb"
click node_isolation_forest "https://github.com/nantiny99/wafer-level-anomaly-detection-with-mlflow/blob/main/Detecting%20Anomaly%20with%20MLflow.ipynb"
click node_autoencoder "https://github.com/nantiny99/wafer-level-anomaly-detection-with-mlflow/blob/main/Detecting%20Anomaly%20with%20MLflow.ipynb"
click node_threshold "https://github.com/nantiny99/wafer-level-anomaly-detection-with-mlflow/blob/main/Detecting%20Anomaly%20with%20MLflow.ipynb"
click node_metrics "https://github.com/nantiny99/wafer-level-anomaly-detection-with-mlflow/blob/main/Detecting%20Anomaly%20with%20MLflow.ipynb"
click node_artifacts "https://github.com/nantiny99/wafer-level-anomaly-detection-with-mlflow/blob/main/Detecting%20Anomaly%20with%20MLflow.ipynb"
click node_comparison "https://github.com/nantiny99/wafer-level-anomaly-detection-with-mlflow/blob/main/Detecting%20Anomaly%20with%20MLflow.ipynb"

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_dataset,node_wafer_sets toneBlue
class node_notebook,node_isolation_forest,node_autoencoder,node_threshold toneAmber
class node_metrics,node_mlflow,node_artifacts,node_comparison toneMint
class node_analyst toneIndigo
```

## Components

### Wafer Data

- **ST-AWFD Dataset**
- [Wafer 1 and 2](https://github.com/nantiny99/wafer-level-anomaly-detection-with-mlflow/blob/main/Detecting%20Anomaly%20with%20MLflow.ipynb): `Detecting Anomaly with MLflow.ipynb`

### Model Experiments

- [Experiment Notebook](https://github.com/nantiny99/wafer-level-anomaly-detection-with-mlflow/blob/main/Detecting%20Anomaly%20with%20MLflow.ipynb): `Detecting Anomaly with MLflow.ipynb`
- [Isolation Forest](https://github.com/nantiny99/wafer-level-anomaly-detection-with-mlflow/blob/main/Detecting%20Anomaly%20with%20MLflow.ipynb): `Detecting Anomaly with MLflow.ipynb`
- [Autoencoder](https://github.com/nantiny99/wafer-level-anomaly-detection-with-mlflow/blob/main/Detecting%20Anomaly%20with%20MLflow.ipynb): `Detecting Anomaly with MLflow.ipynb`
- [Threshold Selection](https://github.com/nantiny99/wafer-level-anomaly-detection-with-mlflow/blob/main/Detecting%20Anomaly%20with%20MLflow.ipynb): `Detecting Anomaly with MLflow.ipynb`

### Evaluation and Tracking

- [Metric Evaluation](https://github.com/nantiny99/wafer-level-anomaly-detection-with-mlflow/blob/main/Detecting%20Anomaly%20with%20MLflow.ipynb): `Detecting Anomaly with MLflow.ipynb`
- **MLflow Tracking**
- [Model Artifacts](https://github.com/nantiny99/wafer-level-anomaly-detection-with-mlflow/blob/main/Detecting%20Anomaly%20with%20MLflow.ipynb): `Detecting Anomaly with MLflow.ipynb`
- [Performance Comparison](https://github.com/nantiny99/wafer-level-anomaly-detection-with-mlflow/blob/main/Detecting%20Anomaly%20with%20MLflow.ipynb): `Detecting Anomaly with MLflow.ipynb`

### Other components

- **Experimenter**

## Connections

- Experimenter → Experiment Notebook: runs experiments (evidence: `README.md`)
- ST-AWFD Dataset → Wafer 1 and 2: provides data (evidence: `README.md`)
- Experiment Notebook → Wafer 1 and 2: evaluates datasets (evidence: `README.md`)
- Experiment Notebook → Isolation Forest: evaluates model (evidence: `README.md`)
- Experiment Notebook → Autoencoder: evaluates model (evidence: `README.md`)
- Autoencoder → Threshold Selection: requires tuning (evidence: `README.md`)
- Experiment Notebook → Metric Evaluation: assesses performance (evidence: `README.md`)
- Experiment Notebook → MLflow Tracking: tracks runs (evidence: `README.md`)
- MLflow Tracking → Model Artifacts: tracks artifacts (evidence: `README.md`)
- Experiment Notebook → Performance Comparison: compares results (evidence: `README.md`)
- Metric Evaluation → Performance Comparison: informs comparison (evidence: `README.md`)
