เปลี่ยนจากหัวข้อเดิม คือ predict Diagnosis of Diabetic Retinopathy สาเหตุที่เปลี่ยนเนื่องจากมีปัญหาในการเอาโมเดลออกไปใช้ จากข้อผิดพลาดของ GPU
Mini project นี้ใช้โมเดล ANN ในการทำนายโอกาสที่เสี่ยงจะเป็นโรคหลอดเลือดสมอง (Stroke)
ใช้ Dataset จาก Dataset โดยเว็บนี้จะใช้โมเดลในการทำนายโอกาสเสี่ยงที่จะเป็นโรคหลอดเลือดสมองโดยใช้ Feature ดังนี้
- เพศ
- อายุ
- ความดันโลหิตสูง
- การโรคหัวใจ
- ระดับน้ำตาลเฉลี่ยในเลือด
- ดัชนีมวลกาย (BMI)
- การสูบบุหรี่
เมื่อกรอกข้อมูลเหล่านี้แล้วกดยืนยันโมเดลก็จะทำการทำนายโอกาสเสี่ยงที่จะเป็นโรคหลอดเลือดสมองโดยให้ผลออกมาเป็น percent ซึ่งจะใช้ model ANN ในการทำโปรแกรมนี้ และโดยจุดเด่นจะมีการทำ Data Augmentation เองโดยเทียบกับแบบ SMOTE
Dataset from Dataset This website will use a model to predict the risk of stroke using the following features:
- Gender
- Age
- High blood pressure
- Heart disease
- Average blood sugar level
- Body Mass Index (BMI)
- Smoking
Once you enter this information and click confirm, the model will predict the risk of stroke and provide the result as a percentage. Which will use the ANN model to make this program and the highlight is that it will do Data Augmentation itself by comparing with the SMOTE model.
-
Clone the repository to your local machine:
git clone https://github.com/Pikcolo/predict_stroke.git -
Install poetry and Install Dependencies using Poetry
Poetry is used to manage dependencies and virtual environments for this project.
pip install poetryAfter installing Poetry, navigate to the project directory and run:
poetry install -
Install node.js and npm
for Windows
Use wsl and follow the linux steps.
for Linux
Open a terminal and run the following command to install Node.js and npm:
sudo apt update sudo apt install nodejs npmfor MacOS
Use Homebrew to install Node.js and npm:
brew install nodeVerify the installation by running:
node -v npm -v -
Install Dependencies for Static Files
Navigate to the
staticfolder and install npm packages:cd predict_stroke/web/static npm install -
Run Web
./scripts/run-web
