CardApprove AI

About This Project

This is an end-to-end machine learning project that predicts whether a credit card application is likely to be approved or rejected. It was built to demonstrate a complete ML pipeline — from data preprocessing and model training to serving predictions through a web interface. The project is intended for academic and portfolio use, not real-world financial decision-making.

Machine Learning Workflow

1

Data Collection

The UCI Credit Card Approval dataset is loaded, cleaned, and split into training and test sets.

2

Preprocessing

Categorical features are label-encoded. Numerical features are standardised using StandardScaler.

3

Model Training

A Logistic Regression classifier is trained on the processed data and evaluated on held-out test samples.

4

Serialisation

The trained model and scaler are saved using joblib for deployment with the Flask backend.

5

Serving Predictions

The Flask API receives applicant features from the frontend, preprocesses them, and returns a prediction with probability.

Frontend & Backend

The frontend is built with Next.js 16 and Tailwind CSS. It collects applicant details via a structured form, validates inputs client-side, and sends them to the backend for prediction.

The backend is a Flask (Python) API that loads the serialised model and scaler, preprocesses incoming feature vectors, runs inference, and returns the predicted class and probability score.

Tech Stack

Dataset

UCI Credit Card Approval Dataset — 690 applicants, 15 features

Model

Logistic Regression with StandardScaler preprocessing

Backend

Flask (Python) with joblib model serialisation

Frontend

Next.js 16, Tailwind CSS, React

Features Used by the Model

The classifier considers the following 13 applicant attributes:

Future Integration

A planned next step is to deploy the Flask API to Render for production hosting. This would replace the local Flask inference layer with a managed, scalable cloud deployment — enabling REST API calls for real-time predictions from anywhere.

Disclaimer

All predictions are for educational and demonstration purposes only. They do not constitute real financial advice or formal credit decisions. Always consult your financial institution for official credit assessments.