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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
short_description: 'Archon: Professional Financial Resilience Engine'
|
| 12 |
---
|
| 13 |
|
| 14 |
+
<div align="center">
|
| 15 |
+
|
| 16 |
+
# πͺ ARCHON-AI
|
| 17 |
+
|
| 18 |
+
### Professional Financial Resilience Engine
|
| 19 |
+
|
| 20 |
+
[](https://gradio.app/)
|
| 21 |
+
[](https://python.org)
|
| 22 |
+
[](https://opensource.org/licenses/Apache-2.0)
|
| 23 |
+
[](https://huggingface.co/spaces)
|
| 24 |
+
|
| 25 |
+
*Sistem Analisis Kesehatan Finansial Nasabah Berbasis Kecerdasan Buatan*
|
| 26 |
+
|
| 27 |
+
</div>
|
| 28 |
+
|
| 29 |
+
---
|
| 30 |
+
|
| 31 |
+
## π Deskripsi
|
| 32 |
+
|
| 33 |
+
**Archon-AI** adalah aplikasi *Financial Resilience Engine* yang dirancang untuk menganalisis dan menilai kesehatan finansial nasabah secara komprehensif. Sistem ini menggunakan pendekatan multi-fase untuk memberikan insight yang akurat dan rekomendasi yang actionable bagi nasabah.
|
| 34 |
+
|
| 35 |
+
### π― Fitur Utama
|
| 36 |
+
|
| 37 |
+
| Fitur | Deskripsi |
|
| 38 |
+
|-------|-----------|
|
| 39 |
+
| **π Analisis Transaksi** | Mengklasifikasikan pengeluaran menjadi *essential* vs *discretionary* |
|
| 40 |
+
| **π Risk Scoring** | Menghitung skor risiko finansial dengan bobot multi-faktor |
|
| 41 |
+
| **π‘ Next Best Offer (NBO)** | Rekomendasi produk/layanan yang sesuai kondisi nasabah |
|
| 42 |
+
| **π Visualisasi Interaktif** | Dashboard dengan grafik arus kas, komposisi belanja, dan tren saldo |
|
| 43 |
+
| **π Laporan Naratif** | Penjelasan kondisi keuangan yang mudah dipahami |
|
| 44 |
+
|
| 45 |
+
---
|
| 46 |
+
|
| 47 |
+
## ποΈ Arsitektur Sistem
|
| 48 |
+
|
| 49 |
+
Archon-AI menggunakan arsitektur 6 fase:
|
| 50 |
+
|
| 51 |
+
```
|
| 52 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 53 |
+
β ARCHON-AI PIPELINE β
|
| 54 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
|
| 55 |
+
β FASE 1: Data Loading β Load transaksi, saldo, repayment β
|
| 56 |
+
β FASE 2: Intelligence β Semantic Parser untuk klasifikasi β
|
| 57 |
+
β FASE 3: Risk Calculation β Hitung expense ratio, trend saldo β
|
| 58 |
+
β FASE 4: Risk Scoring β Bobot 30/20/20/20/10 β
|
| 59 |
+
β FASE 5: NBO Engine β Generate rekomendasi produk β
|
| 60 |
+
β FASE 6: Explainable AI β Narrative summary generation β
|
| 61 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
### π Komponen Risk Scoring
|
| 65 |
+
|
| 66 |
+
| Komponen | Bobot | Deskripsi |
|
| 67 |
+
|----------|-------|-----------|
|
| 68 |
+
| Expense Ratio | 30% | Rasio pengeluaran terhadap pendapatan |
|
| 69 |
+
| Balance Trend | 20% | Tren pertumbuhan/penurunan saldo |
|
| 70 |
+
| Overdraft History | 20% | Riwayat saldo negatif |
|
| 71 |
+
| Missed Payments | 20% | Keterlambatan pembayaran cicilan |
|
| 72 |
+
| Base Score | 10% | Skor dasar |
|
| 73 |
+
|
| 74 |
+
---
|
| 75 |
+
|
| 76 |
+
## π οΈ Teknologi
|
| 77 |
+
|
| 78 |
+
- **Frontend**: [Gradio](https://gradio.app/) - UI Framework
|
| 79 |
+
- **Data Processing**: [Pandas](https://pandas.pydata.org/), [NumPy](https://numpy.org/)
|
| 80 |
+
- **Visualization**: [Plotly](https://plotly.com/)
|
| 81 |
+
- **AI Integration**: [Google GenAI](https://ai.google.dev/)
|
| 82 |
+
- **Deep Learning**: [PyTorch](https://pytorch.org/), [Transformers](https://huggingface.co/transformers/)
|
| 83 |
+
|
| 84 |
+
---
|
| 85 |
+
|
| 86 |
+
## π¦ Instalasi
|
| 87 |
+
|
| 88 |
+
### Prasyarat
|
| 89 |
+
|
| 90 |
+
- Python 3.8 atau lebih tinggi
|
| 91 |
+
- pip (Python package manager)
|
| 92 |
+
|
| 93 |
+
### Langkah Instalasi
|
| 94 |
+
|
| 95 |
+
1. **Clone repository**
|
| 96 |
+
```bash
|
| 97 |
+
git clone https://github.com/username/Archon-AI.git
|
| 98 |
+
cd Archon-AI
|
| 99 |
+
```
|
| 100 |
+
|
| 101 |
+
2. **Buat virtual environment** (opsional tapi disarankan)
|
| 102 |
+
```bash
|
| 103 |
+
python -m venv venv
|
| 104 |
+
|
| 105 |
+
# Windows
|
| 106 |
+
venv\Scripts\activate
|
| 107 |
+
|
| 108 |
+
# Linux/macOS
|
| 109 |
+
source venv/bin/activate
|
| 110 |
+
```
|
| 111 |
+
|
| 112 |
+
3. **Install dependencies**
|
| 113 |
+
```bash
|
| 114 |
+
pip install -r requirements.txt
|
| 115 |
+
```
|
| 116 |
+
|
| 117 |
+
4. **Setup environment variable**
|
| 118 |
+
```bash
|
| 119 |
+
# Buat file .env
|
| 120 |
+
GOOGLE_API_KEY=your_api_key_here
|
| 121 |
+
```
|
| 122 |
+
|
| 123 |
+
---
|
| 124 |
+
|
| 125 |
+
## π Menjalankan Aplikasi
|
| 126 |
+
|
| 127 |
+
```bash
|
| 128 |
+
python app.py
|
| 129 |
+
```
|
| 130 |
+
|
| 131 |
+
Aplikasi akan berjalan di `http://localhost:7860`
|
| 132 |
+
|
| 133 |
+
---
|
| 134 |
+
|
| 135 |
+
## π Struktur Project
|
| 136 |
+
|
| 137 |
+
```
|
| 138 |
+
Archon-AI/
|
| 139 |
+
βββ π app.py # Aplikasi utama Gradio
|
| 140 |
+
βββ π requirements.txt # Dependencies Python
|
| 141 |
+
βββ π Archon_Development.ipynb # Notebook development & training
|
| 142 |
+
βββ π .env # Environment variables
|
| 143 |
+
β
|
| 144 |
+
βββ π archon_v1/ # Model yang telah di-train
|
| 145 |
+
β βββ π config.json
|
| 146 |
+
β βββ π model.safetensors
|
| 147 |
+
β βββ π tokenizer.json
|
| 148 |
+
β βββ π tokenizer_config.json
|
| 149 |
+
β βββ π vocab.txt
|
| 150 |
+
β
|
| 151 |
+
βββ π Data Files/
|
| 152 |
+
βββ π transactions.csv # Data transaksi nasabah
|
| 153 |
+
βββ π customers.csv # Data profil nasabah
|
| 154 |
+
βββ π balances_revised.csv # Data saldo bulanan
|
| 155 |
+
βββ π repayments_revised.csv # Data pembayaran cicilan
|
| 156 |
+
βββ π offers.csv # Data penawaran produk
|
| 157 |
+
```
|
| 158 |
+
|
| 159 |
+
---
|
| 160 |
+
|
| 161 |
+
## π Cara Penggunaan
|
| 162 |
+
|
| 163 |
+
1. **Buka aplikasi** di browser
|
| 164 |
+
2. **Masukkan Customer ID** (format: C0001 - C0120)
|
| 165 |
+
3. **Klik tombol "ANALYZE CUSTOMER"**
|
| 166 |
+
4. **Lihat hasil analisis** yang mencakup:
|
| 167 |
+
- Status kesehatan finansial (LOW/MEDIUM/HIGH Risk)
|
| 168 |
+
- Skor risiko (0.00 - 1.00)
|
| 169 |
+
- Efisiensi belanja dalam persentase
|
| 170 |
+
- Rekomendasi dan langkah-langkah implementasi
|
| 171 |
+
|
| 172 |
+
### Screenshots
|
| 173 |
+
|
| 174 |
+
| Tab Laporan | Tab Visualisasi |
|
| 175 |
+
|-------------|-----------------|
|
| 176 |
+
| Menampilkan analisis naratif dan rekomendasi NBO | Grafik arus kas, komposisi belanja, dan tren saldo |
|
| 177 |
+
|
| 178 |
+
---
|
| 179 |
+
|
| 180 |
+
## π¨ Kategori Risiko
|
| 181 |
+
|
| 182 |
+
| Level | Skor | Warna | Rekomendasi |
|
| 183 |
+
|-------|------|-------|-------------|
|
| 184 |
+
| π’ **LOW** | < 0.4 | Hijau | Optimalkan Tabungan |
|
| 185 |
+
| π‘ **MEDIUM** | 0.4 - 0.7 | Kuning | Edukasi Pengelolaan Kas |
|
| 186 |
+
| π΄ **HIGH** | β₯ 0.7 | Merah | Program Restrukturisasi |
|
| 187 |
+
|
| 188 |
+
---
|
| 189 |
+
|
| 190 |
+
## π Visualisasi yang Tersedia
|
| 191 |
+
|
| 192 |
+
1. **Arus Kas Bulanan** - Perbandingan pemasukan (inflow) vs pengeluaran (outflow)
|
| 193 |
+
2. **Komposisi Pengeluaran** - Pie chart kebutuhan pokok vs gaya hidup
|
| 194 |
+
3. **Tren Pertumbuhan Saldo** - Line chart pertumbuhan tabungan dari waktu ke waktu
|
| 195 |
+
|
| 196 |
+
---
|
| 197 |
+
|
| 198 |
+
## π€ Kontribusi
|
| 199 |
+
|
| 200 |
+
Kontribusi sangat diterima! Silakan:
|
| 201 |
+
|
| 202 |
+
1. Fork repository ini
|
| 203 |
+
2. Buat branch fitur (`git checkout -b feature/AmazingFeature`)
|
| 204 |
+
3. Commit perubahan (`git commit -m 'Add some AmazingFeature'`)
|
| 205 |
+
4. Push ke branch (`git push origin feature/AmazingFeature`)
|
| 206 |
+
5. Buka Pull Request
|
| 207 |
+
|
| 208 |
+
---
|
| 209 |
+
|
| 210 |
+
## π Lisensi
|
| 211 |
+
|
| 212 |
+
Didistribusikan di bawah Lisensi Apache 2.0. Lihat `LICENSE` untuk informasi lebih lanjut.
|
| 213 |
+
|
| 214 |
+
---
|
| 215 |
+
|
| 216 |
+
## π Kontak
|
| 217 |
+
|
| 218 |
+
Untuk pertanyaan dan saran, silakan buka issue di repository ini.
|
| 219 |
+
|
| 220 |
+
---
|
| 221 |
+
|
| 222 |
+
<div align="center">
|
| 223 |
+
|
| 224 |
+
**Made with β€οΈ for Financial Inclusion**
|
| 225 |
+
|
| 226 |
+
</div>
|