ACTIVE Blockchain

Fraud-Detection-Chain

Enterprise blockchain financial management system with AI-powered fraud detection achieving 91% F1 score

// DESCRIPTION

Fraud-Detection-Chain combines blockchain technology with machine learning for secure financial management and real-time fraud detection.

System Architecture

┌───────────────────────────────────────────────────────────────┐
│                     Frontend (React + Streamlit)               │
├───────────────────────────────────────────────────────────────┤
│  ┌─────────────┐  ┌─────────────┐  ┌─────────────────────┐  │
│  │ Treasury    │  │ Payment     │  │ Budget              │  │
│  │ Dashboard   │  │ Requests    │  │ Management          │  │
│  └─────────────┘  └─────────────┘  └─────────────────────┘  │
├───────────────────────────────────────────────────────────────┤
│                    Smart Contract Layer (Solidity)            │
│  ┌──────────────┐  ┌──────────────┐  ┌──────────────┐       │
│  │ AccessControl│  │ TreasuryCore │  │ PaymentMgr   │       │
│  └──────────────┘  └──────────────┘  └──────────────┘       │
├───────────────────────────────────────────────────────────────┤
│                    ML Fraud Detection Pipeline                │
│  ┌──────────┐  ┌──────────┐  ┌──────────┐  ┌──────────┐    │
│  │ Feature  │→ │ LightGBM │→ │ Ensemble │→ │ Alert    │    │
│  │ Extract  │  │ Model    │  │ Voting   │  │ System   │    │
│  └──────────┘  └──────────┘  └──────────┘  └──────────┘    │
└───────────────────────────────────────────────────────────────┘

Blockchain Components

  • Access Control: Role-based permissions (Admin, Approver, Requester)
  • Payment Requests: Multi-signature approval workflow
  • Budget Tracking: On-chain budget allocation and spending limits
  • Audit Trail: Immutable transaction history

ML Fraud Detection

  • Model: LightGBM with 91% F1 score
  • Features: Transaction patterns, timing, amount anomalies
  • Training Data: Kaggle fraud dataset, Enron emails, SEC AAER
  • Real-time: Sub-second prediction latency

Detection Capabilities

  • Unusual transaction amounts
  • Timing pattern anomalies
  • Account behavior changes
  • Network-based fraud rings

// HIGHLIGHTS

  • Smart contracts deployed on testnet
  • 91% F1 score on fraud detection
  • Interactive Streamlit dashboard
  • Comprehensive test coverage

TECH_STACK

Solidity Hardhat Python LightGBM Streamlit React Ethers.js

PROJECT_INFO

started: 2024-10-01
status: ACTIVE
type: Blockchain