# ruben007ecba/lung-cancer-detection-and-classification architecture

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

- Interactive diagram: https://gitdiagram.com/ruben007ecba/lung-cancer-detection-and-classification
- Repository: https://github.com/ruben007ecba/lung-cancer-detection-and-classification

## Overview

The filenames indicate a MATLAB lung-cancer classification project, with segmentation, classification-related utilities, prediction modules, and evaluation metrics. No README or source excerpts are available, so the runtime workflow and connections between these components cannot be verified; the graph shows the identifiable components without asserting call relationships.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_segmentation["Segmentation"]
  node_region_seg["Region Segmentation<br/>[region_seg.m]"]
  node_otsu_fitness["Otsu Fitness<br/>[otsuFitness.m]"]
end

subgraph group_classification["Classification"]
  node_gabor["Gabor Filter<br/>[gabor_fn.m]"]
  node_layer_replacement["Layer Replacement"]
  node_classification_script["Lung Classification"]
  node_prediction_one["Prediction One<br/>[predection1.p]"]
  node_prediction_two["Prediction Two<br/>[predection2.p]"]
end

subgraph group_evaluation["Evaluation"]
  node_f1_metric["F1 Metric<br/>[avg_F1.p]"]
  node_accuracy_metric["Accuracy Metric<br/>[avg_accuracy.p]"]
  node_precision_metric["Precision Metric<br/>[avg_precision.p]"]
  node_roc_metric["ROC Metric<br/>[avg_roc.p]"]
end

click node_region_seg "https://github.com/ruben007ecba/lung-cancer-detection-and-classification/blob/main/region_seg.m"
click node_otsu_fitness "https://github.com/ruben007ecba/lung-cancer-detection-and-classification/blob/main/otsuFitness.m"
click node_gabor "https://github.com/ruben007ecba/lung-cancer-detection-and-classification/blob/main/gabor_fn.m"
click node_layer_replacement "https://github.com/ruben007ecba/lung-cancer-detection-and-classification/blob/main/findLayersToReplace.m"
click node_classification_script "https://github.com/ruben007ecba/lung-cancer-detection-and-classification/blob/main/lung_cancer_classification.m"
click node_prediction_one "https://github.com/ruben007ecba/lung-cancer-detection-and-classification/blob/main/predection1.p"
click node_prediction_two "https://github.com/ruben007ecba/lung-cancer-detection-and-classification/blob/main/predection2.p"
click node_f1_metric "https://github.com/ruben007ecba/lung-cancer-detection-and-classification/blob/main/avg_F1.p"
click node_accuracy_metric "https://github.com/ruben007ecba/lung-cancer-detection-and-classification/blob/main/avg_accuracy.p"
click node_precision_metric "https://github.com/ruben007ecba/lung-cancer-detection-and-classification/blob/main/avg_precision.p"
click node_roc_metric "https://github.com/ruben007ecba/lung-cancer-detection-and-classification/blob/main/avg_roc.p"

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_region_seg,node_otsu_fitness toneBlue
class node_gabor,node_layer_replacement,node_classification_script,node_prediction_one,node_prediction_two toneAmber
class node_f1_metric,node_accuracy_metric,node_precision_metric,node_roc_metric toneMint
```

## Components

### Segmentation

- [Region Segmentation](https://github.com/ruben007ecba/lung-cancer-detection-and-classification/blob/main/region_seg.m): `region_seg.m`
- [Otsu Fitness](https://github.com/ruben007ecba/lung-cancer-detection-and-classification/blob/main/otsuFitness.m): `otsuFitness.m`

### Classification

- [Gabor Filter](https://github.com/ruben007ecba/lung-cancer-detection-and-classification/blob/main/gabor_fn.m): `gabor_fn.m`
- [Layer Replacement](https://github.com/ruben007ecba/lung-cancer-detection-and-classification/blob/main/findLayersToReplace.m): `findLayersToReplace.m`
- [Lung Classification](https://github.com/ruben007ecba/lung-cancer-detection-and-classification/blob/main/lung_cancer_classification.m): `lung_cancer_classification.m`
- [Prediction One](https://github.com/ruben007ecba/lung-cancer-detection-and-classification/blob/main/predection1.p): `predection1.p`
- [Prediction Two](https://github.com/ruben007ecba/lung-cancer-detection-and-classification/blob/main/predection2.p): `predection2.p`

### Evaluation

- [F1 Metric](https://github.com/ruben007ecba/lung-cancer-detection-and-classification/blob/main/avg_F1.p): `avg_F1.p`
- [Accuracy Metric](https://github.com/ruben007ecba/lung-cancer-detection-and-classification/blob/main/avg_accuracy.p): `avg_accuracy.p`
- [Precision Metric](https://github.com/ruben007ecba/lung-cancer-detection-and-classification/blob/main/avg_precision.p): `avg_precision.p`
- [ROC Metric](https://github.com/ruben007ecba/lung-cancer-detection-and-classification/blob/main/avg_roc.p): `avg_roc.p`
