krnithishkumar / dont-touch-men

Machine Learning based tool to alert people before they are touching MEN (Mouth Eyes Nose).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dont-touch-men v2

Alert people before they are touching MEN (Mouth Eyes Nose).

CURRENT STATUS: ITERATION 2 / WORK IN PROGRESS

Demo: https://i3games.github.io/dont-touch-men/

In the current COVID-19 pandemic, a few rules have been communicated to reduce infections.

  1. Keep physical distance to other humans.
  2. If you cough or sneeze, do it into your ellbow.
  3. Don’t touch MEN: Mouth Eyes Nose.
  4. Wash hands with soap.
  5. Wash surfaces with soap water.
  6. Wear face masks if you have them and if supply is guaranteed for health and frontline workers. Yes, they help.
  7. Protect elderly people and those wo are at risk.
  8. Don't hoard.
  9. Be excellent to each other.

Over the last weeks, during videoconferences and on social media I have seen people constantly touching their faces. It happens subconsciously. Even if you tell people not to do it they will have their hand in their face a minute later. And so will you. This way the virus gets on a mucous membrane of yours and enters your body.

Science has numbers: "On average, each of the 26 observed students touched their face 23 times per hour. Of all face touches, 44% (1,024/2,346) involved contact with a mucous membrane."

Kwok, Yen Lee Angela, Jan Gralton, and Mary-Louise McLaws. 2015. ‘Face Touching: A Frequent Habit That Has Implications for Hand Hygiene’. American Journal of Infection Control 43 (2): 112–14. https://doi.org/10.1016/j.ajic.2014.10.015.

This article gives some hints and describes challenges for behavioral change: https://foreignaffairs.co.nz/2020/03/20/how-to-stop-touching-your-face-to-minimize-spread-of-coronavirus-and-other-germs-133683/

I assume that this app, if improved, could help to nudge you into better behaviour by warning you when your hand comes close to your face.

To be clear. Do NOT do this: https://www.youtube.com/watch?v=IgR6uaVqWsQ

Also, do not touch your face in order to test this app.

How to use

Don’t touch MEN runs in modern web browsers (Firefox and Chrome). Based on my testing I recommend Chrome.

  1. You need a webcam showing your head and shoulders
  2. Download / clone this repo
  3. Run index.html through a webserver, e.g. https://developer.mozilla.org/en-US/docs/Learn/Common_questions/set_up_a_local_testing_server
  4. To work with mobile devices at all, it must be served over an https connection.

WORK IN PROGRESS

How it works: Don’t touch MEN uses the Tensorflow bodypix model version 2. This is a trained machine learning model that takes an image, detects different body parts such as head and hands and returns an array with different values for each part. I take a sample around hand values and check if it is a head value. If so, the alarm is triggered.

THIS IS ITERATION 2

With the first prototype I saw a number of problems:

  • False Positives especially when turning my face.
  • False Negatives especially briefly after an alarm.
  • Delays through poor performance.
  • Does not work on iPad/Safari

I rewrote the app with TensorFlow.js using BodyPix version 2 and Tone.js.

This has improved the reliability and performance significantly. I am still experimenting with various parameters. The app needs testing on different devices, in different conditions, with different people.

Iteration 2 uses the following libraries / frameworks / tools

Iteration 1 was built with the following libraries / frameworks / tools

Similar tools

Some people have built or are building similiar tools. Here are the ones I am aware of.

About

Machine Learning based tool to alert people before they are touching MEN (Mouth Eyes Nose).

License:GNU General Public License v3.0


Languages

Language:JavaScript 62.5%Language:HTML 37.5%