# aravindustries/limb architecture

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

- Interactive diagram: https://gitdiagram.com/aravindustries/limb
- Repository: https://github.com/aravindustries/limb

## Overview

##### Project Type and Purpose
- The project focuses on simulation, data processing, and experimental evaluation of machine learning techniques in mmWave beamforming.
- Key areas include simulation of beamforming scenarios, data aggregation and processing from real or synthetic experiments, visualization and interactive analysis of beam patterns, and testbed implementations.
- The system is research-oriented with legacy components, interactive notebooks, multiple simulation approaches, and data curation layers.

##### Main Components to Identify
a. Data Sources and Storage:
- “data” – repositories for aggregated training data, gain profiles, and spatial profiles, representing raw and processed measurement data.
- “archive” – legacy simulation scripts and models which can be annotated as earlier experiments or prototypes.
b. Data Processing & Pre-processing Layer:
- “data_processing” – notebooks and scripts that aggregate, filter, and transform raw data into formats required for simulation and ML training.
c. Visualization and Analysis:
- “beambook” – interactive notebooks and scripts for visualizing beam patterns and antenna gains, offering insights into beam characteristics.
d. Simulation Core:
- “simulation” – contains various simulation scripts (such as agile beamforming, CNN-based simulation, MUSIC algorithm, and multi-beam scenarios) and related utilities.
e. Experimental/Testbed Implementation:
- “tb_implementation” – includes scripts for real-world testbed experiments (data filtering, gain evaluation, machine learning pipelines with MLP, etc.).
f. Additional Experimentation Area:
- “experiment” – experimental scripts likely focused on validating beamforming designs (e.g., IQ profile simulations, multi-beam tests).

##### Relationships and Interactions
- Data flows from collection (in the “data” folder) through processing (handled by “data_processing”) into simulation models (“simulation”) where beamforming algorithms are tested.
- The simulation results and intermediate outputs are then used for visualization (via “beambook”) and further experimental verification (“experiment” and “tb_implementation”).
- Legacy algorithms and prototypes stored in “archive” provide context, historical comparison, or fallback options for the current workflow.
- Interactive notebooks and visualization modules indicate a feedback loop that allows adjustments based on visualized outputs and performance metrics.

##### Architectural Patterns and Design Principles
- Modular Decomposition: The system is divided into distinct functional areas – data ingestion, processing, simulation, visualization, and testbed evaluation.
- Data Pipeline: A sequential pipeline structure where raw data is ingested, processed, fed into simulation algorithms, and finally displayed or evaluated with ML models.
- Experimentation Loop: Iterative feedback (partly via interactive notebooks) to refine beamforming strategies based on simulation and testbed performance.
- Legacy/System Evolution: Separate “archive” folder to maintain older versions/experiments, indicating an evolutionary design with backward compatibility or comparative evaluation.

##### Relevant Technologies/Frameworks
- Python is the primary language with use of Jupyter notebooks for interactive visualization.
- Machine Learning scripts (e.g., “trainMLP.ppy”, “mlp.py”) indicate ML libraries and frameworks might be in play.
- Data processing involves CSV files and joblib files (for model persistence), suggesting use of pandas, numpy, and scikit-learn.
- Specialized simulation algorithms (e.g., MUSIC, CNN-based approaches) are intermingled within simulation modules.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Data Acquisition & Storage
    subgraph "Data Acquisition & Storage"
        data_raw(("Raw Data")):::data
        data_archive(("Legacy Archive")):::data
    end

    %% Data Pre-Processing
    subgraph "Data Pre-Processing"
        processing["Data Processing"]:::processing
    end

    %% Simulation Engine
    subgraph "Simulation Engine"
        simulation["Simulation Core"]:::simulation
        experiment["Experimental Simulation"]:::simulation
    end

    %% Visualization & Analysis
    subgraph "Visualization & Analysis"
        visualization["Beam Visualization"]:::visualization
    end

    %% Testbed Implementation
    subgraph "Testbed Implementation"
        testbed["Testbed Implementation"]:::testbed
    end

    %% Data flow arrows
    data_raw -->|"feeds"| processing
    data_archive -->|"provides legacy data"| processing
    processing -->|"processed data"| simulation
    processing -->|"processed data"| experiment
    simulation -->|"simulation results"| visualization
    simulation -->|"simulation results"| testbed
    experiment -->|"experimental outputs"| visualization

    %% Iterative feedback loop from visualization to processing
    visualization -- "feedback" --> processing

    %% Click Events
    click data_raw "https://github.com/aravindustries/limb/tree/main/data"
    click data_archive "https://github.com/aravindustries/limb/tree/main/archive"
    click processing "https://github.com/aravindustries/limb/tree/main/data_processing"
    click simulation "https://github.com/aravindustries/limb/tree/main/simulation"
    click experiment "https://github.com/aravindustries/limb/tree/main/experiment"
    click visualization "https://github.com/aravindustries/limb/tree/main/beambook"
    click testbed "https://github.com/aravindustries/limb/tree/main/tb_implementation"

    %% Styles
    classDef data fill:#ADD8E6,stroke:#000,stroke-width:2px;
    classDef processing fill:#90EE90,stroke:#000,stroke-width:2px;
    classDef simulation fill:#FFA07A,stroke:#000,stroke-width:2px;
    classDef visualization fill:#DDA0DD,stroke:#000,stroke-width:2px;
    classDef testbed fill:#F5DEB3,stroke:#000,stroke-width:2px;
```
