01 / 11
BIT 7th Semester · AI/ML Project

Medical Insurance
Cost Predictor

An AI-powered web application that predicts annual health insurance costs using Machine Learning — deployed live on Hugging Face 🚀

🟢 Live on Hugging Face Python · Gradio · Scikit-learn

Balmiki lincoln college

Our Team

Meet the Developers

A
Aashish Neupane
Roll No. 01
A
Aayush Gishing
Roll No. 02
A
Anil Rai
Roll No. 03
A
Anjali Shah
Roll No. 04
A
Anu Dahal
Roll No. 05
A
Ayush Dahal
Roll No. 06
Problem Statement

Why This Matters?

😟 The Problem

  • People don't know their insurance cost in advance
  • Manual calculation is complex and time-consuming
  • No easy tool for Nepali context (NPR cost)

✅ Our Solution

  • 🤖
    ML model predicts cost instantly
  • 🇳🇵
    Shows both USD and NPR conversion
  • 🌐
    Live web app — accessible anywhere
Dataset

Kaggle Insurance Dataset

Total Records 1,338
Features Used 6
Source Kaggle.com

Features

Age18 – 64
👤 GenderMale / Female
⚖️ BMI15.9 – 53.1
Children0 – 5
🚬 SmokerYes / No
📍 Region4 US Regions
Technology

Tech Stack

🐍

Python

Core programming language

🎛️

Gradio

Interactive web UI framework

🔬

Scikit-learn

ML model training & prediction

🔢

NumPy / Pandas

Data processing & arrays

🤗

Hugging Face

Free cloud deployment

💾

Joblib

Save & load ML model

Machine Learning

The ML Model

📐 Linear Regression

  • Finds relationship between features and cost
  • Trains on 80% of 1,338 records
  • Tests on remaining 20%
  • Saved as model.pkl using Joblib

Model Performance

R² Score ~0.74
Accuracy Level Good
⚡ Smokers pay ~3× more than non-smokers
System Flow

How It Works

👤
User Input
Age, BMI, Gender, Smoker, Children, Region
🔄
Encode
Convert text to numbers for the model
🤖
Predict
Linear Regression model.pkl runs
💱
Convert
USD → NPR at 133 rate
📊
Result
Shows cost in USD & NPR
✅ BMI Calculator built-in ✅ kg ↔ lbs Converter ✅ Login & Register System
Application

App Features

🔐 Authentication

  • Login & Register system
  • 3 default users always work
  • Email validation built-in
  • Secure password (min 6 chars)

🏥 Predictor Tools

  • Insurance cost in USD & NPR
  • BMI calculator (kg + ft input)
  • kg ↔ lbs weight converter
  • Animated gradient UI
Deployment

Live on Hugging Face

🤗
Hugging Face Spaces
Free cloud hosting — no server needed
ayushd12-insurancepredictor.hf.space
🟢 LIVE
3
Files Uploaded
app.py · model.pkl · requirements.txt
FREE
Hosting Cost
Zero cost deployment
24/7
Availability
Always accessible online
Honest Assessment

Limitations & Future Scope

⚠️ Current Limitations

  • Dataset is USA-based, not Nepal
  • Regions are American (SE, SW, NE, NW)
  • Only 6 features — no health history

🚀 Future Enhancements

  • Collect real Nepal insurance dataset
  • Add health features: diabetes, heart disease
  • Use XGBoost for better accuracy
  • Permanent database for user accounts
  • Mobile app version
Balmiki Lincoln College · AI/ML Project

Thank You!

We hope this project demonstrates the real-world power of Machine Learning in healthcare cost estimation.

🌐 ayushd12-insurancepredictor.hf.space
Aashish · Anil · Anjali · Anu · Aayush T. · Ayush D.
Balmiki Lincoln College