{"id":21263040,"url":"https://github.com/memudualimatou/insurance-charges-web-application","last_synced_at":"2025-08-31T08:31:58.473Z","repository":{"id":112734958,"uuid":"322946863","full_name":"memudualimatou/INSURANCE-CHARGES-WEB-APPLICATION","owner":"memudualimatou","description":null,"archived":false,"fork":false,"pushed_at":"2023-07-24T20:19:39.000Z","size":1966,"stargazers_count":14,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-05T20:33:10.574Z","etag":null,"topics":["flask","heroku","insurance-charges-prediction"],"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/memudualimatou.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}},"created_at":"2020-12-19T22:10:03.000Z","updated_at":"2024-05-10T18:47:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"fb1d4fde-78cf-4dc6-9f78-40b2f6a6308d","html_url":"https://github.com/memudualimatou/INSURANCE-CHARGES-WEB-APPLICATION","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/memudualimatou/INSURANCE-CHARGES-WEB-APPLICATION","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memudualimatou%2FINSURANCE-CHARGES-WEB-APPLICATION","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memudualimatou%2FINSURANCE-CHARGES-WEB-APPLICATION/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memudualimatou%2FINSURANCE-CHARGES-WEB-APPLICATION/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memudualimatou%2FINSURANCE-CHARGES-WEB-APPLICATION/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/memudualimatou","download_url":"https://codeload.github.com/memudualimatou/INSURANCE-CHARGES-WEB-APPLICATION/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memudualimatou%2FINSURANCE-CHARGES-WEB-APPLICATION/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272958310,"owners_count":25022051,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"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","heroku","insurance-charges-prediction"],"created_at":"2024-11-21T05:00:04.208Z","updated_at":"2025-08-31T08:31:58.468Z","avatar_url":"https://github.com/memudualimatou.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n\n\u003ch2 align=\"center\"\u003e INSURANCE CHARGES  PREDICTION SYSTEM\u003c/h2\u003e\n\n\u003ch4 align=\"center\"\u003e\u003ci\u003eThis is a charge prediction system. The aim is to predict individual insurance charges based on their status\u003c/i\u003e\u003c/h4\u003e\u003cbr\u003e\n\n\n## 😇 INSPIRATION\nThe purposes of this Project to look into different features to observe their relationship, and plot a regression algorithm based on several features of individual such as age, physical/family condition and location against their existing medical expense to be used for predicting future medical expenses of individuals that help medical insurance to make decision on charging the premium.The dataset has 7 coloumns which are age,sex,region,charges,numberOfChildren, smoke and BMI which is Body mass index (BMI) is a measure of body fat based on height and weight that applies to adult men and women. BMI= m/h^2\nwhere\nm\t=\tmass (in kilograms)\nh\t=\theight (in meters)\n\n\n\u003cbr\u003e\u003cbr\u003e\n\n\n## ⚙️ HOW DOES THE INSURANCE CHARGES PREDICTION SYSTEM WORKS?\n\nThis sytem is a flask responsive web application  hosted on heroku. The user has to input some data and get the predicted charges immediately.\nThe system's interface is built using using HTML \u0026 CSS  from scratch.Everything is all about preferences but I will personnaly prefer to  style my web app than using the plain streamlit interface.\nSo We use randomforestRegression algorithm to build the model, sterialize it and destrerialize it using Pickle to make prediction. Whenever a user enter the correspondant input through the interface, at the backend , a function in the flask app is called to fetch the inputted data, clean it and displayed the predicted outcome.\u003cbr\u003e\u003cbr\u003e\n\nThe system depends on the following files.\n1. `insurance.csv` [See here](https://github.com/memudualimatou/INSURANCE-CHARGES-WEB-APPLICATION/blob/master/insurance.csv) :The system database  [CLICK HERE TO DOWNLOAD](https://www.kaggle.com/noordeen/insurance-premium-prediction)\n2. `insurances.ipynb` [See here](https://github.com/memudualimatou/INSURANCE-CHARGES-WEB-APPLICATION/blob/master/Insurances.ipynb) :The model notebook\n3. `insurances.py` [See here](https://github.com/memudualimatou/INSURANCE-CHARGES-WEB-APPLICATION/blob/master/Insurances.py): The model python file\n4. `app.py` [See here](https://github.com/memudualimatou/INSURANCE-CHARGES-WEB-APPLICATION/blob/master/app.py): The flask app\n5. `index.html` [See here](https://github.com/memudualimatou/INSURANCE-CHARGES-WEB-APPLICATION/blob/master/templates/index.html): The html file is located insite the Templates folder\n6. `AppStyle.css` [See here](https://github.com/memudualimatou/INSURANCE-CHARGES-WEB-APPLICATION/blob/master/static/AppStyle.css): The css file is located inside the static folder.\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\n\n\n## ⚠️ THE TECHNOLOGY\n* [FLASK](https://en.wikipedia.org/wiki/Flask_(web_framework))\n\n* [HEROKU](https://en.wikipedia.org/wiki/Heroku)\n\n* [PICKLE](https://en.wikipedia.org/wiki/Pickle)\n\n* [RANDOM FOREST REGRESSION](https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.RandomForestRegressor.html)\u003cbr\u003e\u003cbr\u003e\n\n\n# ⌛ Project Demo\n\u003cbr\u003e\n\n[DEPLOYED ON HEROKU | CLICK HERE TO TEST THE SYSTEM](https://insurance-charges-web-app.herokuapp.com/)\n\u003cbr\u003e\n\u003cbr\u003e\n\n![capture](https://github.com/memudualimatou/INSURANCE-CHARGES-WEB-APPLICATION/blob/main/IMAGES/ezgif.com-gif-maker%20(2).gif)\u003cbr\u003e\n\u003cbr\u003e\u003cbr\u003e\n\n# 🔑 Prerequisites\nAll the dependencies and required libraries are included in the file `requirements.txt` [See here](https://github.com/memudualimatou/INSURANCE-CHARGES-WEB-APPLICATION/blob/master/requirements.txt): The css file located inside the static foler.\n\u003cbr\u003e\u003cbr\u003e\n\n## 🚀 INSTALLATION\n\nClone the repo\\\n```$ https://git.heroku.com/insurance-charges-web-app.git```\n\n\nNow, run the following command in your Terminal/Command Prompt to install the libraries required\n\n```$ pip3 install -r requirements.txt```\n\n\n# 👏 And it's done!\nFeel free to mail me for any doubts/query ✉️ alimatousadia005@gmail.com\n\u003cbr\u003e\u003cbr\u003e\n\n\n\n# ❤️ Owner\nMade with ❤️  by MEMUDU Alimatou Sadia Anike.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmemudualimatou%2Finsurance-charges-web-application","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmemudualimatou%2Finsurance-charges-web-application","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmemudualimatou%2Finsurance-charges-web-application/lists"}