Inspiration

We were inspired by the harsh reality faced by Small and Medium-sized Enterprises (SMEs) in Mexico and Latin America. We noticed that the vast majority of businesses do not fail due to a lack of talent or sales, but rather due to poor management of their seasonal liquidity. Seasonal businesses suffer drastic revenue peaks followed by months of slow sales where fixed monthly expenses become a fatal trap. We wanted to create a tool that does not simply show past charts, but rather anticipates the financial future of the business and offers an active mechanism for capital protection and growth.

What it does

PredictCash is an autonomous and intelligent web platform designed to optimize SME treasury management. The application allows users to:

Predict cash flow over 30 days using a Machine Learning model and the fundamental daily treasury equation:

Final Balance_t = Initial Balance_t + Cash-In_t - Cash-Out_t

Check real-time banking data through integration with the Capital One (Nessie API) Sandbox environment.

Simulate live transactions (income and expenses) that instantly recalculate business metrics.

Protect capital with an Intelligent Savings Box that applies a $12.5\%$ annual yield via monthly compound interest:

A_n = (A_{n-1} + M) X (1 + {r/12})

Receive automated diagnoses and action plans powered by Gemini AI, featuring a fail-safe local fallback system.

How we built it

We built PredictCash by structuring a modular three-layer architecture:

Banking Data Layer (Sandbox Backend): Integration with the Capital One (Nessie) API using HTTP requests (GET and POST) to manage accounts, deposits, and purchases in real time.

Intelligence and Machine Learning Layer: Implementation of a predictive model using Scikit-Learn (Random Forest Regressor) to estimate seasonal inflows (Cash-In), backed by a conversational agent powered by Google Gemini AI for generating JSON-structured recommendations.

Presentation Layer (Frontend): Developed entirely in Streamlit (Python), with advanced custom CSS injection to achieve a high-level corporate neobanking visual identity (dark blue background, contrasting cards, and red action buttons).

Challenges we ran into

During the high-pressure hackathon development, we faced and overcame significant technical challenges:

Transaction Synchronization: Ensuring that deposit and purchase entries made in the live simulator immediately updated the Machine Learning model and recalibrated the liquidity curve without compromising interface fluidity.

Corporate Visual Consistency: Mastering advanced custom styling in Streamlit via CSS to eliminate default colors and deliver an impeccable aesthetic experience worthy of a professional financial application.

External Resilience: Designing a robust local fallback mechanism so that, in the event of any network latency or interruption with the Gemini AI API, the system maintains full functionality and delivers precise diagnoses without throwing screen errors.

Accomplishments that we're proud of

Successfully integrating a real sandbox banking environment (Capital One Nessie API) instead of relying on static or fictional mock data.

Successfully merging quantitative predictive analytics (Random Forest) with a viable business financial model (the compound-interest savings box).

Building a polished, responsive user interface that projects absolute confidence and corporate professionalism.

What we learned

We thoroughly understood the importance of combining quantitative algorithmic data prediction with a real business solution to solve critical economic problems for small business owners.

We learned to design modular software architecture under extreme pressure, prioritizing backend resilience and an exceptional user experience (UX/UI).

What's next for PredictCash

Expanded Banking Gateways: Connecting PredictCash with more Open Banking APIs to support multi-bank accounts.

Automated Alerts: Implementing proactive notification systems via SMS or email when the model detects an imminent liquidity risk in the coming days.

Tax Scenario Optimization: Adding tax estimation and withholding modules to offer comprehensive financial planning for micro-entrepreneurs.

Built With

Share this project:

Updates

Submission history