This project aims to develop a fraud detection system for financial transactions using machine learning techniques. The model is designed to classify transactions as fraudulent or non-fraudulent based on various features.
Credit card fraud is a significant issue worldwide, posing financial losses and security concerns for individuals and institutions. This project focuses on detecting fraudulent transactions in real-time by leveraging machine learning models trained on historical transaction data.
The dataset used for this project is from Kaggle and contains the following columns:
step: Time step of the transactiontype: Type of transaction (e.g., PAYMENT, TRANSFER, CASH_OUT, etc.)amount: Transaction amountnameOrig: Customer who initiated the transactionoldbalanceOrg: Initial balance before the transactionnewbalanceOrig: New balance after the transactionnameDest: Recipient of the transactionoldbalanceDest: Initial balance of the recipient before the transactionnewbalanceDest: New balance of the recipient after the transactionisFraud: Whether the transaction is fraudulent (1) or not (0)isFlaggedFraud: Whether the transaction is flagged as fraudulent by the system (1) or not (0)
Clone the repository:
git clone https://github.com/OtaoDavis/Fraudify.git
cd fraud-detectionpip install -r requirements.txtTo train the model, run the following command:
jupyter notebook train.ipynbThe model achieves high accuracy in detecting fraudulent transactions with a low false positive rate. Detailed results and performance metrics can be found in the results directory.