AI Governance & Monitoring System for Credit Risk Models
Decision DNA is an AI governance and monitoring platform designed to supervise machine learning models used in credit risk decision systems.
The system helps detect model drift, operational risks, and security threats, while maintaining transparent and auditable AI decision pipelines.
User
β
React Governance Dashboard
β
Express API Layer
β
Model Monitoring Engine
β
Drift Detection (PSI / KL Divergence)
β
Security Layer
β
Audit Logging System
Decision DNA provides real-time insights into model behavior, prediction monitoring, and governance alerts.
Real-time monitoring of:
- model health
- prediction activity
- system alerts
- governance metrics
Detects distribution shifts using statistical techniques:
- Population Stability Index (PSI)
- KL Divergence
This helps identify when production data deviates from training data.
Provides monitoring mechanisms to detect:
- abnormal model behavior
- suspicious system activity
- operational failures
Security events are logged for auditing.
Interactive interface to test credit risk predictions using trained models.
All governance events and system activities are stored as timestamped audit logs.
Administrative tools allow safe restart or recovery of model services when anomalies occur.
| Layer | Technology |
|---|---|
| Frontend | React + TypeScript + Tailwind CSS |
| Backend | Node.js + Express |
| Build Tool | Vite |
| ML | Python + scikit-learn |
| Validation | Zod |
| Storage | IndexedDB / local logs |
Decision-DNA/
β
βββ screenshots/ # UI screenshots for README
β
βββ src/
β βββ api/ # API client layer
β βββ config/ # configuration files
β βββ drift/ # drift detection logic
β βββ pages/ # React UI pages
β βββ services/ # backend services
β
β βββ App.tsx
β βββ ai_report.ts
β βββ constants.tsx
β βββ index.css
β βββ index.tsx
β
βββ ml/ # ML training pipeline
βββ scripts/ # automation scripts
βββ security/ # security monitoring modules
βββ tests/ # testing files
β
βββ server.ts # Express backend server
β
βββ index.html
βββ package.json
βββ tsconfig.json
βββ vite.config.ts
βββ tailwind.config.js
βββ postcss.config.js
β
βββ .env.example # environment variables template
βββ .gitignore
βββ SECURITY.md
βββ README.md
The system uses a synthetic credit risk dataset for training and demonstration.
Example features:
| Feature | Description |
|---|---|
| creditScore | Credit score range (300β850) |
| income | Annual applicant income |
| debtRatio | Debt-to-income ratio |
| loanAmount | Requested loan amount |
| decision | Loan approval outcome |
git clone https://github.com/Harshit-it25/Decision-DNA.git
cd Decision-DNAnpm installCreate .env.local:
API_KEY=your_api_keynpm run devThis launches:
- Express backend
- React dashboard
http://localhost:5173
| Command | Description |
|---|---|
| npm run dev | Start development server |
| npm run build | Build production bundle |
| npm run preview | Preview production build |
| npm run lint | Type checking |
Security guidelines and reporting instructions are available in:
SECURITY.md
Possible enhancements include:
- automated model retraining
- real-time drift alerts
- anomaly detection
- explainable AI modules
- cloud deployment
Harshit Ranbhare
AI / Machine Learning Student Btech IT Student
MIT License Β© 2024 Harshit-it25
β If you found this project interesting, consider starring the repository.