# sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system architecture

> Architecture diagram of the GitHub repository sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system
- Repository: https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system

## Overview

This is a telecom network analytics and NOC system: activity data is ingested and transformed into warehouse and analytics outputs, then exposed through an API for network-health, grid, hotspot, alert, and risk views. The graph preserves the documented processing, ML, API, and UI areas, but the README is empty and several pipeline modules were not sampled; their internal handoffs are therefore not asserted. API-to-service and service-to-database links are shown where source excerpts or the index support them.

Main entry points: [`Phase 4/main.py`](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%204/main.py) (API Router), [`Phase 5/App.jsx`](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%205/App.jsx) (Web App Router), [`Phase 5/services/networkApi.js`](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%205/services/networkApi.js) (Network API Client), [`Phase 4/database.py`](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%204/database.py) (Telecom Warehouse)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_processing["Data Processing"]
  node_phase1["Building Activity<br/>[Building.py]"]
  node_phase2etl["ETL<br/>[ETL.py]"]
  node_phase2ingest["Distributed Ingestion"]
  node_phase2aggregate["Aggregation<br/>[Aggregation.py]"]
  node_phase2clean["Clean and Standardize"]
  node_pipeline["Telecom Pipeline"]
  node_ingestion["Pipeline Ingestion<br/>[ingestion.py]"]
  node_warehouse["Warehouse Loading<br/>[load_warehouse.py]"]
end

subgraph group_analytics["Analytics and ML"]
  node_ml_features["Feature Engineering"]
  node_ml_models["Risk Modeling<br/>[ML3.py]"]
  node_anomaly["Anomaly Detection"]
  node_scoring["Batch Scoring<br/>[batch_scoring.py]"]
end

subgraph group_backend["API Backend"]
  node_api_main["API Router<br/>[main.py]"]
  node_route_network["Network Routes<br/>[network.py]"]
  node_route_grid["Grid Routes<br/>[grid.py]"]
  node_route_alerts["Hotspot Alert Routes"]
  node_route_features["Feature Routes<br/>[features.py]"]
  node_route_prediction["Prediction Routes<br/>[prediction.py]"]
  node_route_operations["Operations Routes<br/>[operations.py]"]
  node_service_summary["Network Summary<br/>[summary_service.py]"]
  node_service_grid["Grid Activity<br/>[grid_service.py]"]
  node_service_alerts["Hotspot Alerts"]
  node_service_features["Grid Features<br/>[feature_service.py]"]
  node_service_prediction["Risk Prediction"]
  node_service_operations["Operations Queries"]
  node_database[("Telecom Warehouse<br/>[database.py]")]
end

subgraph group_frontend["NOC Frontend"]
  node_app["Web App Router<br/>[App.jsx]"]
  node_dashboard["Network Dashboard<br/>[Dashboard.jsx]"]
  node_api_client["Network API Client<br/>[networkApi.js]"]
  node_page_health["Network Health<br/>[NetworkHealth.jsx]"]
  node_page_risk["Risk View<br/>[Risk.jsx]"]
  node_page_grid["Grid Details<br/>[GridDetails.jsx]"]
  node_page_alerts["Hotspot Alerts<br/>[HotspotsAlerts.jsx]"]
end

node_actor(("NOC User"))

node_actor -->|"uses"| node_app
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_page_health
node_app -->|"routes to"| node_page_risk
node_app -->|"routes to"| node_page_grid
node_app -->|"routes to"| node_page_alerts
node_dashboard -->|"requests data"| node_api_client
node_page_health -->|"requests data"| node_api_client
node_page_risk -->|"requests data"| node_api_client
node_page_grid -->|"requests data"| node_api_client
node_page_alerts -->|"requests data"| node_api_client
node_api_client -.->|"HTTP requests"| node_api_main
node_api_main -->|"registers"| node_route_network
node_api_main -->|"registers"| node_route_grid
node_api_main -->|"registers"| node_route_alerts
node_api_main -->|"registers"| node_route_features
node_api_main -->|"registers"| node_route_prediction
node_api_main -->|"registers"| node_route_operations
node_route_network -->|"calls"| node_service_summary
node_route_grid -->|"calls"| node_service_grid
node_route_alerts -->|"calls"| node_service_alerts
node_route_features -->|"calls"| node_service_features
node_route_prediction -->|"calls"| node_service_prediction
node_route_operations -->|"calls"| node_service_operations
node_service_grid -->|"queries"| node_database
node_service_alerts -->|"queries"| node_database
node_service_operations -->|"queries"| node_database
node_service_summary -->|"queries"| node_database

