
Betrak takes a short assessment covering daily usage habits, sleep patterns and mental health, then runs the data through a machine learning backend to classify your addiction level with a confidence score. The results page breaks down your profile with interactive charts and gives personalized recommendations based on the prediction. Built with Next.js on the frontend and FastAPI + scikit-learn on the backend, with Google OAuth.
First time using Python as a backend and training an actual ML model, bridging a FastAPI service with a Next.js frontend while handling data preprocessing, SMOTE balancing and model serialization was all new territory.
How to connect a Next.js frontend with a Python/FastAPI backend across different runtimes and how a trained classifier actually turns input features into a real prediction with confidence.
Add a personalized progress tracker showing improvement or decline across sessions
Introduce a comparison view showing how a user's lifestyle stacks up against the healthiest profiles in the dataset.
Enable users to export their results and prediction history as a downloadable PDF report