DEV Community

Cover image for 💸 Expenzy: An AI-Powered Expense Tracker with Forecasting, Clustering & Anomaly Detection
Bharath D
Bharath D

Posted on

2

💸 Expenzy: An AI-Powered Expense Tracker with Forecasting, Clustering & Anomaly Detection

Expenzy: A Smart Expense Tracker Built with the MERN Stack and Real Machine Learning

Hey dev community 👋,

I’m excited to share Expenzy — my college mini project that grew into a full-featured personal expense manager built on the MERN stack — with integrated Machine Learning for smarter budgeting!


🚀 What is Expenzy?

Most expense trackers just record numbers. Expenzy goes beyond that. It helps you:

✅ Log and track expenses securely (with authentication)

✅ Visualize your spending on an intuitive dashboard

✅ Forecast future expenses using Prophet

✅ Detect unusual transactions with Anomaly Detection

✅ Cluster your spending patterns with K-Means Clustering

✅ Predict sales with Logistic Regression

✅ Get personalized budget recommendations — all powered by real ML models!


⚙️ Tech Stack

  • Frontend: React.js (interactive, responsive UI)
  • Backend: Node.js + Express.js (API and server logic)
  • Database: MongoDB (secure, flexible data storage)
  • Machine Learning: Implemented using JS libraries and integrated directly in the backend logic.

🔑 Why Expenzy is Different

Feature Typical Expense Tracker Expenzy
Authentication
Dashboard & Reports
Machine Learning Forecasting
Anomaly Detection
Budget Recommendations
K-Means Clustering
Built with MERN Stack
Open Source
Ready for Production

📊 Key ML Features

📈 Forecasting with Prophet

Predict your future expenses based on historical data so you can plan ahead confidently.

🕵️ Anomaly Detection

Catch suspicious or unusual spending patterns to avoid surprises.

📑 K-Means Clustering

Automatically group your spending categories for clearer insights into your habits.

🎯 Budget Recommendation

Get smart, personalized suggestions on how much to budget based on your spending history.


🖥️ Live Demo

👉https://expenzy-git-main-bharath-ds-projects.vercel.app


📂 Source Code

Here’s the complete codebase if you want to explore, fork, or contribute:

👉 Bharath80988/Expenzy


📌 Why I Built Expenzy

I wanted to challenge myself to:

  • Combine a clean MERN architecture with actual Machine Learning models
  • Make personal finance smarter, not just a digital ledger
  • Learn to deploy full-stack apps with modern tooling

🚀 What’s Next

✅ Add notifications & alerts for anomalies

✅ Fine-tune ML models with larger datasets

✅ Build a mobile app version for on-the-go tracking

✅ Deploy a robust production version with CI/CD


🤝 Let’s Connect!

Your feedback is super valuable. Let me know what you think or how you’d improve it!

📫 LinkedIn

⭐️ GitHub


If you liked this project, please leave a ❤️, star the repo, and share your thoughts below! 🚀✨


#mernstack #react #node #mongodb #machinelearning #webdev #opensource #budgeting

[Webinar] Building a self-service infrastructure portal

[Webinar] Building a self-service infrastructure portal

Register for the August 6 webinar where we'll be deploying infrastructure with Spacelift in the flavor of Minecraft servers.

Register Now

Top comments (2)

Collapse
 
autocrat_autocrat_240b81c profile image
autocrat autocrat

I tried to use the project but every time i tried to log in i was unable to . I would really want to know about the project and am very much interested in it but it didnt open , i tried every type of login but i was unable to access the website . I would like to reach you out so if there is any way that i can talk to u , i would like it

Collapse
 
bharath_d_2005 profile image
Bharath D

Hey! Actually, it was a group project and my partner didn’t implement the authentication properly — sorry for the inconvenience. But you can directly click on the Home page to access the main functions and navigate to the Reports page for the ML features. Also, check out the NLP functionality I implemented on the Home page!

MongoDB Atlas runs apps anywhere. Try it now.

MongoDB Atlas runs apps anywhere. Try it now.

MongoDB Atlas lets you build and run modern apps anywhere—across AWS, Azure, and Google Cloud. With availability in 115+ regions, deploy near users, meet compliance, and scale confidently worldwide.

Start Free

👋 Kindness is contagious

Explore this practical breakdown on DEV’s open platform, where developers from every background come together to push boundaries. No matter your experience, your viewpoint enriches the conversation.

Dropping a simple “thank you” or question in the comments goes a long way in supporting authors—your feedback helps ideas evolve.

At DEV, shared discovery drives progress and builds lasting bonds. If this post resonated, a quick nod of appreciation can make all the difference.

Okay