លំហសិក្សាធិការកម្ពុជា
V1.0
Credit card fraud is a significant challenge in electronic payment systems because fraudulent transactions can cause financial losses and reduce customer trust. This project develops a machine-learning-based Credit Card Fraud Detection System to identify potentially fraudulent transactions from transaction data. The dataset contains 100,000 transaction records with attributes including transaction date, amount, merchant, transaction type, and location. The data is processed through feature engineering, categorical encoding, numerical scaling, and SMOTE to address class imbalance. Four machine learning algorithms—Logistic Regression, Decision Tree, Random Forest, and XGBoost—are trained and compared using Accuracy, Precision, Recall, F1 Score, and Confusion Matrix. F1 Score is used as the primary metric for selecting the best-performing model because it provides a balance between Precision and Recall for the imbalanced fraud detection problem. The selected model is integrated into a Streamlit web application that allows users to upload transaction data, predict fraudulent transactions, visualize prediction results, and download a report containing detected fraudulent transactions. The system demonstrates how machine learning can support automated transaction screening and provide a practical prototype for fraud detection.