Skip to content

lasyasb/ayushman-bharat

Repository files navigation

Ayushman Bharat Fraud Detection Agent

Built by Team Kurukshetra


Overview

The Ayushman Bharat Fraud Detection Agent is an intelligent monitoring system designed to detect potential healthcare billing fraud in private hospitals participating in the Ayushman Bharat scheme.

The system analyzes claim data, identifies suspicious patterns such as up-coding, ghost billing, repeat admissions, and abnormal billing behavior, and generates actionable risk scores with explainable reasoning.

This solution combines rule-based logic, anomaly detection models, and hospital-level behavioral risk scoring.


Problem Statement

Healthcare insurance fraud causes significant financial leakage. Fraud types include:

  • Up-coding (billing higher procedures than performed)
  • Ghost billing (fake beneficiaries)
  • Repeated admissions manipulation
  • Inflated short-stay claims
  • Abnormal claim amount deviations

This system provides an automated fraud monitoring engine with explainable risk outputs and investigation support tools.


Key Features

1. Claim Data Ingestion Pipeline

  • CSV-based claim upload
  • Column validation
  • Duplicate claim detection
  • Automatic database insertion

2. Multi-Layer Fraud Detection Engine

Final Risk Score Formula:

Final Risk Score = 0.45 × Rule Score\

  • 0.35 × ML Score\
  • 0.20 × Hospital Risk

Components:

  • Rule-Based Fraud Detection
    • Short stay high billing\
    • Abnormal procedure-cost deviation\
    • Repeat admissions pattern
  • ML-Based Anomaly Detection
    • Isolation Forest (Scikit-learn)\
    • Anomaly scoring using decision function
  • Hospital Risk Modeling
    • Percentile-based institutional risk scoring\
    • Aggregated hospital fraud indicators

3. Interactive Dashboard

  • Risk-level filtering (High / Medium / Low)
  • Claim search by ID
  • Hospital drilldown view
  • Beneficiary claim timeline
  • Monthly fraud trend visualization
  • Raw database inspection page

4. Beneficiary Timeline Analysis

Chronological tracking of claims for a beneficiary allows detection of:

  • Repeat admissions within short intervals
  • Escalating billing patterns
  • Suspicious hospital-specific concentration

System Architecture

CSV Upload

Data Validation

Feature Engineering

Rule Engine

Isolation Forest (Anomaly Detection)

Hospital Risk Aggregation

Weighted Risk Calculation

SQLite Storage

Dashboard Visualization


Tech Stack

  • Python
  • Flask
  • SQLite
  • Scikit-learn
  • Pandas
  • NumPy
  • Chart.js

Project Structure

ayushman_fraud_detection/
│
├── app.py
├── fraud.db
├── data_generator.py
├── config.py
│
├── database/
│   └── db.py
│
├── services/
│   ├── rule_engine.py
│   ├── anomaly_model.py
│   ├── feature_engineering.py
│   ├── hospital_risk.py
│   ├── risk_engine.py
│   └── data_pipeline.py
│
├── models/
│   └── isolation_model.pkl
│
├── templates/
│   ├── dashboard.html
│   ├── claim.html
│   ├── hospital.html
│   ├── patient.html
│   ├── months.html
│   ├── upload.html
│   └── database.html
│
├── static/
│   └── style.css

How to Run

  1. Install dependencies:

pip install flask pandas scikit-learn numpy

  1. Generate sample data:

python data_generator.py

  1. Start application:

python app.py

  1. Open in browser:

http://127.0.0.1:5000


Why This Solution Is Effective

Unlike basic anomaly detection demos, this system:

  • Combines rule-based and ML approaches\
  • Incorporates hospital-level risk scoring\
  • Provides explainable fraud reasoning\
  • Operates as a deployable end-to-end monitoring system

Team Kurukshetra

Built with focus on practical fraud detection, explainable AI, and real-world deployable architecture.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors