# manjushatr/customerbehavioranalysis architecture

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

- Interactive diagram: https://gitdiagram.com/manjushatr/customerbehavioranalysis
- Repository: https://github.com/manjushatr/customerbehavioranalysis

## Overview

##### Project type and purpose
- From the file tree and the README, this is a data-mining / customer-behavior analysis project composed almost entirely of Jupyter notebooks (with one R script).
- Its goal is to ingest customer data, perform data understanding, feature engineering, then apply clustering, association-rule mining, classification (loan-decision modeling), and finally produce insights and visualizations.

##### File structure
- Top-level notebooks reflect distinct phases:
- DataUnderstanding.ipynb
- CustomerBehaviorAnalysis (parts 1–4)
- ClusteringAnalysis.ipynb
- AssociationRules.ipynb
- LoanDM.ipynb (loan decision modeling)
- lazypredictsample.ipynb (automated ML experiment)
- “FinalWork” subdirectory re-organizes select notebooks and includes the raw CSV in FinalWork/Data.
- aprioriassign.R shows there is at least one R-based association rule implementation.
- README.md gives only the project title.

##### Extract additional insights from the README
- We infer the tech stack: Python, Jupyter, pandas, scikit-learn, mlxtend (for apriori), plus R for one step.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Data Layer
    DS["Raw Data (CSV)"]:::data
    click DS "https://github.com/manjushatr/customerbehavioranalysis/blob/main/FinalWork/Data/Customer_Behaviour_df.csv"

    %% Preprocessing Stage
    DS -->|".csv"| Ingest["Data Ingestion & Preprocessing<br>DataUnderstanding.ipynb"]:::compute
    click Ingest "https://github.com/manjushatr/customerbehavioranalysis/blob/main/DataUnderstanding.ipynb"

    %% EDA Stage
    Ingest -->|DataFrame| EDA["Exploratory Data Analysis<br>CustomerBehaviorAnalysis_part1.ipynb"]:::compute
    click EDA "https://github.com/manjushatr/customerbehavioranalysis/blob/main/CustomerBehaviorAnalysis_part1.ipynb"

    %% Feature Engineering Stage
    EDA -->|EDA Data| FE["Feature Engineering & Transform<br>CustomerBehaviorAnalysis__Part3.ipynb,<br>customerbehavioranalysis__part4.ipynb"]:::compute
    click FE "https://github.com/manjushatr/customerbehavioranalysis/blob/main/CustomerBehaviorAnalysis__Part3.ipynb"
    click FE "https://github.com/manjushatr/customerbehavioranalysis/blob/main/customerbehavioranalysis__part4.ipynb"

    %% Modeling Branches
    FE --> FE_CLUSTER["Clustering Engine<br>ClusteringAnlaysis.ipynb"]:::compute
    click FE_CLUSTER "https://github.com/manjushatr/customerbehavioranalysis/blob/main/ClusteringAnlaysis.ipynb"

    FE --> ASSOC["Association-Rule Engine<br>AssociationRules.ipynb"]:::compute
    click ASSOC "https://github.com/manjushatr/customerbehavioranalysis/blob/main/AssociationRules.ipynb"
    ASSOC --> ASSOC_R["aprioriassign.R"]:::rscript
    click ASSOC_R "https://github.com/manjushatr/customerbehavioranalysis/blob/main/aprioriassign.R"

    FE --> CLASS["Classification Engine<br>LoanDM.ipynb,<br>lazypredictsample.ipynb"]:::compute
    click CLASS "https://github.com/manjushatr/customerbehavioranalysis/blob/main/LoanDM.ipynb"
    click CLASS "https://github.com/manjushatr/customerbehavioranalysis/blob/main/lazypredictsample.ipynb"

    %% Reporting & Visualization
    FE_CLUSTER -->|clusters| REPORT
    ASSOC_R -->|rules| REPORT
    CLASS -->|models| REPORT

    subgraph "Reporting & Visualization"
        REPORT["FinalWork Notebooks"]:::report
    end
    click REPORT "https://github.com/manjushatr/customerbehavioranalysis/blob/main/FinalWork/CustomerBehaviorAnalysis.ipynb"
    click REPORT "https://github.com/manjushatr/customerbehavioranalysis/blob/main/FinalWork/CustomerBehaviorAnalysisPart2.ipynb"
    click REPORT "https://github.com/manjushatr/customerbehavioranalysis/blob/main/FinalWork/CustomerBehaviorAnalysisPart3.ipynb"
    click REPORT "https://github.com/manjushatr/customerbehavioranalysis/blob/main/FinalWork/CustomerBehaviorAnalysisPart4.ipynb"

    %% Styles
    classDef data fill:#bbf,stroke:#333,stroke-width:1px;
    classDef compute fill:#bfb,stroke:#333,stroke-width:1px;
    classDef report fill:#fbf,stroke:#333,stroke-width:1px;
    classDef rscript fill:#dfd,stroke:#333,stroke-width:1px;
```
