# keshav-077/ai-driven-border-security-and-strategic-management-system architecture

> Architecture diagram of the GitHub repository keshav-077/ai-driven-border-security-and-strategic-management-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/keshav-077/ai-driven-border-security-and-strategic-management-system
- Repository: https://github.com/keshav-077/ai-driven-border-security-and-strategic-management-system

## Overview

This repository documents a border-surveillance prototype: camera feeds are analyzed for weapons and people, with separate face identification and cross-camera re-identification capabilities. Training notebooks and dataset configuration files support the detection models; result artifacts record evaluation. The README describes the integrations, but no source excerpts were available to verify runtime call ownership or detailed wiring.

Main entry points: [`trainingpersons.ipynb`](https://github.com/keshav-077/ai-driven-border-security-and-strategic-management-system/blob/main/trainingpersons.ipynb) (Person model training), [`trainingweapons&Mini Project.ipynb`](https://github.com/keshav-077/ai-driven-border-security-and-strategic-management-system/blob/main/trainingweapons%26Mini%20Project.ipynb) (Weapon model training), [`data.yaml`](https://github.com/keshav-077/ai-driven-border-security-and-strategic-management-system/blob/main/data.yaml) (Dataset config), [`Faces.ipynb`](https://github.com/keshav-077/ai-driven-border-security-and-strategic-management-system/blob/main/Faces.ipynb) (Face detection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingest["Camera Inputs"]
  node_camera(("IP/Webcam feeds"))
end

subgraph group_analysis["Video Analysis"]
  node_weapon_detect["Weapon detection"]
  node_person_detect["Person detection"]
  node_face_detect["Face detection<br/>[Faces.ipynb]"]
  node_face_classify["Face classification<br/>[Faces.ipynb]"]
  node_reid["Person re-identification"]
end

subgraph group_training["Model Training"]
  node_person_data["Person dataset config<br/>[dataperson.yaml]"]
  node_weapon_data["Weapon dataset config<br/>[dataweapon.yaml]"]
  node_default_data["Dataset config<br/>[data.yaml]"]
  node_person_training["Person model training"]
  node_weapon_training["Weapon model training"]
  node_yolo_weights["YOLO weights<br/>[yolov8n.pt]"]
end

subgraph group_evaluation["Evaluation"]
  node_person_results["Person results<br/>[results.csv]"]
  node_weapon_results["Weapon results<br/>[results.csv]"]
  node_evaluation_outputs["Final results"]
end

node_camera -->|"video input"| node_weapon_detect
node_camera -->|"video input"| node_person_detect
node_camera -->|"video input"| node_face_detect
node_camera -->|"camera streams"| node_reid
node_face_detect -->|"face regions"| node_face_classify
node_person_data -->|"configures data"| node_person_training
node_default_data -->|"configures data"| node_person_training
node_weapon_data -->|"configures data"| node_weapon_training
node_default_data -->|"configures data"| node_weapon_training
node_person_training -->|"trained model"| node_person_detect
node_weapon_training -->|"trained model"| node_weapon_detect
node_yolo_weights -.->|"model weights"| node_person_detect
node_person_training -->|"records metrics"| node_person_results
node_weapon_training -->|"records metrics"| node_weapon_results
node_person_results -->|"evaluation artifacts"| node_evaluation_outputs
node_weapon_results -->|"evaluation artifacts"| node_evaluation_outputs

click node_weapon_detect "https://github.com/keshav-077/ai-driven-border-security-and-strategic-management-system/blob/main/trainingweapons%26Mini%20Project.ipynb"
click node_person_detect "https://github.com/keshav-077/ai-driven-border-security-and-strategic-management-system/blob/main/trainingpersons.ipynb"
click node_face_detect "https://github.com/keshav-077/ai-driven-border-security-and-strategic-management-system/blob/main/Faces.ipynb"
click node_face_classify "https://github.com/keshav-077/ai-driven-border-security-and-strategic-management-system/blob/main/Faces.ipynb"
click node_reid "https://github.com/keshav-077/ai-driven-border-security-and-strategic-management-system/blob/main/trainingpersons.ipynb"
click node_person_data "https://github.com/keshav-077/ai-driven-border-security-and-strategic-management-system/blob/main/dataperson.yaml"
click node_weapon_data "https://github.com/keshav-077/ai-driven-border-security-and-strategic-management-system/blob/main/dataweapon.yaml"
click node_default_data "https://github.com/keshav-077/ai-driven-border-security-and-strategic-management-system/blob/main/data.yaml"
click node_person_training "https://github.com/keshav-077/ai-driven-border-security-and-strategic-management-system/blob/main/trainingpersons.ipynb"
click node_weapon_training "https://github.com/keshav-077/ai-driven-border-security-and-strategic-management-system/blob/main/trainingweapons%26Mini%20Project.ipynb"
click node_yolo_weights "https://github.com/keshav-077/ai-driven-border-security-and-strategic-management-system/blob/main/yolov8n.pt"
click node_person_results "https://github.com/keshav-077/ai-driven-border-security-and-strategic-management-system/blob/main/Resultspersontraining/results.csv"
click node_weapon_results "https://github.com/keshav-077/ai-driven-border-security-and-strategic-management-system/blob/main/Resultsweapon/results.csv"
click node_evaluation_outputs "https://github.com/keshav-077/ai-driven-border-security-and-strategic-management-system/blob/main/finalresults/results"

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_camera toneBlue
class node_weapon_detect,node_person_detect,node_face_detect,node_face_classify,node_reid toneAmber
class node_person_data,node_weapon_data,node_default_data,node_person_training,node_weapon_training,node_yolo_weights toneMint
class node_person_results,node_weapon_results,node_evaluation_outputs toneRose
```

## Components

### Camera Inputs

- **IP/Webcam feeds**

### Video Analysis

- [Weapon detection](https://github.com/keshav-077/ai-driven-border-security-and-strategic-management-system/blob/main/trainingweapons%26Mini%20Project.ipynb): `trainingweapons&Mini Project.ipynb`
- [Person detection](https://github.com/keshav-077/ai-driven-border-security-and-strategic-management-system/blob/main/trainingpersons.ipynb): `trainingpersons.ipynb`
- [Face detection](https://github.com/keshav-077/ai-driven-border-security-and-strategic-management-system/blob/main/Faces.ipynb): `Faces.ipynb`
- [Face classification](https://github.com/keshav-077/ai-driven-border-security-and-strategic-management-system/blob/main/Faces.ipynb): `Faces.ipynb`
- [Person re-identification](https://github.com/keshav-077/ai-driven-border-security-and-strategic-management-system/blob/main/trainingpersons.ipynb): `trainingpersons.ipynb`

### Model Training

- [Person dataset config](https://github.com/keshav-077/ai-driven-border-security-and-strategic-management-system/blob/main/dataperson.yaml): `dataperson.yaml`
- [Weapon dataset config](https://github.com/keshav-077/ai-driven-border-security-and-strategic-management-system/blob/main/dataweapon.yaml): `dataweapon.yaml`
- [Dataset config](https://github.com/keshav-077/ai-driven-border-security-and-strategic-management-system/blob/main/data.yaml): `data.yaml`
- [Person model training](https://github.com/keshav-077/ai-driven-border-security-and-strategic-management-system/blob/main/trainingpersons.ipynb): `trainingpersons.ipynb`
- [Weapon model training](https://github.com/keshav-077/ai-driven-border-security-and-strategic-management-system/blob/main/trainingweapons%26Mini%20Project.ipynb): `trainingweapons&Mini Project.ipynb`
- [YOLO weights](https://github.com/keshav-077/ai-driven-border-security-and-strategic-management-system/blob/main/yolov8n.pt): `yolov8n.pt`

### Evaluation

- [Person results](https://github.com/keshav-077/ai-driven-border-security-and-strategic-management-system/blob/main/Resultspersontraining/results.csv): `Resultspersontraining/results.csv`
- [Weapon results](https://github.com/keshav-077/ai-driven-border-security-and-strategic-management-system/blob/main/Resultsweapon/results.csv): `Resultsweapon/results.csv`
- [Final results](https://github.com/keshav-077/ai-driven-border-security-and-strategic-management-system/blob/main/finalresults/results): `finalresults/results`

## Connections

- IP/Webcam feeds → Weapon detection: video input
- IP/Webcam feeds → Person detection: video input
- IP/Webcam feeds → Face detection: video input
- IP/Webcam feeds → Person re-identification: camera streams
- Face detection → Face classification: face regions
- Person dataset config → Person model training: configures data
- Dataset config → Person model training: configures data
- Weapon dataset config → Weapon model training: configures data
- Dataset config → Weapon model training: configures data
- Person model training → Person detection: trained model
- Weapon model training → Weapon detection: trained model
- YOLO weights → Person detection: model weights
- Person model training → Person results: records metrics
- Weapon model training → Weapon results: records metrics
- Person results → Final results: evaluation artifacts
- Weapon results → Final results: evaluation artifacts
