Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
emoji: 🚀
|
| 4 |
colorFrom: red
|
| 5 |
-
colorTo:
|
| 6 |
sdk: streamlit
|
| 7 |
app_file: app.py
|
| 8 |
pinned: false
|
|
@@ -10,46 +10,41 @@ license: apache-2.0
|
|
| 10 |
sdk_version: 1.55.0
|
| 11 |
---
|
| 12 |
|
| 13 |
-
# 🛡️
|
|
|
|
| 14 |
|
|
|
|
|
|
|
| 15 |
|
|
|
|
| 16 |
|
| 17 |
-
##
|
| 18 |
-
**
|
| 19 |
|
| 20 |
-
**
|
| 21 |
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
* **Bilingual UI:** Full support for both English and Turkish languages.
|
| 26 |
-
* **High Accuracy:** Achieved **99.97%** accuracy using advanced boosting algorithms.
|
| 27 |
-
* **Intelligent Analysis:** Analyzes balance discrepancies and transaction types.
|
| 28 |
-
* **User-Friendly:** Simple Streamlit interface for quick testing.
|
| 29 |
-
|
| 30 |
-
* **Çift Dilli Arayüz:** İngilizce ve Türkçe dilleri için tam destek.
|
| 31 |
-
* **Yüksek Doğruluk:** Gelişmiş boosting algoritmaları ile **%99.97** başarı oranı.
|
| 32 |
-
* **Akıllı Analiz:** Bakiye tutarsızlıklarını ve işlem türlerini analiz eder.
|
| 33 |
-
* **Kullanıcı Dostu:** Hızlı test için basit ve etkili Streamlit arayüzü.
|
| 34 |
-
|
| 35 |
-
---
|
| 36 |
-
|
| 37 |
-
## 🛠️ Tech Stack / Kullanılan Teknolojiler
|
| 38 |
-
- **Python** (Core Language)
|
| 39 |
-
- **Streamlit** (Web Interface)
|
| 40 |
-
- **Scikit-learn / XGBoost** (ML Model)
|
| 41 |
-
- **Joblib** (Model Serialization)
|
| 42 |
|
| 43 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
|
| 45 |
-
##
|
|
|
|
|
|
|
|
|
|
| 46 |
|
|
|
|
|
|
|
|
|
|
| 47 |
|
|
|
|
|
|
|
| 48 |
|
| 49 |
-
|
| 50 |
-
| :--- | :--- |
|
| 51 |
-
| **Accuracy (Doğruluk)** | 99.97% |
|
| 52 |
-
| **Model Type** | Ensemble Learning (XGB/RF) |
|
| 53 |
-
| **Dataset Size** | 6.3M+ Rows / Satır |
|
| 54 |
|
| 55 |
-
---
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Fraud Guard Pro 🛡️
|
| 3 |
emoji: 🚀
|
| 4 |
colorFrom: red
|
| 5 |
+
colorTo: green
|
| 6 |
sdk: streamlit
|
| 7 |
app_file: app.py
|
| 8 |
pinned: false
|
|
|
|
| 10 |
sdk_version: 1.55.0
|
| 11 |
---
|
| 12 |
|
| 13 |
+
# 🛡️ Fraud Guard Pro: Financial Fraud Detection System
|
| 14 |
+
### Finansal Dolandırıcılık Tespit Sistemi
|
| 15 |
|
| 16 |
+
## 📌 Project Overview / Proje Hakkında
|
| 17 |
+
**EN:** This project is a machine learning-based decision support system designed to detect fraudulent financial transactions. Using the synthetic Paysim dataset, the model analyzes transaction patterns to distinguish between legitimate and fraudulent activities with high precision.
|
| 18 |
|
| 19 |
+
**TR:** Bu proje, şüpheli finansal işlemleri tespit etmek için geliştirilmiş makine öğrenmesi tabanlı bir karar destek sistemidir. Paysim veri setini kullanan bu model, işlem desenlerini analiz ederek dürüst ve dolandırıcılık amaçlı faaliyetleri yüksek doğrulukla birbirinden ayırır.
|
| 20 |
|
| 21 |
+
## 📊 Model Performance / Model Başarısı
|
| 22 |
+
**EN:** After testing various algorithms (Logistic Regression, Decision Tree, Naive Bayes, etc.), the **Random Forest** model was selected as the champion due to its superior performance.
|
| 23 |
|
| 24 |
+
**TR:** Çeşitli algoritmalar (Lojistik Regresyon, Karar Ağacı, Naive Bayes vb.) test edildikten sonra, en yüksek performansı sergileyen **Random Forest** modeli şampiyon olarak seçilmiştir.
|
| 25 |
|
| 26 |
+
* **Accuracy (Doğruluk):** %99.33
|
| 27 |
+
* **F1-Score:** %99.34
|
| 28 |
+
* **Recall (Yakalama Oranı):** %99.39
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
+
## 🛠️ Technologies Used / Kullanılan Teknolojiler
|
| 31 |
+
* **Python** (Pandas, NumPy, Scikit-Learn)
|
| 32 |
+
* **Streamlit** (Web Interface / Web Arayüzü)
|
| 33 |
+
* **Joblib** (Model Persistence / Model Kayıt)
|
| 34 |
+
* **Hugging Face Spaces** (Deployment / Yayınlama)
|
| 35 |
|
| 36 |
+
## 🚀 How It Works / Nasıl Çalışır?
|
| 37 |
+
**EN:** 1. Enter transaction details (Amount, Type, Balances) in the sidebar.
|
| 38 |
+
2. The model analyzes the relationship between the transaction amount and the account balance.
|
| 39 |
+
3. Click **"Analyze"** to see if the transaction is **Safe** or **Fraudulent**.
|
| 40 |
|
| 41 |
+
**TR:** 1. Yan menüden işlem detaylarını (Tutar, Tür, Bakiyeler) girin.
|
| 42 |
+
2. Model, işlem tutarı ile hesap bakiyesi arasındaki ilişkiyi analiz eder.
|
| 43 |
+
3. **"Analiz Et"** butonuna basarak işlemin **Güvenli** mi yoksa **Şüpheli** mi olduğunu görün.
|
| 44 |
|
| 45 |
+
## 📝 Technical Note / Teknik Not
|
| 46 |
+
**EN:** The dataset was balanced using **Under-sampling** to ensure the model can accurately identify rare fraud cases. The app also includes real-time decision analysis to explain "Why" a transaction was flagged.
|
| 47 |
|
| 48 |
+
**TR:** Modelin nadir görülen dolandırıcılık vakalarını doğru tanımlayabilmesi için veri seti **Under-sampling** yöntemiyle dengelenmiştir. Uygulama, bir işlemin neden şüpheli bulunduğunu açıklayan gerçek zamanlı karar analizleri içerir.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
|
| 50 |
+
---
|