# mehdi-moha/academic-portfolio architecture

> Architecture diagram of the GitHub repository mehdi-moha/academic-portfolio, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-05-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mehdi-moha/academic-portfolio
- Repository: https://github.com/mehdi-moha/academic-portfolio

## Overview

1. **Repository-level shape**
   This is not a single software system; it is a curated archive of many independent academic projects. The main architectural boundary is the top-level academic stage: **AAS**, **BSc**, **MSc-1**, and **MSc-2**. Each subtree is a collection of standalone assignments, labs, or research projects with their own code, inputs, outputs, and reports.

2. **Overall data/model flow**
   The dominant flow across the repository is: **problem statement or course brief → local code → local dataset/input artifacts → generated outputs/reports**. Most projects are self-contained and do not call into other folders. Outputs are typically saved alongside the source as PDFs, images, figures, compiled binaries, or simulation files.

3. **AAS: computer logic circuits lab**
   The AAS area is a hardware-design lab archive. It contains many numbered lab folders with circuit files such as schematic, simulation, netlist, testbench, and result artifacts. The important boundary here is between **logical circuit specification** and **simulation/result files**; the folders are organized per experiment and are largely tool-generated artifacts rather than reusable software modules.

4. **BSc: foundational software and systems work**
   The BSc section groups classic undergraduate projects in **algorithms**, **compiler design**, **artificial intelligence**, **electronic lab work**, **microprocessor work**, **computer architecture**, and a **bachelor project**. This stage mixes procedural programming, low-level systems, and hardware description. The bachelor project is the most architecture-heavy item: a **Mano Basic Computer** implementation in **VHDL**, with components such as registers, ALU-related blocks, control unit, memory, and bus logic.

5. **BSc hardware/simulation boundary**
   Several BSc subprojects are tied to external engineering tools and file formats rather than application runtime code. Examples include VHDL modules, assembly sources, Proteus/DSN-style project files, and generated binaries/listings. In the architecture diagram, these should be shown as **design-time artifacts and simulators**, not as deployed services.

6. **MSc-1: signal/image processing and early AI**
   MSc-1 is dominated by **MATLAB-based scientific computing**. The main clusters are **Digital Image Processing** and **Neural Networks**. These projects typically take in image files or numeric datasets, apply local algorithms such as filtering, histogram processing, metric calculation, or neural models, and then emit plots, PDFs, or experiment reports.

7. **MSc-2: advanced ML and research projects**
   MSc-2 is the broadest and most research-oriented area. It includes **computer vision**, **data mining**, **deep learning**, **machine learning**, **statistical pattern recognition**, **evolutionary computation**, **fuzzy systems**, and **robotics**. These projects usually combine notebooks/scripts with datasets and produce analytical outputs, trained models, evaluation results, and reports.

8. **Common computational pattern in MSc-2**
   The repeated architecture in MSc-2 is: **dataset file → preprocessing/modeling script or notebook → evaluation/visualization artifacts**. Typical inputs are CSV, MAT, XLS/XLSX, or image data; typical outputs are performance metrics, figures, generated samples, and project reports. Many folders also contain both Python and MATLAB implementations of related experiments.

9. **Independent projects as research islands**
   The “independent-projects” area in MSc-2 contains more complete end-to-end experiments such as image captioning, chest X-ray pneumonia detection, U-Net segmentation, and image denoising. These are still isolated projects, but they are closer to modern ML pipelines: data ingestion, model training/inference, and report generation. They should be diagrammed as separate research islands rather than a shared platform.

10. **Code and artifact reuse pattern**
   There is some repeated utility naming across projects—functions for covariance, distance, sigmoid, metrics, filtering, and evaluation—but these are generally copied locally per assignment rather than maintained as a shared library. So the repository’s architecture is **distributed and duplicated by design**, with each project owning its own implementation and outputs.

11. **Technology boundaries that matter**
   The main technologies are **MATLAB**, **Python**, **C/C++**, **Pascal**, **VHDL**, **assembly**, and notebook-based experimentation. The technology choice usually maps directly to the academic domain: MATLAB for scientific computation, Python for CV/ML projects, VHDL for digital hardware, and assembly/Pascal/C++ for low-level or algorithmic coursework.

12. **How to draw the diagram**
   The most accurate diagram would show a **single repository shell** containing multiple **independent subtrees**, each subtree containing:
   - source code or design files,
   - local datasets or lab inputs,
   - generated artifacts,
   - documentation/reports.
   There is no central backend, no shared runtime, and no global data pipeline linking the academic levels together.

