Artha AI is a modular AI-powered fintech intelligence platform built using Python and Streamlit.
It integrates secure authentication, transaction risk detection, behavioral anomaly analysis, live market tracking, and AI-based price prediction into a unified dashboard.
This project demonstrates how machine learning models can be embedded into financial systems for fraud detection, risk scoring, and predictive analytics.
- User Registration & Login
- SHA-256 Password Hashing
- SQLite Database Storage
- Session-Based Access Control
- Protected Dashboard Access
- UPI QR Code Generation (Fixed & Dynamic)
- Transaction Logging
- ML-Based Risk Detection
- Automatic High-Risk Blocking
- User-Specific Transaction History
- Isolation Forest Anomaly Detection
- Transaction Deviation Analysis
- Risk Score (0β95%)
- Confidence Calculation
- Behavioral Insights Dashboard
- NSE/BSE Data via yfinance
- Intraday Candlestick Charts
- Real-Time Price Metrics
- Volatility-Based Market Risk Index
- Linear Regression Model
- Next-Day Price Estimation
- Direction Forecast (UP / DOWN)
- Volatility-Based Risk Probability
- Interactive Plotly Visualization
- Total Transactions
- Total Revenue
- Average & Maximum Transaction
- Risk Distribution Pie Chart
- Transaction Trend Visualization
+-------------------------------------------------------------------+
| USER |
| (Browser / Streamlit UI) |
+-------------------------------------------------------------------+
|
v
+-------------------------------------------------------------------+
| PRESENTATION LAYER |
| Login β’ Dashboard β’ QR Generator β’ Charts β’ Analytics |
+-------------------------------------------------------------------+
|
v
+-------------------------------------------------------------------+
| APPLICATION LAYER |
| Authentication β’ Transaction Manager β’ Risk Engine |
| Market Data Handler β’ Prediction Engine |
+-------------------------------------------------------------------+
| |
v v
+-----------------------------+ +------------------------------+
| MACHINE LEARNING LAYER | | EXTERNAL DATA |
| LogisticRegression | | yfinance (NSE/BSE) |
| IsolationForest | +------------------------------+
| LinearRegression |
+-----------------------------+
|
v
+-------------------------------------------------------------------+
| DATA LAYER |
| SQLite Database (users, transactions) |
| Session State |
+-------------------------------------------------------------------+
User Login
β
Password Hash (SHA-256)
β
Validate Against SQLite
β
Session State Updated
β
Access Dashboard
Transaction Created
β
Stored in Database
β
Historical Data Extracted
β
IsolationForest Model
β
Anomaly Score Generated
β
Final Risk Score (0β95%)
β
Displayed on Dashboard
Risk Formula:
Final Risk = Behavioral Deviation + ML Boost
Confidence = min(100, transaction_count Γ 10)
Select Stock
β
Fetch Data via yfinance
β
Data Cleaning & Processing
β
Candlestick Rendering
β
Volatility Calculation
β
Market Risk Classification
Historical Market Data
β
Feature Engineering
(Returns + Volatility)
β
LinearRegression Model
β
Next-Day Price Prediction
β
Direction + Risk Probability
| Model | Purpose |
|---|---|
| LogisticRegression | Basic transaction risk classification |
| IsolationForest | Behavioral anomaly detection |
| LinearRegression | Stock price prediction |
- id
- username
- password (hashed)
- id
- username
- amount
| Layer | Technology |
|---|---|
| Frontend | Streamlit |
| Backend | Python |
| Database | SQLite |
| ML | scikit-learn |
| Market API | yfinance |
| Data | Pandas, NumPy |
| Visualization | Plotly, Matplotlib |
| Security | hashlib (SHA-256) |
git clone https://github.com/adit-11/ArthaaAI.git
cd ArthaaAI/ArthaAIpython -m venv venv
venv\Scripts\activatepip install -r requirements.txtstreamlit
pandas
numpy
plotly
yfinance
scikit-learn
requests
streamlit run main.py- Modular architecture
- Clear separation of concerns
- Lightweight database integration
- Reproducible ML workflow
- Clean financial UI theme
- Scalable structure for future backend expansion
- FastAPI backend integration
- Deep learning-based fraud detection
- Real UPI payment gateway integration
- Cloud deployment (AWS / Azure)
- Admin analytics dashboard
- Portfolio risk scoring engine
Aditya Anand
B.Tech β Information Technology
Manipal University Jaipur
If you found this project useful:
β Star the repository
π΄ Fork it
π Share it