Millions of transactions are taking place everyday online and so keeping track of the fraud transaction manually is hardly possible. So,The perpose of this project is to predict the probability that an online transaction is fraudulent.
In this project, A Deep Learning model Multi Layer Perceptron is introduced to detect fraud detection using the features given in the dataset. The dataset consisted four parts where Train_identity and Train_transaction belonged to train and Test_identity and Test_transaction belonged to Test. Merging the dataset brings train data to 590540 features with 434 feature columns for test data with 433 feature columns.
An EDA(Exploratory Data Analysis) showing the train, test data distribution and feature similarity. In addition to that, both of the dataset has missing values ranging from (0.1 - 0.99)% in both categorical and numerical features. For feature Selection, Feature columns with similar prefix are taken in groups and shown the correlation with target feature [isFraud]. Some of the highly correlated features are not relateable with the both dataset so those features were eleminated.Features with similar missing value percentage and Prefix are taken to measure correlation with target feature and redundant features were eleminated.Total 186 feature columns are selected where missing values are handled with mean and most frequent features accordingly.
The model is a four layer fully connected with 50% dropout and batch normalization on final layer. For activation method of hidden layer ReLu is used to avoid any negative values and sigmoid in the final layer to find out the probability of the fraudulent.
The model showed 0.844748 accuracy on public score kaggle.Notebook
This project requires Python and the following Python libraries installed:
Tensorflow Numpy Pandas Matplotlib Seaborn
You will also need to have software installed to run and execute a Jupyter Notebook
If you do not have Python installed yet, it is highly recommended that you install the Anaconda distribution of Python, which already has the above packages and more included.
*1.Download IEEE CIS Fraud Detection.ipynb *2.Download the [dataset] (https://www.kaggle.com/c/ieee-fraud-detection) *3.Install the Dependencies
This project is licensed under the [MIT] License - see the LICENSE.md file for details
