Skip to content

This repository is a part of my submission for the Food Safety Hackathon organized by Middlesex University,Dubai.

Notifications You must be signed in to change notification settings

aastha12/MDX-Food-Safety-Hackathon

Repository files navigation

MDX-Food-Safety-Hackathon

This repository is a part of my submission for the Food Safety Hackathon organized by Middlesex University,Dubai.

You can also find the article I wrote on this submission over here: https://bit.ly/37Dua4w

There are 4 parts to my submission:

Part 1: EDA

Part 2: Logistic Regression model

Part 3: Automating alert cases as whatsapp messages

Part 4: Deploying the logistic regression model on a web app (Link here: https://alert-model.herokuapp.com/)

Prerequisites

You must have Scikit Learn, Pandas (for Machine Leraning Model) and Flask (for API) installed.

Repository Structure

This repository has six parts :

  1. MDX Hackathon - Github.ipynb - This contains the Jupyter notebook for Exploratory Data Analysis, Logistic Regression which will predict which cases are "Alert" and by what probability. This file also contains the automation of sending alert cases as whatsapp notification using Twilio API and python.

  2. app.py - This contains Flask APIs that receives user input details through our website, computes the precited value based on our model and returns it.

  3. templates - This folder contains the HTML template to allow user to enter case details and display if the case is an alert case or not.

  4. Procfile - tells Heroku what kind of app you are running and how to serve it to users.

  5. requirements.txt - this tells Heroku which packages to install for your web app.

  6. MDX Hackathon.pkl - this contains our trained classifier model which we saved to disk using pickle. It can then be reloaded later on and used exactly as if we had trained it.

About

This repository is a part of my submission for the Food Safety Hackathon organized by Middlesex University,Dubai.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages