0% found this document useful (0 votes)
34 views8 pages

PY106

The document describes a stroke prediction system that uses linear regression. The system allows users to input personal health information and will predict their risk of having a stroke. If a risk is detected, the system will direct the user to information on nearby hospitals and details on stroke causes, symptoms, and treatment. It was developed using technologies like HTML, CSS, JavaScript, Python, and MySQL. The system aims to help identify stroke risk and facilitate quick access to care in emergency situations.

Uploaded by

thorarjun4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views8 pages

PY106

The document describes a stroke prediction system that uses linear regression. The system allows users to input personal health information and will predict their risk of having a stroke. If a risk is detected, the system will direct the user to information on nearby hospitals and details on stroke causes, symptoms, and treatment. It was developed using technologies like HTML, CSS, JavaScript, Python, and MySQL. The system aims to help identify stroke risk and facilitate quick access to care in emergency situations.

Uploaded by

thorarjun4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 8

Stroke Prediction System using Linear

Regression

1) Background/ Problem Statement

A stroke is defined as an acute neurological disorder of the blood


vessels in the brain that occurs when the blood supply to an area of the
brain stops and the brain cells are deprived of the necessary oxygen.
According to the World Stroke Organization, 13 million people get a
stroke each year, and approximately 5.5 million people will die as a
result. It is the leading cause of death and disability worldwide, and
that is why its imprint is serious in all aspects of life. Stroke not only
affects the patient but also affects the patient’s social environment,
family and workplace. In addition, contrary to popular belief, it can
happen to anyone, at any age, regardless of gender or physical
condition.
To help save a life who might have a probability of stroke, we have
designed a Stroke Prediction System using Linear Regression. The
objective of implementing the system on a web platform is to reach as
many individuals as possible. The development of this ML model could
aid in the early detection of stroke and the subsequent mitigation of its
severe consequences.
2) Working of the System

The system comprises 1 module namely User.


The user would require to register first to access the system. After
registering successfully, the user can log in using their credentials. In
order for the system to predict if there is a risk of stroke, the user would
require to enter certain inputs. If there is a risk of stroke, the system will
redirect to a page where the user can view the nearby hospitals and the
stroke details along with its causes, symptoms and treatment.

The technologies used to develop this system involve HTML, CSS and
JavaScript in the front end and Python in the backend. The database
used is MySQL and the framework used is Django. The dataset is used
from Kaggle. The algorithm used to design the working of this system is
Logistic Regression. It is used to characterize the data and illustrate the
association between one dependent binary variable and one or more
conditional, ordinal, period, or ratio-level independent variables.

3) Advantages
The system can be used to accurately predict stroke risk.
The user will be able to find hospitals nearby using the system.
The system will show the type of stroke along with its symptoms
and treatment.
The system is easy to use and efficient.

4) System Description
The system comprises 1 major module with their sub-modules as
follows:

 User:
 Register:
The user would require to register first to access the system.
 Login:
They can log in using their credentials.
 Prediction
The user would require to enter inputs as asked and if a stroke is
detected, the system will redirect to the page where the user can
- View nearby hospitals
- View Stroke details along with its causes, symptoms and
treatment

User inputs:

1) ID: Unique Identification

2) Gender: "Male", "Female" or "Other"

3) Age: The age of the patient

4) Hypertension: 0 if the patient doesn't have hypertension, 1 if the


patient has hypertension
5) Heart Disease: 0 if the patient doesn't have any heart diseases, 1 if
the patient has a heart disease

6) Ever Married: "No" or "Yes"

7) Work Type: "Children", "Govt job", "Never worked", "Private" or


"Self-employed"

8) Residence Type: "Rural" or "Urban"

9) Avg Glucose Level: Average glucose level in blood

10) BMI: Body Mass Index

11) Smoking Status: "Formerly Smoked", "Never Smoked", "Smokes" or


"Unknown"*

12) Stroke: 1 if the patient had a stroke or 0 if not


5) Project Life Cycle

The waterfall model is a classical model used in the system


development life cycle to create a system with a linear and sequential
approach. It is termed a waterfall because the model develops
systematically from one phase to another in a downward fashion. The
waterfall approach does not define the process to go back to the
previous phase to handle changes in requirements. The waterfall
approach is the earliest approach that was used for software
development.
6) System Requirements

I. Hardware Requirement

i. Laptop or PC
 Windows 7 or higher
 I3 processor system or higher
 4 GB RAM or higher
 100 GB ROM or higher

II. Software Requirement

ii. Laptop or PC
 Python
 Sublime Text Editor
 XAMP Server
7) Limitations/Disadvantages

If the user enters any incorrect inputs, the system can produce
inaccurate results.

8) Application

Our Stroke Prediction System is designed to help predict stroke


risk and find nearby hospitals in an emergency situation.

9) Reference

file:///C:/Users/NEVON/Downloads/sensors-22-04670.pdf
https://www.researchgate.net/publication/
364359247_Stroke_Prediction_with_Logistic_Regression_and_assessing_it_
using_Confusion_Matrix
https://iopscience.iop.org/article/10.1088/1742-6596/2123/1/012016/pdf
https://medium.datadriveninvestor.com/stroke-prediction-using-logistic-
regression-72f62edf4792
https://thesai.org/Downloads/Volume12No6/Paper_62-
Analyzing_the_Performance_of_Stroke_Prediction.pdf
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8641997/
https://ijcrt.org/papers/IJCRT2209148.pdf

You might also like