Skip to content

ShivaNagachander/hackathon-brain-stroke

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

25 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

hackathon-brain-stroke

A machine learning-powered web application to predict the risk of brain stroke based on user health inputs.


๐Ÿ“Œ Features

โœ… User Authentication (Signup/Login)
โœ… Stroke Risk Prediction using RandomForestClassifier
โœ… Interactive Form for Input Data
โœ… Dynamic Result Display
โœ… Profile Management


๐Ÿš€ Tech Stack

  • Frontend: HTML, CSS, JavaScript
  • Backend: Flask
  • Machine Learning Model: RandomForestClassifier (saved as stroke_model.joblib)
  • Database: SQLite3
  • Dataset: brain_stroke.csv

๐Ÿ“‚ Project Structure

/hackathon-brain-stroke
โ”‚โ”€โ”€ static/                # Static files (CSS, JS)
โ”‚โ”€โ”€ templates/             # HTML templates
โ”‚โ”€โ”€ app.py                 # Main Flask application
โ”‚โ”€โ”€ save_model.py          # Model training script
โ”‚โ”€โ”€ stroke_model.joblib    # Pre-trained ML model
โ”‚โ”€โ”€ brain_stroke.csv       # Dataset used for training
โ”‚โ”€โ”€ requirements.txt       # Dependencies
โ”‚โ”€โ”€ edit_profile.html      # Edit user profile page
โ”‚โ”€โ”€ login.html             # Login page
โ”‚โ”€โ”€ profile.html           # User profile
โ”‚โ”€โ”€ result.html            # Prediction result page
โ”‚โ”€โ”€ signup.html            # Signup page
โ”‚โ”€โ”€ stroke.html            # Stroke prediction form

๐Ÿ”ฎ Future Enhancements

๐Ÿ”น Improve model accuracy with deep learning
๐Ÿ”น Deploy the project online (e.g., Render, Vercel, or AWS)
๐Ÿ”น Add real-time health monitoring features


About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 86.5%
  • Python 13.5%