Skip to content

BenbenIO/Urine-Monitoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Urine-Monitoring

This project is part of my master thesis in KEIO university, concerning the development of an automatic urine monitoring device:

"Urine analysis is still a challenge to bring home even if urine is a great bio-marker, and home care system are rising1. This paper demonstrates an automatic urine monitoring device using the capillarity effect inside a canal and cross-selectivity principle to create a modular analysis. We connected our device with an ESP32 module to bring the daily result to a healthcare cloud for further analysis. The developed device was tested on simulated urine and successfully determined its basic composition."

More information can be found HERE. This repository will briefly explain the device principle, and architecture.

Principle

The idea of the device is to harvest the patient urine directly inside the toilet automatically. This is achieved by capillary effect which occurs spontaneously and doesn't need any energy. Once the urine gets into the canal, I analyze it with conductivity and absorbance measurement. The extracted features are then send to a healthcare server. The server create a medical database based on the urine analysis, patient information and other data from internet.

The first target of the device is to prevent heatwave related accident (hospitalization and death). To do so, I try to estimate the urine quality with the previous sensors, and heatwave indicator forecast (HERE)

Fabrication

The canal was fabricated with molded PDMS in which we introduce two electrodes. Concerning the absorbance measurement, the setup consisted of an LED on one side and a photoresistor on the other side. All the support and case were 3D printed. For signal acquisition and communication with used the [ESP32 devkitC] (https://www.espressif.com/en/products/hardware/esp32-devkitc/overview). Which is a low power 2.4 GHz Wi-Fi and Bluetooth board, equipped with 12 bit ADC and other interesting features. Finally, the HealthCare server was a simple TCP socket on a virtual box hosting DEBIAN distribution. The communication between the server and the ESP32(client) was done with Wi-Fi over a TCP socket.

Code

The ESP programming was done in C programming. The program check in there is a new urine sample in the toilet. This is achieved with a volume-flow sensor, it's resistivity change when the patient urinate in the toilet. This sensor value is check with an interrupt, and a variation trigger the measurement process. Then the device does the absorbance measurement and the conductivity measurement inside the canal. When the analysis is finished, the ESP32 create the message, connect to the server by opening a TCP socket and transmit the message. Once the server replies no error message, the device go to a standby mode to clean the canal.

Since the device doesn't have a screen I create a LED color code. On the server side the programming was done with python, and consist on several script.

  • to listen the device on a TCP socket, received an extract the message.
  • to collect the weather data from internet.
  • to sum-up the different database and provide a graphical user interface for visualization (with Tkinter)

Do not hesitate in you have any question or advice :)

About

Design and creating an Urine Monitoring device

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published