Karna·Kavach
DashboardAttack LibraryLive DetectionAnalytics
SYSTEM ACTIVE
MODEL ANALYTICS · ENSEMBLE CLASSIFIER

Analytics

Model performance metrics, feature importance, adversarial feedback loop results, and model comparison.

Precision
97.4%
True fraud / Flagged fraud
Recall
98.5%
Caught / Total fraud
F1 Score
97.9%
Harmonic mean
AUC-ROC
99.9%
Area under ROC curve

Data Fidelity Validation

Loading validation metrics...

Detection Efficacy

Loading performance metrics...

Model Comparison

Ensemble outperforms all single classifiers

ModelPrecisionRecallF1AUC
Logistic Reg82.0%76.0%79.0%88.0%
Random Forest94.0%95.0%94.0%98.0%
XGBoost96.0%97.0%96.0%99.0%
Ensemble★ Best97.4%98.5%97.9%99.9%

Training Data Composition

Synthetic dataset generated by the Generate Engine

Legitimate transactions10,000
Fraud (all categories)~5,000
SMOTE Oversampling
Enabled
Attack Categories
6 types
Ensemble Strategy
Soft Vote
Adversarial Loops
10 iters

How the Pipeline Works

01
Generate + Train

Run once manually. Creates 15,000 synthetic transactions, trains the XGBoost ensemble, and saves the model to disk. Not a cron job — you trigger it.

python pipeline.py --all
02
Adversarial Loop

Runs 10 iterations. Each iteration generates a new attack, probes the model with 100 samples. If detection rate drops below 70%, the model retrains immediately.

python pipeline.py --adversarial
03
Live Metrics

This page reads from the model's metrics file in real time. Every chart marked LIVE is powered by actual model outputs — no hardcoded numbers.

GET /api/predict/metrics/analytics