click node_phase1 "https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%201/Building.py"
click node_phase2etl "https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%202/ETL.py"
click node_phase2ingest "https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%202/Distributed_ingestion.py"
click node_phase2aggregate "https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%202/Aggregation.py"
click node_phase2clean "https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%202/Clean_standardize.py"
click node_pipeline "https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%203/telecom_pipeline.py"
click node_ingestion "https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%203/ingestion.py"
click node_warehouse "https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%203/load_warehouse.py"
click node_ml_features "https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%206/feature_engineering.py"
click node_ml_models "https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%206/ML3.py"
click node_anomaly "https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%206/anomaly_detection.py"
click node_scoring "https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%206/batch_scoring.py"
click node_api_main "https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%204/main.py"
click node_route_network "https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%204/routes/network.py"
click node_route_grid "https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%204/routes/grid.py"
click node_route_alerts "https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%204/routes/hotspot_alert_route.py"
click node_route_features "https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%204/routes/features.py"
click node_route_prediction "https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%204/routes/prediction.py"
click node_route_operations "https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%204/routes/operations.py"
click node_service_summary "https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%204/services/summary_service.py"
click node_service_grid "https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%204/services/grid_service.py"
click node_service_alerts "https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%204/services/hotspot_alert_service.py"
click node_service_features "https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%204/services/feature_service.py"
click node_service_prediction "https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%204/services/prediction_service.py"
click node_service_operations "https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%204/services/operations_service.py"
click node_database "https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%204/database.py"
click node_app "https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%205/App.jsx"
click node_dashboard "https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%205/pages/Dashboard.jsx"
click node_api_client "https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%205/services/networkApi.js"
click node_page_health "https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%205/pages/NetworkHealth.jsx"
click node_page_risk "https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%205/pages/Risk.jsx"
click node_page_grid "https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%205/pages/GridDetails.jsx"
click node_page_alerts "https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%205/pages/HotspotsAlerts.jsx"

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_phase1,node_phase2etl,node_phase2ingest,node_phase2aggregate,node_phase2clean,node_pipeline,node_ingestion,node_warehouse,node_actor toneBlue
class node_ml_features,node_ml_models,node_anomaly,node_scoring toneAmber
class node_api_main,node_route_network,node_route_grid,node_route_alerts,node_route_features,node_route_prediction,node_route_operations,node_service_summary,node_service_grid,node_service_alerts,node_service_features,node_service_prediction,node_service_operations,node_database toneMint
class node_app,node_dashboard,node_api_client,node_page_health,node_page_risk,node_page_grid,node_page_alerts toneRose
```

## Components

### Data Processing

- [Building Activity](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%201/Building.py): `Phase 1/Building.py`
- [ETL](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%202/ETL.py): `Phase 2/ETL.py`
- [Distributed Ingestion](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%202/Distributed_ingestion.py): `Phase 2/Distributed_ingestion.py`
- [Aggregation](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%202/Aggregation.py): `Phase 2/Aggregation.py`
- [Clean and Standardize](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%202/Clean_standardize.py): `Phase 2/Clean_standardize.py`
- [Telecom Pipeline](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%203/telecom_pipeline.py): `Phase 3/telecom_pipeline.py`
- [Pipeline Ingestion](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%203/ingestion.py): `Phase 3/ingestion.py`
- [Warehouse Loading](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%203/load_warehouse.py): `Phase 3/load_warehouse.py`

### Analytics and ML

- [Feature Engineering](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%206/feature_engineering.py): `Phase 6/feature_engineering.py`
- [Risk Modeling](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%206/ML3.py): `Phase 6/ML3.py`
- [Anomaly Detection](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%206/anomaly_detection.py): `Phase 6/anomaly_detection.py`
- [Batch Scoring](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%206/batch_scoring.py): `Phase 6/batch_scoring.py`

### API Backend

- [API Router](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%204/main.py): `Phase 4/main.py`
- [Network Routes](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%204/routes/network.py): `Phase 4/routes/network.py`
- [Grid Routes](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%204/routes/grid.py): `Phase 4/routes/grid.py`
- [Hotspot Alert Routes](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%204/routes/hotspot_alert_route.py): `Phase 4/routes/hotspot_alert_route.py`
- [Feature Routes](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%204/routes/features.py): `Phase 4/routes/features.py`
- [Prediction Routes](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%204/routes/prediction.py): `Phase 4/routes/prediction.py`
- [Operations Routes](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%204/routes/operations.py): `Phase 4/routes/operations.py`
- [Network Summary](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%204/services/summary_service.py): `Phase 4/services/summary_service.py`
- [Grid Activity](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%204/services/grid_service.py): `Phase 4/services/grid_service.py`
- [Hotspot Alerts](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%204/services/hotspot_alert_service.py): `Phase 4/services/hotspot_alert_service.py`
- [Grid Features](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%204/services/feature_service.py): `Phase 4/services/feature_service.py`
- [Risk Prediction](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%204/services/prediction_service.py): `Phase 4/services/prediction_service.py`
- [Operations Queries](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%204/services/operations_service.py): `Phase 4/services/operations_service.py`
- [Telecom Warehouse](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%204/database.py): `Phase 4/database.py`

### NOC Frontend

- [Web App Router](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%205/App.jsx): `Phase 5/App.jsx`
- [Network Dashboard](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%205/pages/Dashboard.jsx): `Phase 5/pages/Dashboard.jsx`
- [Network API Client](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%205/services/networkApi.js): `Phase 5/services/networkApi.js`
- [Network Health](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%205/pages/NetworkHealth.jsx): `Phase 5/pages/NetworkHealth.jsx`
- [Risk View](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%205/pages/Risk.jsx): `Phase 5/pages/Risk.jsx`
- [Grid Details](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%205/pages/GridDetails.jsx): `Phase 5/pages/GridDetails.jsx`
- [Hotspot Alerts](https://github.com/sacheindiwakar-pdt/capstone-1-customer-predictive-intelligence-system/blob/main/Phase%205/pages/HotspotsAlerts.jsx): `Phase 5/pages/HotspotsAlerts.jsx`

### Other components

- **NOC User**

## Connections

- NOC User → Web App Router: uses (evidence: `Phase 5/App.jsx`)
- Web App Router → Network Dashboard: routes to (evidence: `Phase 5/App.jsx`)
- Web App Router → Network Health: routes to (evidence: `Phase 5/App.jsx`)
- Web App Router → Risk View: routes to (evidence: `Phase 5/App.jsx`)
- Web App Router → Grid Details: routes to (evidence: `Phase 5/App.jsx`)
- Web App Router → Hotspot Alerts: routes to (evidence: `Phase 5/App.jsx`)
- Network Dashboard → Network API Client: requests data (evidence: `Phase 5/pages/Dashboard.jsx`)
- Network Health → Network API Client: requests data (evidence: `Phase 5/pages/NetworkHealth.jsx`)
- Risk View → Network API Client: requests data (evidence: `Phase 5/pages/Risk.jsx`)
- Grid Details → Network API Client: requests data (evidence: `Phase 5/pages/GridDetails.jsx`)
- Hotspot Alerts → Network API Client: requests data (evidence: `Phase 5/pages/HotspotsAlerts.jsx`)
- Network API Client → API Router: HTTP requests (evidence: `Phase 5/services/networkApi.js`)
- API Router → Network Routes: registers (evidence: `Phase 4/main.py`)
- API Router → Grid Routes: registers (evidence: `Phase 4/main.py`)
- API Router → Hotspot Alert Routes: registers (evidence: `Phase 4/main.py`)
- API Router → Feature Routes: registers (evidence: `Phase 4/main.py`)
- API Router → Prediction Routes: registers (evidence: `Phase 4/main.py`)
- API Router → Operations Routes: registers (evidence: `Phase 4/main.py`)
- Network Routes → Network Summary: calls (evidence: `Phase 4/routes/network.py`)
- Grid Routes → Grid Activity: calls (evidence: `Phase 4/routes/grid.py`)
- Hotspot Alert Routes → Hotspot Alerts: calls (evidence: `Phase 4/routes/hotspot_alert_route.py`)
- Feature Routes → Grid Features: calls (evidence: `Phase 4/routes/features.py`)
- Prediction Routes → Risk Prediction: calls (evidence: `Phase 4/routes/prediction.py`)
- Operations Routes → Operations Queries: calls (evidence: `Phase 4/routes/operations.py`)
- Grid Activity → Telecom Warehouse: queries (evidence: `Phase 4/services/grid_service.py`)
- Hotspot Alerts → Telecom Warehouse: queries (evidence: `Phase 4/services/hotspot_alert_service.py`)
- Operations Queries → Telecom Warehouse: queries (evidence: `Phase 4/services/operations_service.py`)
- Network Summary → Telecom Warehouse: queries (evidence: `Phase 4/services/summary_service.py`)
