Skip to content

psagar123/AirQuality

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Respiratory Healthcare Tool

In this project, we built a machine learning model to predicts a patient's risk of lung cancer and asthma emergency department visits using air quality data.

Background

Created a web application for physicians to predict a patient's risk of lung cancer, given the air quality in their region, and other risk factors (i.e., smoking, gender, age, diet). If the patient suffers from asthma, physicians can also predict their rate of emergency department visits for asthma attacks given the air quality of their region.

Resources

Asthma Data

Cancer Data

Preprocessing:

Scaling the data

Used StandardScaler to scale the training and testing sets.

Converting categorical data to numeric

Created a training set from the 2019 loans using pd.get_dummies() to convert the categorical data to numeric columns. Similarly, create a testing set from the 2020 loans, also using pd.get_dummies()

Model Building

Cancer Model

Created different classification models to predict patient’s risk of developing lung cancer. Different models are:

  • Decision Tree Classifier
  • Random Forest Classifier
  • Extremely Random Trees
  • Boosting- AdaBoostClassifier

Asthma Model

Created different Regression models to predict patient’s emergency department visit rate for severe Asthma attacks. Different models are:

  • Linear Regression
  • Support Vector Machine
  • Decision Tree
  • Random Forest
  • Extremely Random Trees
  • Boosting- AdaBoostRegressor

Production

Used Flask templating to create a website to predict risk of lung cancer and asthma emergency department visits using air quality data. The saved model was used for the prediction.

Healthcare tool is designed to assess a patient’s respiratory health based on their local air quality. To begin patient's zip code need to enter. The Air Quality Index category (i.e., Good, Moderate, Unhealthy) for the patient’s region will populate the display.

The “Model Prediction for Cancer” model is used to predict a patient's risk of developing lung cancer (Low, Medium, High).

The “Model Prediction for Asthma” model is used to predict the patient’s emergency department visit rate for severe asthma attacks.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors