File size: 1,446 Bytes
b3e9385
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
license: mit
tags:
- machine-learning
- fraud-detection
- classification
- decision-tree
- scikit-learn
library_name: scikit-learn
---

# πŸ›‘οΈ Insurance Fraud Detection

A machine learning classification model for predicting whether an insurance claim is **Fraudulent** or **Non-Fraudulent**.

The model uses a **Decision Tree Classifier** trained on insurance claim data after preprocessing, feature engineering, categorical encoding, and class balancing using SMOTE.

## πŸ€– Model

**Algorithm:** Decision Tree Classifier

**Task:** Binary Classification

**Classes:**

- Fraudulent
- Non-Fraudulent

## πŸ“Š Model Performance

The following models were evaluated during the project:

| Model | Accuracy |
|---|---:|
| Logistic Regression | 73% |
| Decision Tree | **80%** |
| Random Forest | 79% |

The Decision Tree Classifier was selected for the final application and achieved approximately **80% accuracy** on the evaluation data.

> Accuracy alone does not fully describe fraud-detection performance. Precision, recall, F1-score, and the confusion matrix should also be considered, particularly when the classes are imbalanced.

## πŸ”„ Machine Learning Workflow

```text
Insurance Claim Data
        ↓
Data Cleaning
        ↓
Missing Value Handling
        ↓
Feature Engineering
        ↓
Categorical Encoding
        ↓
SMOTE Class Balancing
        ↓
Decision Tree Classifier
        ↓
Fraud / Non-Fraud Prediction