A Python/FastAPI-based business monitoring pipeline for KPI anomaly detection, forecasting, risk scoring, and automated insight generation.
AI KPI Monitoring & Risk Insight System is an applied AI and data automation prototype designed to help transform raw KPI data into structured business signals.
The system processes time-series KPI data, detects abnormal behavior, performs simple forecasting, computes configurable risk scores, and generates business-oriented insights and recommended actions.
It is designed as an early-stage internal analytics tool for business monitoring, operational risk detection, and decision-support automation.
- KPI data ingestion from CSV files
- Anomaly detection on business metrics
- Simple forecasting pipeline for future KPI trends
- Configurable risk scoring logic
- Portfolio-level risk assessment
- Automated insight generation based on risk level and anomaly status
- FastAPI-based backend interface
- Output artifacts including report files, forecast files, and structured JSON results
- Python
- FastAPI
- Pandas
- YAML configuration
- Time-series data processing
- Modular risk and evaluation components
- JSON-based reporting
This project includes an independent financial technology demo based on publicly available Visa Fiscal 2025 Annual Report data.
The demo uses a small structured KPI sample focused on Visa net revenue from fiscal years 2023, 2024, and 2025. The purpose is to demonstrate how the system can process public business KPI data, generate a risk score, classify KPI risk level, detect potential anomaly signals, produce recommended executive actions, and save structured output artifacts.
Demo files:
- demo/demo_notes.md
- demo/sample_inputs.md
- demo/sample_outputs.md
- demo/visa_net_revenue_sample.csv
- demo/visa_public_kpi_sample.csv
Demo result summary:
- Source context: Visa Fiscal 2025 Annual Report
- KPI tested: Net revenue
- Years covered: 2023, 2024, 2025
- Unit: million USD
- System result: MEDIUM risk level
- Risk score: 0.55
- Output artifacts:
report.jsonandforecast.json
This is an independent technical evaluation based on publicly available data, not a collaboration project.
AI-KPI-System/
├── api.py
├── main.py
├── config.yaml
├── kpi_data.py
├── kpi_data_generator.py
├── visualizer.py
├── detectors/
│ ├── evaluation.py
│ └── risk.py
├── templates/
├── demo/
│ ├── demo_notes.md
│ ├── sample_inputs.md
│ ├── sample_outputs.md
│ ├── visa_net_revenue_sample.csv
│ └── visa_public_kpi_sample.csv
├── output/
└── README.md