Main entry points: [`MSc-2`](https://github.com/mehdi-moha/academic-portfolio/tree/main/MSc-2) (MSc-2), [`BSc`](https://github.com/mehdi-moha/academic-portfolio/tree/main/BSc) (BSc), [`AAS/computer-logic-circuits-lab`](https://github.com/mehdi-moha/academic-portfolio/tree/main/AAS/computer-logic-circuits-lab) (Lab sets), [`MSc-1`](https://github.com/mehdi-moha/academic-portfolio/tree/main/MSc-1) (MSc-1)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_repo["Repository"]
  node_repo_root["Archive<br/>repo shell"]
end

subgraph group_aas["AAS"]
  node_aas_stage["AAS<br/>academic stage"]
  node_aas_labs["Lab sets<br/>circuit experiments"]
  node_aas_design["Circuit design<br/>logic spec"]
  node_aas_sim["Sim outputs<br/>tool artifacts"]
end

subgraph group_bsc["BSc"]
  node_bsc_stage["BSc<br/>academic stage"]
  node_bsc_algo["Algorithms<br/>pascal labs"]
  node_bsc_compiler["Compiler design<br/>parser project"]
  node_bsc_ai["Maze solver<br/>C++ AI"]
  node_bsc_hw["Hardware labs<br/>design-time tools"]
  node_bsc_bachelor["Basic computer<br/>VHDL system"]
end

subgraph group_msc1["MSc-1"]
  node_msc1_stage["MSc-1<br/>academic stage"]
  node_msc1_img["Image processing<br/>MATLAB lab"]
  node_msc1_nn["Neural nets<br/>MATLAB models"]
end

subgraph group_msc2["MSc-2"]
  node_msc2_stage["MSc-2<br/>academic stage"]
  node_msc2_cv["Vision<br/>Python+notebook"]
  node_msc2_dm["Data mining<br/>MATLAB research"]
  node_msc2_dl["Deep learning<br/>mixed ML"]
  node_msc2_ml["Machine learning<br/>MATLAB+Python"]
  node_msc2_spr["Pattern rec.<br/>MATLAB research"]
  node_msc2_ind["Research islands<br/>independent projects"]
end

node_repo_root -->|"contains"| node_aas_stage
node_repo_root -->|"contains"| node_bsc_stage
node_repo_root -->|"contains"| node_msc1_stage
node_repo_root -->|"contains"| node_msc2_stage
node_aas_stage -->|"organizes"| node_aas_labs
node_aas_labs -->|"inputs"| node_aas_design
node_aas_labs -->|"outputs"| node_aas_sim
node_bsc_stage -->|"includes"| node_bsc_algo
node_bsc_stage -->|"includes"| node_bsc_compiler
node_bsc_stage -->|"includes"| node_bsc_ai
node_bsc_stage -->|"includes"| node_bsc_hw
node_bsc_stage -->|"includes"| node_bsc_bachelor
node_bsc_algo -.->|"same pattern"| node_bsc_compiler
node_bsc_bachelor -.->|"interfaces with"| node_bsc_hw
node_msc1_stage -->|"includes"| node_msc1_img
node_msc1_stage -->|"includes"| node_msc1_nn
node_msc1_img -.->|"shared method"| node_msc1_nn
node_msc2_stage -->|"includes"| node_msc2_cv
node_msc2_stage -->|"includes"| node_msc2_dm
node_msc2_stage -->|"includes"| node_msc2_dl
node_msc2_stage -->|"includes"| node_msc2_ml
node_msc2_stage -->|"includes"| node_msc2_spr
node_msc2_stage -->|"includes"| node_msc2_ind
node_msc2_cv -.->|"overlaps"| node_msc2_ind
node_msc2_ml -.->|"shared pattern"| node_msc2_spr
node_msc2_dl -.->|"shared pattern"| node_msc2_ind

click node_aas_stage "https://github.com/mehdi-moha/academic-portfolio/tree/main/AAS"
click node_aas_labs "https://github.com/mehdi-moha/academic-portfolio/tree/main/AAS/computer-logic-circuits-lab"
click node_bsc_stage "https://github.com/mehdi-moha/academic-portfolio/tree/main/BSc"
click node_bsc_algo "https://github.com/mehdi-moha/academic-portfolio/tree/main/BSc/algorithms-design"
click node_bsc_compiler "https://github.com/mehdi-moha/academic-portfolio/tree/main/BSc/principles-of-compiler-design"
click node_bsc_ai "https://github.com/mehdi-moha/academic-portfolio/tree/main/BSc/artificial-intelligence/MazeSolver"
click node_bsc_bachelor "https://github.com/mehdi-moha/academic-portfolio/tree/main/BSc/bachelor-project"
click node_msc1_stage "https://github.com/mehdi-moha/academic-portfolio/tree/main/MSc-1"
click node_msc1_img "https://github.com/mehdi-moha/academic-portfolio/tree/main/MSc-1/Digital-Image-Processing"
click node_msc1_nn "https://github.com/mehdi-moha/academic-portfolio/tree/main/MSc-1/Neural-Networks"
click node_msc2_stage "https://github.com/mehdi-moha/academic-portfolio/tree/main/MSc-2"
click node_msc2_cv "https://github.com/mehdi-moha/academic-portfolio/tree/main/MSc-2/computer-vision"
click node_msc2_dm "https://github.com/mehdi-moha/academic-portfolio/tree/main/MSc-2/data-mining"
click node_msc2_dl "https://github.com/mehdi-moha/academic-portfolio/tree/main/MSc-2/deep-learning"
click node_msc2_ml "https://github.com/mehdi-moha/academic-portfolio/tree/main/MSc-2/machine-learning"
click node_msc2_spr "https://github.com/mehdi-moha/academic-portfolio/tree/main/MSc-2/statistical-pattern-recognition"
click node_msc2_ind "https://github.com/mehdi-moha/academic-portfolio/tree/main/MSc-2/independent‑projects"

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_repo_root toneBlue
class node_aas_stage,node_aas_labs,node_aas_design,node_aas_sim toneAmber
class node_bsc_stage,node_bsc_algo,node_bsc_compiler,node_bsc_ai,node_bsc_hw,node_bsc_bachelor toneMint
class node_msc1_stage,node_msc1_img,node_msc1_nn toneRose
class node_msc2_stage,node_msc2_cv,node_msc2_dm,node_msc2_dl,node_msc2_ml,node_msc2_spr,node_msc2_ind toneIndigo
```

## Components

### Repository

Top-level archive shell containing independent academic stages.

- **Archive**: repo shell · Curated collection of standalone academic projects with no shared runtime.

### AAS

Hardware logic-circuit lab archive with per-lab design and simulation artifacts.

- [AAS](https://github.com/mehdi-moha/academic-portfolio/tree/main/AAS): academic stage · Computer logic circuits lab materials and experiment folders. · `AAS`
- [Lab sets](https://github.com/mehdi-moha/academic-portfolio/tree/main/AAS/computer-logic-circuits-lab): circuit experiments · Numbered lab folders containing schematic, netlist, simulation, and result files. · `AAS/computer-logic-circuits-lab`
- **Circuit design**: logic spec · Per-experiment source schematics and circuit descriptions.
- **Sim outputs**: tool artifacts · Generated outputs such as probe data, reports, and tool exports.

### BSc

Undergraduate coursework spanning algorithms, compilers, AI, low-level systems, and VHDL hardware.

- [BSc](https://github.com/mehdi-moha/academic-portfolio/tree/main/BSc): academic stage · Foundational software, systems, and hardware coursework. · `BSc`
- [Algorithms](https://github.com/mehdi-moha/academic-portfolio/tree/main/BSc/algorithms-design): pascal labs · Standalone Pascal programs compiled into local executables and outputs. · `BSc/algorithms-design`
- [Compiler design](https://github.com/mehdi-moha/academic-portfolio/tree/main/BSc/principles-of-compiler-design): parser project · Grammar-driven Pascal compiler coursework with generated program artifacts. · `BSc/principles-of-compiler-design`
- [Maze solver](https://github.com/mehdi-moha/academic-portfolio/tree/main/BSc/artificial-intelligence/MazeSolver): C++ AI · Small AI-style search project built around local data and an executable. · `BSc/artificial-intelligence/MazeSolver`
- **Hardware labs**: design-time tools · Electronic, microprocessor, and computer-architecture lab projects in Proteus and assembler toolchains.
- [Basic computer](https://github.com/mehdi-moha/academic-portfolio/tree/main/BSc/bachelor-project): VHDL system · Mano Basic Computer implementation with registers, ALU, control, memory, and bus logic. · `BSc/bachelor-project`

### MSc-1

MATLAB-centered scientific computing in image processing and neural networks.

- [MSc-1](https://github.com/mehdi-moha/academic-portfolio/tree/main/MSc-1): academic stage · MATLAB-based image processing and neural-network work. · `MSc-1`
- [Image processing](https://github.com/mehdi-moha/academic-portfolio/tree/main/MSc-1/Digital-Image-Processing): MATLAB lab · Filtering, histogram, metrics, and image experiment scripts with sample images and PDF outputs. · `MSc-1/Digital-Image-Processing`
- [Neural nets](https://github.com/mehdi-moha/academic-portfolio/tree/main/MSc-1/Neural-Networks): MATLAB models · Sine, regression, and Hopfield experiments over local datasets and figures. · `MSc-1/Neural-Networks`

### MSc-2

Research-oriented ML, vision, pattern recognition, robotics, and independent projects.

- [MSc-2](https://github.com/mehdi-moha/academic-portfolio/tree/main/MSc-2): academic stage · Advanced ML, vision, pattern recognition, robotics, and research projects. · `MSc-2`
- [Vision](https://github.com/mehdi-moha/academic-portfolio/tree/main/MSc-2/computer-vision): Python+notebook · Computer-vision homework and final project pipelines mixing notebooks and scripts. · `MSc-2/computer-vision`
- [Data mining](https://github.com/mehdi-moha/academic-portfolio/tree/main/MSc-2/data-mining): MATLAB research · ChiMerge, decision-tree, and clustering-style assignments with local datasets and reports. · `MSc-2/data-mining`
- [Deep learning](https://github.com/mehdi-moha/academic-portfolio/tree/main/MSc-2/deep-learning): mixed ML · MLP, GAN, VAE, captioning, and image-model experiments over MAT/CSV datasets. · `MSc-2/deep-learning`
- [Machine learning](https://github.com/mehdi-moha/academic-portfolio/tree/main/MSc-2/machine-learning): MATLAB+Python · Classical ML assignments split across MATLAB and Python implementations. · `MSc-2/machine-learning`
- [Pattern rec.](https://github.com/mehdi-moha/academic-portfolio/tree/main/MSc-2/statistical-pattern-recognition): MATLAB research · Statistical pattern recognition assignments and final project using CSV/XLS data. · `MSc-2/statistical-pattern-recognition`
- [Research islands](https://github.com/mehdi-moha/academic-portfolio/tree/main/MSc-2/independent‑projects): independent projects · End-to-end standalone projects such as captioning, pneumonia detection, denoising, and U-Net segmentation. · `MSc-2/independent‑projects`

## Connections

- Archive → AAS: contains · Repository shell contains the AAS archive.
- Archive → BSc: contains · Repository shell contains the BSc archive.
- Archive → MSc-1: contains · Repository shell contains the MSc-1 archive.
- Archive → MSc-2: contains · Repository shell contains the MSc-2 archive.
- AAS → Lab sets: organizes · AAS is organized as numbered circuit labs.
- Lab sets → Circuit design: inputs · Schematics and circuit files define each experiment.
- Lab sets → Sim outputs: outputs · Simulation files and probe/result artifacts are produced per lab.
- BSc → Algorithms: includes · BSc includes algorithm design projects.
- BSc → Compiler design: includes · BSc includes compiler-design coursework.
- BSc → Maze solver: includes · BSc includes the maze-solver AI project.
- BSc → Hardware labs: includes · BSc includes hardware and architecture labs.
- BSc → Basic computer: includes · BSc includes the VHDL basic-computer bachelor project.
- Algorithms → Compiler design: same pattern · These assignments share local source-to-binary coursework structure.
- Basic computer → Hardware labs: interfaces with · The VHDL computer sits near other low-level hardware/simulation work.
- MSc-1 → Image processing: includes · MSc-1 includes image-processing exercises.
- MSc-1 → Neural nets: includes · MSc-1 includes neural-network experiments.
- Image processing → Neural nets: shared method · Both rely on MATLAB scripts, local data, and plotted/pdf outputs.
- MSc-2 → Vision: includes · MSc-2 includes computer-vision projects.
- MSc-2 → Data mining: includes · MSc-2 includes data-mining projects.
- MSc-2 → Deep learning: includes · MSc-2 includes deep-learning projects.
- MSc-2 → Machine learning: includes · MSc-2 includes machine-learning assignments.
- MSc-2 → Pattern rec.: includes · MSc-2 includes statistical-pattern-recognition work.
- MSc-2 → Research islands: includes · MSc-2 includes standalone research projects.
- Vision → Research islands: overlaps · Both are Python/notebook-driven experiment pipelines.
- Machine learning → Pattern rec.: shared pattern · Both use local datasets, MATLAB code, and evaluation artifacts.
- Deep learning → Research islands: shared pattern · Both use datasets, notebooks/scripts, and generated results.
