Giter Site home page Giter Site logo

datalordstephen / mock-system Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 8 KB

This code contains code for a mock anomaly detection system in a hostpital setting. I wrote this code during my IT at RAIN for my 200lvl SIWES program.

Python 68.96% JavaScript 11.33% CSS 5.36% HTML 14.35%

mock-system's Introduction

Mock Anomal Detection System

This code contains code for a mock anomaly detection system in a hostpital setting. I wrote this code during my IT at RAIN for my 200lvl SIWES program.

This code was written to mimic an ideal anomaly detection system in a hospital system. The goal was to use this web app to present the idea of an anomaly system to other staff and explain the workings.

An ideal anomaly detection system would follow a machine learning approach, Clustering to be specific.

Background

In a hostpital, there is a system that allows doctors to view files of patients, prescribe medications and all of that from their computers. Doctors have different specializations, and these specializations are useful in different scenarios, depending on the patient's condition.

It would be weird if a doctor specializing in dentistry was to try to access the files of a patient suffering from asthma right? An anomaly detection system would be able to flag such an interaction, and record it in a database, to either refer back to in the future, or to use as proof to back up a suspiscion.

Usage

To run this code, python has to be installed.

  • Install requirements
pip install -r requirements.txt
  • Generate an .env file with a random secret key and database URI
py create_env.py
  • Create a mock database with 20 patients and 1 doctor
py populate_db.py
  • Run the app
py run.py

After running the app, 20 patients would appear on the screen, and clicking on any patient other that FLU patients would trigger a popup on the screen saying Suspiscious activity detected. The interaction would also be logged to the database, indicating the doctor, patient, and that the interaction is suspiscious.

mock-system's People

Contributors

datalordstephen avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.