Advanced International Journal for Research

E-ISSN: 3048-7641     Impact Factor: 9.11

A Widely Indexed Open Access Peer Reviewed Multidisciplinary Bi-monthly Scholarly International Journal

Call for Paper Volume 6, Issue 5 (September-October 2025) Submit your research before last 3 days of October to publish your research paper in the issue of September-October.

Medical Insurance Cost Prediction using Flask and Machine Learning

Author(s) Ms. Harshitha G J, Dr. Manjunath Kumar B H
Country India
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.
Keywords Medical Insurance, Cost Prediction, Machine Learning, Flask, Regression
Field Computer > Artificial Intelligence / Simulation / Virtual Reality
Published In Volume 6, Issue 5, September-October 2025
Published On 2025-09-19
DOI https://doi.org/10.63363/aijfr.2025.v06i05.1358
Short DOI https://doi.org/g938mq

Share this