Skip to content

Harshit-it25/Decision-DNA

Repository files navigation

🧬 Decision DNA

AI Governance & Monitoring System for Credit Risk Models

React Node.js TypeScript License

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.


πŸ›οΈ System Architecture

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.


✨ Features

πŸ“Š Live Governance Dashboard

Real-time monitoring of:

  • model health
  • prediction activity
  • system alerts
  • governance metrics

πŸ” Model Drift Detection

Detects distribution shifts using statistical techniques:

  • Population Stability Index (PSI)
  • KL Divergence

This helps identify when production data deviates from training data.


πŸ›‘οΈ Security Monitoring

Provides monitoring mechanisms to detect:

  • abnormal model behavior
  • suspicious system activity
  • operational failures

Security events are logged for auditing.


πŸ€– Risk Prediction Interface

Interactive interface to test credit risk predictions using trained models.


πŸ“‹ Audit Logging

All governance events and system activities are stored as timestamped audit logs.


πŸ”„ Recovery & Reboot System

Administrative tools allow safe restart or recovery of model services when anomalies occur.


πŸ—οΈ Tech Stack

Layer Technology
Frontend React + TypeScript + Tailwind CSS
Backend Node.js + Express
Build Tool Vite
ML Python + scikit-learn
Validation Zod
Storage IndexedDB / local logs

πŸ“ Project Structure

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

πŸ“Š Dataset

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

πŸš€ Quick Start

1️⃣ Clone the repository

git clone https://github.com/Harshit-it25/Decision-DNA.git
cd Decision-DNA

2️⃣ Install dependencies

npm install

3️⃣ Configure environment variables

Create .env.local:

API_KEY=your_api_key

4️⃣ Start the development server

npm run dev

This launches:

  • Express backend
  • React dashboard

5️⃣ Open the application

http://localhost:5173

πŸ“¦ Available Scripts

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 Policy

Security guidelines and reporting instructions are available in:

SECURITY.md

πŸ“ˆ Future Improvements

Possible enhancements include:

  • automated model retraining
  • real-time drift alerts
  • anomaly detection
  • explainable AI modules
  • cloud deployment

πŸ‘¨β€πŸ’» Author

Harshit Ranbhare

AI / Machine Learning Student Btech IT Student


πŸ“„ License

MIT License Β© 2024 Harshit-it25


⭐ If you found this project interesting, consider starring the repository.

About

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.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors