# aokdata/land_cover_classification architecture

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

- Interactive diagram: https://gitdiagram.com/aokdata/land_cover_classification
- Repository: https://github.com/aokdata/land_cover_classification

## Overview

##### Project Components and Purpose
- Project Type: This is a machine learning / deep-learning project centered on satellite image classification. It uses a fine-tuned VGG16 model (with additional Dense and Dropout layers) to classify RGB satellite images into 10 distinct land cover classes.
- Purpose: The model helps in identifying land cover changes over time (e.g., deforestation, industrial development) for organizations like The Nature Conservancy.

##### File Structure and Its Implications
- File Tree Overview:
- The main files include a Jupyter Notebook (Land_Cover_Classification_Notebook.ipynb) that contains the core analysis, training, and evaluation code.
- A “data” directory which is organized into training and testing splits, further subdivided by each land cover class.
- Additional supporting files like README.md and presentation.pdf.
- Architectural Implication:
- The repository is self-contained with data preparation, model training, and evaluation encapsulated within the notebook.
- The system is organized in a “single/scripted” experiment style rather than a production-ready service, focused more on research and experimentation.

##### Key Components
a. Data Ingestion and Preparation:
- Data Source: “data” folder with subdirectories for training and testing (each further divided by class labels).
b. Model Training Pipeline:
- Model Selection: “Baseline Model” vs. “Fine Tuned VGG16 Model” (focus particularly on the final model architecture that includes the pre-trained VGG16 base and custom Dense/Dropout layers).
- Training Process: Include components indicating loss/accuracy monitoring (as reflected in the images from the README).
c. Evaluation and Results:
- Data Flow of predictions being compared against true labels.
d. Business Use Case Integration:

## Diagram (Mermaid)

```mermaid
graph TD
    %% Data Repository Subgraph
    subgraph "Data Repository"
        dir1["Train Data"]:::data
        dir2["Test Data"]:::data
    end

    %% Data Preprocessing
    dp["Data Preprocessing & Augmentation"]:::preprocess

    %% Notebook Runner
    nbook["Notebook Runner"]:::notebook

    %% Model Training
    mt["Model Training (Fine-Tuned VGG16)"]:::model

    %% Evaluation & Metrics
    eval["Evaluation & Metrics"]:::eval

    %% Decision Support Subgraph
    subgraph "Decision Support for Deforestation Monitoring"
        ds1["Presentation Analysis"]:::business
        ds2["Documentation"]:::business
    end

    %% Data Flow Connections (Vertical)
    dir1 --> dp
    dir2 --> dp
    dp --> nbook
    nbook --> mt
    mt --> eval
    eval --> ds1
    eval --> ds2

    %% Click Events
    click dir1 "https://github.com/aokdata/land_cover_classification/tree/main/data/split/train"
    click dir2 "https://github.com/aokdata/land_cover_classification/tree/main/data/split/test"
    click dp "https://github.com/aokdata/land_cover_classification/blob/main/Land_Cover_Classification_Notebook.ipynb"
    click nbook "https://github.com/aokdata/land_cover_classification/blob/main/Land_Cover_Classification_Notebook.ipynb"
    click mt "https://github.com/aokdata/land_cover_classification/blob/main/Land_Cover_Classification_Notebook.ipynb"
    click eval "https://github.com/aokdata/land_cover_classification/blob/main/Land_Cover_Classification_Notebook.ipynb"
    click ds1 "https://github.com/aokdata/land_cover_classification/blob/main/presentation.pdf"
    click ds2 "https://github.com/aokdata/land_cover_classification/blob/main/README.md"

    %% Style Classes
    classDef data fill:#CCEEFF,stroke:#333,stroke-width:2px;
    classDef preprocess fill:#B3E5FC,stroke:#333,stroke-width:2px;
    classDef notebook fill:#FFF9C4,stroke:#333,stroke-width:2px;
    classDef model fill:#C8E6C9,stroke:#333,stroke-width:2px;
    classDef eval fill:#FFCC80,stroke:#333,stroke-width:2px;
    classDef business fill:#E1BEE7,stroke:#333,stroke-width:2px;
```
