# teja-1403/cervical_cancer-detection-using-python architecture

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

- Interactive diagram: https://gitdiagram.com/teja-1403/cervical_cancer-detection-using-python
- Repository: https://github.com/teja-1403/cervical_cancer-detection-using-python

## Overview

##### Main Components
- Data Input/Dataset: Represent the training and testing image datasets from the SIPaKMeD database. Even if the dataset isn’t stored directly in the repo, indicate that the system consumes pre-labeled images (with separate training and testing sets).
- Preprocessing Module: This component handles image preprocessing using methods like SLIC-based superpixel segmentation and Canny edge detection to enhance feature extraction.
- Performance Evaluation: A module to compute and compare performance metrics (accuracy, precision, recall, f1-score) as well as possibly generate visual evaluation metrics (e.g., ROC curves).

- Optionally, include a feedback loop (if applicable) that illustrates how performance metrics might influence re-tuning or future preprocessing tweaks.

##### Architectural Patterns and Design Principles
- Separation of Concerns: Clearly delineate between the image processing (preprocessing) and the model evaluation parts.

##### Relevant Technologies
- A note on using Jupyter Notebook (CCD.ipynb) to orchestrate the pipeline.
- Optionally, reference any libraries used for preprocessing (e.g., scikit-image for Canny edge detection or SLIC segmentation).

##### Detailed Architectural Elements
- Preprocessing steps as a dedicated block with sub-steps (SLIC and Canny) if desired.

Happy diagramming!

## Diagram (Mermaid)

```mermaid
flowchart TD
    DataInput(("Raw Dataset (SIPaKMeD)")):::input
    Preprocessing["Image Preprocessing (SLIC & Canny)"]:::processing
    DataInput -->|"ingest"| Preprocessing

    subgraph "CNN Model Selection & Evaluation Module"
        ResNet50["CNN Model - ResNet50"]:::model
        VGG16["CNN Model - VGG16"]:::model
        InceptionV3["CNN Model - InceptionV3"]:::model
        EfficientNetB0["CNN Model - EfficientNetB0"]:::model
        EfficientNetB7["CNN Model - EfficientNetB7"]:::model
        MobileNetV2["CNN Model - MobileNetV2"]:::model
        MobileNetV3["CNN Model - MobileNetV3"]:::model
    end

    Preprocessing -->|"preprocessed"| ResNet50
    Preprocessing -->|"preprocessed"| VGG16
    Preprocessing -->|"preprocessed"| InceptionV3
    Preprocessing -->|"preprocessed"| EfficientNetB0
    Preprocessing -->|"preprocessed"| EfficientNetB7
    Preprocessing -->|"preprocessed"| MobileNetV2
    Preprocessing -->|"preprocessed"| MobileNetV3

    ResNet50 -->|"evaluation"| PerformanceE
    VGG16 -->|"evaluation"| PerformanceE
    InceptionV3 -->|"evaluation"| PerformanceE
    EfficientNetB0 -->|"evaluation"| PerformanceE
    EfficientNetB7 -->|"evaluation"| PerformanceE
    MobileNetV2 -->|"evaluation"| PerformanceE
    MobileNetV3 -->|"evaluation"| PerformanceE

    PerformanceE["Performance Evaluation (Metrics&Visuals)"]:::evaluation
    PerformanceE -->|"feedback"| Preprocessing

    click DataInput "https://github.com/teja-1403/cervical_cancer-detection-using-python/blob/main/CCD.ipynb"
    click Preprocessing "https://github.com/teja-1403/cervical_cancer-detection-using-python/blob/main/CCD.ipynb"
    click ResNet50 "https://github.com/teja-1403/cervical_cancer-detection-using-python/blob/main/CCD.ipynb"
    click VGG16 "https://github.com/teja-1403/cervical_cancer-detection-using-python/blob/main/CCD.ipynb"
    click InceptionV3 "https://github.com/teja-1403/cervical_cancer-detection-using-python/blob/main/CCD.ipynb"
    click EfficientNetB0 "https://github.com/teja-1403/cervical_cancer-detection-using-python/blob/main/CCD.ipynb"
    click EfficientNetB7 "https://github.com/teja-1403/cervical_cancer-detection-using-python/blob/main/CCD.ipynb"
    click MobileNetV2 "https://github.com/teja-1403/cervical_cancer-detection-using-python/blob/main/CCD.ipynb"
    click MobileNetV3 "https://github.com/teja-1403/cervical_cancer-detection-using-python/blob/main/CCD.ipynb"
    click PerformanceE "https://github.com/teja-1403/cervical_cancer-detection-using-python/blob/main/CCD.ipynb"

    classDef input fill:#ADD8E6,stroke:#0000FF,stroke-width:2px;
    classDef processing fill:#90EE90,stroke:#008000,stroke-width:2px;
    classDef model fill:#FFA500,stroke:#FF8C00,stroke-width:2px;
    classDef evaluation fill:#D8BFD8,stroke:#800080,stroke-width:2px;
```
