Medical Insurance Cost Prediction using Flask and Machine Learning

The rising complexity of healthcare expenses has increased the demand for accurate medical insurance cost prediction systems. This project presents a machine learning-based approach to estimate individual insurance charges by analyzing demographic and health-related features such as age, gender, body mass index (BMI), number of dependents, smoking habits, and residential region. A publicly available dataset was preprocessed by encoding categorical attributes, scaling numerical variables, and visualizing relationships between predictors and charges. Multiple regression and ensemble algorithms, including Linear Regression, Support Vector Regression, Ridge Regression, and Random Forest Regressor, were implemented and evaluated. Comparative analysis revealed that the Random Forest Regressor outperformed other models, achieving an accuracy of approximately 86% in predicting insurance premiums. To enhance usability, the trained model was deployed using a Flask web application that provides real-time predictions based on user inputs. The system not only estimates the expected cost but also categorizes the user’s BMI and assigns a risk level according to the predicted premium, thereby improving interpretability for end-users. Furthermore, predictions are logged systematically for monitoring and analysis, ensuring transparency of model behaviour. The integration of machine learning algorithms with a lightweight web framework demonstrates the feasibility of delivering practical and user-friendly solutions in the domain of health insurance analytics. This research highlights the significance of predictive modeling in fostering fair insurance pricing, assisting individual in financial planning, and aiding insurance providers in risk assessment.

Authors

Publication Details

Journal
Advanced International Journal for Research
Published
2025-09-19
DOI
https://doi.org/10.63363/aijfr.2025.v06i05.1358
Primary Topic
Impact of AI and Big Data on Business and Society
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Medical Insurance Cost Prediction using Flask and Machine Learning

G. Harshitha, Manjula Sanjay Koti Alamma B.H.
Advanced International Journal for Research
Impact of AI and Big Data on Business and Society
article

Medical Insurance Cost Prediction using Flask and Machine Learning

G. Harshitha, Manjula Sanjay Koti Alamma B.H.
article en

Abstract

The rising complexity of healthcare expenses has increased the demand for accurate medical insurance cost prediction systems. This project presents a machine learning-based approach to estimate individual insurance charges by analyzing demographic and health-related features such as age, gender, body mass index (BMI), number of dependents, smoking habits, and residential region. A publicly available dataset was preprocessed by encoding categorical attributes, scaling numerical variables, and visualizing relationships between predictors and charges. Multiple regression and ensemble algorithms, including Linear Regression, Support Vector Regression, Ridge Regression, and Random Forest Regressor, were implemented and evaluated. Comparative analysis revealed that the Random Forest Regressor outperformed other models, achieving an accuracy of approximately 86% in predicting insurance premiums. To enhance usability, the trained model was deployed using a Flask web application that provides real-time predictions based on user inputs. The system not only estimates the expected cost but also categorizes the user’s BMI and assigns a risk level according to the predicted premium, thereby improving interpretability for end-users. Furthermore, predictions are logged systematically for monitoring and analysis, ensuring transparency of model behaviour. The integration of machine learning algorithms with a lightweight web framework demonstrates the feasibility of delivering practical and user-friendly solutions in the domain of health insurance analytics. This research highlights the significance of predictive modeling in fostering fair insurance pricing, assisting individual in financial planning, and aiding insurance providers in risk assessment.

Advanced International Journal for ResearchVol. 6(5)
Openalex Percentile: Top 70%
Impact of AI and Big Data on Business and Society
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Medical Insurance Cost Prediction using Flask and Machine Learning — G. Harshitha, Manjula Sanjay Koti Alamma B.H. · Advanced International Journal for Research (2025) | TGRS Research Map | TGRS