Project Info
Inspiration
๐ช๐ผ Health insurance, everyone needs it, no one wants to pay for it. As soon-will-be adults, health insurance has been a growing concern. Since a simple ambulance ride easily costs up to thousands of dollars, not having health insurance is a terrible decision in the US. But how much are you supposed to pay for it? Insurance companies publish their rates, but just having formulas doesn't tell me anything about if they are ripping me off, especially for young adults having never paid for health insurance.
What it does
? ๐ Thus, to prevent being ripped off on health insurance after leaving our parents' household. We have developed Health Insurance 4 Dummies. A website utilizing a machine learning model that determines a fair estimate for the annual costs of health insurance, based on user inputs of their personal information. It also uses a LMM to provide detailed information on the composition of the cost.
How we built it
๐ท๐ผโโ๏ธ The front-end is built using convex-react, creating an UI that takes inputs from the user. The backend is built using python-flask, which communicates with remote services, InterSystems and Together.AI. The ML model is a feed-forward neural network (MLP) for predicting the cost is built on InterSystems using the H2O ML workflow library, trained on a dataset consist of individual's information and their annual rate for health insurance. The explanation of costs is created using Together.AI's Llama-2 model.
Challenges we ran into
๐จ Full-stack development is tedious, especially when the functions require remote resources. Finding good datasets to train the model. Authentication in connecting and accessing the trained model on InterSystem using their IRIS connection driver. Choosing the right model to use from Together.AI.
Accomplishments we're proud of
โญ Trained and accessed ML model on a remote database open possibility for massive datasets, integrating LMMs to provide automated information.
What we learned
๐ Full-Stack Development skills, ML model training and utilizing. Accessing remote services using APIs, TLS authentication.
What's next
for Health Insurance 4 Dummys ๐ฎ Gather larger datasets to make more parameters available and give more accurate predictions.
Hleath-Insurance-4-Dummies
CalHack 10.0 2023 - Table 46
[InterSystems Challenge: 2nd Place]
DevPost/Video Demo Link :
https://devpost.com/software/health-insurance-for-dummys
Descriptions:
Choosing the right health insurance is a major concern, especially for young adults. Health Insurance 4 Dummies aims to simplify this complex decision-making process by providing a fair estimate of annual health insurance costs based on user inputs, and using an AI language model to justify the cost.
Commands to Launch Servers
- FrontEnd - in the /flaskapp directory: run
python flaskapp.py - BackEnd - in the /reactapp directory: run
npm run dev - webpage url:
http://localhost:5173/
Structure
- FrontEnd: Convex-React-Vite
- BackEnd: Python Flask
- ML Model Training: InterSystems-ML_Integration
- AI Response: TogetherAI-Llama-2
Analysis
View
Metric
- 20
Figures cover GitHub contributors during the hackathon window. A co-authored commit counts in full for each author, so per-member totals add up to more than the whole-team figures.
Technology
- CSSIn code
- FlaskIn code
- HTMLIn code
- JavaScriptIn code
- PythonIn code
- ReactIn code
- SQLClaimed
6 of 7 appear in the indexed code. 1 claimed on Devpost could not be matched to code, which may simply mean the tool leaves no trace in the repository.
AI coding agents
No AI coding agent signals were found in this repository.
Detected from committed agent config files and commit authorship. Absence of a signal is not proof an agent was unused.
Codebase size
Source size
13 KB
Source files
12
Counts recognized source files only; vendored directories, binaries and lockfiles are excluded, so this is smaller than the repository on disk.
Repository
jjin43/Health-Insurance-4-Dummies
23 files ยท 259 KB ยท @ de76574
Structure
Interface
2 files ยท 9%Screens, components and styles rendered to the user.
Application logic
9 files ยท 39%Domain rules, services and shared utilities.
Supporting
Layers are inferred from where files sit in the tree, not from reading the code. A project that names its directories unconventionally will read oddly here โ open the file browser to check anything the diagram implies.
Languages
- CSS36%
- Python32%
- JavaScript15%
- HTML10%
- Markdown6%
Share of indexed source by file size. Binary and vendored files are excluded.
Dependencies
reactapp/package.json
npm ยท 10- react
- react-dom
- +8 more
flaskback/requirements.txt
pypi ยท 6- .
- Flask
- json
- ssl
- subprocess
- together
Declared in the repositoryโs manifests at the indexed commit. A declared package is not proof it is used, and runtime dependencies are listed first.
Feature verification
Flask backend receiving form submissionVerified
Backend built using python-flask, which communicates with remote services
Claimed on Devposthigh confidenceflaskback/flaskapp.py:9โ Flask route /submit reads form fields and orchestrates prediction and AI explanation calls
React front-end form for personal info inputVerified
Front-end built with convex-react, UI takes user inputs (age, sex, bmi, children, smoker, region)
Claimed on readmehigh confidencereactapp/src/App.jsx:14โ Form with age, sex, bmi, children, smoker, region inputs posts to Flask backend
Results page displaying predicted cost, profile, and AI explanationVerified
Website utilizing a machine learning model that determines a fair estimate for annual costs... provides detailed information on the composition of the cost
Claimed on Devposthigh confidenceflaskback/templates/results.html:10โ Template renders predict, profile fields, and aiResponse returned from the Flask routeflaskback/flaskapp.py:60โ render_template call passes predict, profile data, and aiResponse to results.html
InterSystems IRIS connection driver / TLS authenticationCode-supported
Authentication in connecting and accessing the trained model on InterSystems using their IRIS connection driver, TLS authentication
Claimed on Devpostmedium confidenceflaskback/interSys.py:6โ Uses ssl.create_default_context with a certificate file and iris.connect with sslcontext, but connection_str/username/password are placeholder '...' values so this is not a working, verifiable end-to-end connection
LLM-generated explanation of insurance cost composition (Together.AI Llama-2)Code-supported
Uses Together.AI's Llama-2 model to provide detailed information on the composition of the cost
Claimed on Devpostmedium confidenceflaskback/togetherAI.py:15โ Calls together.Complete.create with model togethercomputer/llama-2-13b-chat and a prompt built from the user's data and predicted cost, but together.api_key is a placeholder '...' so it cannot run without a real key
ML model prediction via InterSystems IRISCode-supported
ML model (feed-forward neural network / MLP) built on InterSystems using H2O ML workflow, trained on dataset of individuals' info and insurance rates, predicts annual cost
Claimed on Devpostmedium confidenceflaskback/interSys.py:15โ Connects to IRIS via iris.connect and calls SELECT ... PREDICT(HealthInsuranceModel ...) to get a prediction, but connection string/credentials are placeholders ('...') and the actual H2O-trained model artifact is not in the repo, so the training pipeline itself cannot be confirmedflaskback/data/health_insurance_DataSample.csvโ Sample dataset present supporting the claim that a dataset was used, but no training script is present in the repo
SQL-based data storage/querying (Built With: sql)Code-supported
Project built with SQL
Claimed on Devpostmedium confidenceflaskback/interSys.py:18โ Raw SQL INSERT/SELECT/DELETE statements executed against IRIS via cursor.execute, though built via unsanitized string formatting and dependent on placeholder credentials
Convex-React frontend frameworkClaimed only
Front-end built using convex-react (Convex-React-Vite)
Claimed on readmehigh confidence
An AI agent derived these features from the projectโs Devpost page and readme, then searched the code for each one. Verified features are backed by cited code; claimed-only features had no supporting code, which is not by itself proof a feature is missing.
Export this project's context (description, README, evidence, key source files) to chat with an AI agent elsewhere.