A machine learning-powered expense tracking application that helps you manage your finances better by automatically categorizing expenses and providing intelligent insights.
- User authentication system
- Automatic expense categorization using machine learning
- Visual expense analytics with charts
- Smart budget recommendations
- Expense trend analysis
- Responsive web interface
- Python 3.8+
- Flask (Web Framework)
- SQLAlchemy (Database ORM)
- scikit-learn (Machine Learning)
- Plotly (Data Visualization)
- Bootstrap 5 (Frontend Framework)
- SQLite (Database)
- Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Initialize the database:
python
>>> from app import app, db
>>> with app.app_context():
... db.create_all()
>>> exit()- Run the application:
python app.py- Open your browser and navigate to
http://localhost:5000
- Register a new account or login with existing credentials
- Add your expenses using the form on the dashboard
- The ML model will automatically suggest categories based on your description and amount
- View your expense distribution in the pie chart
- Track your spending patterns in the expense history table
- Automatic expense categorization using Random Forest Classifier
- Feature extraction from expense descriptions
- Continuous model improvement as more data is collected
- Personalized category suggestions based on user history
- Secure password hashing
- User session management
- CSRF protection
- Input validation and sanitization
- Fork the repository
- Create a new branch for your feature
- Submit a pull request
MIT License "# smart-expense-tracker"