ZakyF commited on
Commit
f068422
Β·
1 Parent(s): 9243a73
Files changed (1) hide show
  1. README.md +213 -1
README.md CHANGED
@@ -11,4 +11,216 @@ license: apache-2.0
11
  short_description: 'Archon: Professional Financial Resilience Engine'
12
  ---
13
 
14
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ [![Gradio](https://img.shields.io/badge/Built%20with-Gradio-orange?logo=gradio)](https://gradio.app/)
21
+ [![Python](https://img.shields.io/badge/Python-3.8+-blue?logo=python)](https://python.org)
22
+ [![License](https://img.shields.io/badge/License-Apache%202.0-green.svg)](https://opensource.org/licenses/Apache-2.0)
23
+ [![HuggingFace Spaces](https://img.shields.io/badge/πŸ€—-Hugging%20Face%20Spaces-yellow)](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>