This project focuses on building a model to predict fraudulent vehicle insurance claims.
-
Dataset:
insurance_claims.csv
-
Python Code:
- Jupyter notebook:
insurance_claims.ipynb
- Jupyter notebook:
The objective is to develop a model capable of predicting fraudulent vehicle insurance claims. The dataset is obtained from Kaggle: Insurance Fraud Claims Detection.
-
Dataset Overview:
- Contains 1000 observations and 40 dimensions.
- Binary classification problem - 'fraud_reported' (Yes/No).
-
Column Descriptions:
- Columns include various features such as
months_as_customer,age,policy_number, etc.
- Columns include various features such as
-
Missing Value Analysis:
- Identified missing values represented as "?" and replaced with NaN.
- Dropped variables with missing values exceeding 30%:
_c39,property_damage,police_report_available.
-
Feature Engineering:
- Converted date columns (
policy_bind_date,incident_date) to datetime format. - Derived new features like
policy_Month,policy_Year,Inc_Month. - Created
Capital_Loss_or_Gainbased oncapital-gainsandcapital-loss. - Imputed missing values for
collision_typeusing KNN Imputation. - Created a new variable
total_claimand converted related variables to categorical type codes.
- Converted date columns (
-
Feature Selection:
- Applied correlation analysis (Heatmap) to identify and address multicollinearity.
- Dropped
months_as_customerdue to high correlation withage. - Applied Chi-Sq-Test to select significant categorical variables.
-
Down-sampling:
- Balanced the imbalanced dataset using resampling techniques (0 - 400, 1 - 247).
-
Model Building:
-
Random Forest:
- Accuracy: 0.8307692307692308
- Confusion Matrix:
[[110 22] [11 52]]
-
Decision Tree:
- Accuracy: 0.7487179487179487
- Confusion Matrix:
[[108 24] [25 38]]
-
Logistic Regression:
- Accuracy: 0.6564102564102564
- Confusion Matrix:
[[119 13] [54 9]]
-
Random Forest performed the best among the models.
-
-
Clone the repository:
git clone <repository_url>
-
Navigate to the project directory:
cd Insurance-Fraud-Claims-Detection -
Explore the dataset and Jupyter notebook for detailed analysis and code.
Feel free to refer to insurance_claims.ipynb for an in-depth explanation of the project.
Note: Adjust file paths and comments as needed for your project structure.