{"id":31579176,"url":"https://github.com/pythonicshariful/insurance-charge-predictor","last_synced_at":"2026-05-09T02:31:43.251Z","repository":{"id":317060959,"uuid":"1065789044","full_name":"pythonicshariful/insurance-charge-predictor","owner":"pythonicshariful","description":"This project predicts medical insurance charges based on personal details such as age, gender, BMI, number of children, smoking habits, and region. It uses a Machine Learning model trained on the insurance.csv dataset and provides a Flask web app interface for user input","archived":false,"fork":false,"pushed_at":"2025-09-30T08:34:04.000Z","size":215590,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-05T20:53:37.106Z","etag":null,"topics":["flask","insura","machine-learning","mlapp","python","regression","scikit-learn"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pythonicshariful.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-28T12:38:06.000Z","updated_at":"2025-09-30T08:34:15.000Z","dependencies_parsed_at":"2025-09-28T16:39:43.414Z","dependency_job_id":null,"html_url":"https://github.com/pythonicshariful/insurance-charge-predictor","commit_stats":null,"previous_names":["pythonicshariful/insurance-charge-predictor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pythonicshariful/insurance-charge-predictor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonicshariful%2Finsurance-charge-predictor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonicshariful%2Finsurance-charge-predictor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonicshariful%2Finsurance-charge-predictor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonicshariful%2Finsurance-charge-predictor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pythonicshariful","download_url":"https://codeload.github.com/pythonicshariful/insurance-charge-predictor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythonicshariful%2Finsurance-charge-predictor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32804899,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","insura","machine-learning","mlapp","python","regression","scikit-learn"],"created_at":"2025-10-05T20:47:44.260Z","updated_at":"2026-05-09T02:31:43.017Z","avatar_url":"https://github.com/pythonicshariful.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🏥 Insurance Charges Prediction App\n\nThis project predicts **medical insurance charges** based on personal details such as age, gender, BMI, number of children, smoking habits, and region.  \nIt uses a **Machine Learning model** trained on the `insurance.csv` dataset and provides a **Flask web app** interface for user input.\n\n---\n\n## 📂 Dataset\nThe dataset (`insurance.csv`) contains the following columns:\n\n- `age` → Age of the individual  \n- `sex` → Gender (`male` / `female`)  \n- `bmi` → Body Mass Index  \n- `children` → Number of children  \n- `smoker` → Smoking status (`yes` / `no`)  \n- `region` → Residential region (`northeast`, `northwest`, `southeast`, `southwest`)  \n- `charges` → Medical insurance cost (Target variable)\n\n---\n\n## ⚙️ Tech Stack\n- Python 3.12+\n- Flask\n- Pandas\n- NumPy\n- Scikit-learn\n- HTML/CSS (for the frontend)\n\n---\n\n## 🚀 Features\n✅ Train a regression model on `insurance.csv`  \n✅ Flask app takes user input (Age, BMI, Children, Smoker, Region, etc.)  \n✅ Predicts expected **insurance charges**  \n✅ Simple web UI  \n\n---\n\n## 📦 Installation\n\nClone the repository:\n\n```bash\ngit clone https://github.com/pythonicshariful/insurance-charge-predictor.git\ncd insurance-charge-predictor\n```\n\nCreate and activate a virtual environment:\n\n```bash\npython -m venv venv\nsource venv/bin/activate   # On Linux/Mac\nvenv\\Scripts\\activate      # On Windows\n```\n\nInstall dependencies:\n\n```bash\npip install -r requirements.txt\n```\n\n---\n\n## ▶️ Usage\n\nRun the Flask app:\n\n```bash\npython app.py\n```\n\nOpen your browser and go to:\n\n```\nhttp://127.0.0.1:5000\n```\n\nEnter details like Age, BMI, Smoker, etc. → Get predicted charges 🎉  \n\n---\n\n## 📸 Example UI\n![App Screenshot](screenshot.png)\n---\n\n## 🎥 Tutorial Video\n\n[![Watch the tutorial](https://img.youtube.com/vi/eqWBtlbKYj0/maxresdefault.jpg)](https://youtu.be/eqWBtlbKYj0)\n\n\n---\n\n## 📊 Model Performance\n- Algorithm used: `RandomForestRegressor` (or whichever you used)\n- Evaluation metrics: RMSE, R² Score\n\n---\n\n## 🏷️ Tags\n`#machine-learning` `#flask` `#insurance` `#regression` `#python` `#scikit-learn` `#ml-app`  \n\n---\n\n## 📜 License\nThis project is licensed under the MIT License.\n\n---\n\n👨‍💻 **Author:** [Shariful Islam](https://github.com/pythonicshariful)  \n🚀 Happy Coding!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythonicshariful%2Finsurance-charge-predictor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpythonicshariful%2Finsurance-charge-predictor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythonicshariful%2Finsurance-charge-predictor/lists"}