Professional Documents
Culture Documents
Abstract – Humans always face problems when it comes to of the most used items in homes on a daily basis. Mirrors are
medical check-up due to lack of time or laziness. However, lots of used by people to check their looks so they can fix them if
medical problems and fatal illnesses can be detected at earlier needed. Well, what about the inner issues related to health?
stages if the person is subject to continuous check-up. Hence, the What if a mirror becomes capable of analysing the medical
idea of the proposed system is to design a tool enabling the details of the user and providing him with information related
measurement of the basic vital signs with the smallest effort
to his health?
possible from the person’s side. Thus, this paper proposes a
smart medical mirror system that acts as a normal mirror and In this project, such a mirror will be created having the
also delivers the basic vital signs of the user such as the heart capability of analysing the user’s basic vital signs. This mirror
rate, SPO2, body temperature, and Body Mass Index (BMI). The will include a smart interface with its user. It will detect his
system takes five seconds for initialization and starts the
measurements and displays the results. The user will not lose
presence and start the analysis phase. It will measure the
time as this check-up can be performed every morning while the user’s heart rate, body temperature, height, weight, and Body-
person is wearing his clothes and getting ready to start his daily Mass Index (BMI); it will measure the room temperature as
activities. The system was tested by multiple users having well. All these values will be displayed automatically on the
different body statuses. The recorded values showed very small mirror. Thus, the user will be provided with a device that
differences with the exact ones. At the end, the system was able to performs a basic medical check-up, during a short period of
meet the user specifications concerning its portability, sensitivity, time at any time, and displays the results in front of him
accuracy and, most importantly, its low cost. immediately. This check-up will make the user aware of his
own health and avoid some diseases that can be well treated in
Keywords – Vital Signs measurement; BMI; SPO2; Heart Rate;
Medical Checkup; Smart Mirror;
their early stages. Added to that, one can add vital monitoring
sensors for this system as the processing unit was chosen large
enough to accept additional inputs and outputs.
Latest studies show that the rate of people dying from a
I. INTRODUCTION
sudden factor is increasing worldwide and consists more than
Nowadays, while medical science is well advanced and 50% of the total death causes [1]. Added to that, lack of regular
highly accurate, sickness symptoms are easily detected in a medical tests was shown to be among the highest causes to
person’s body. While these symptoms add up together, a have sudden death [2] [3], in particular heart attacks [4] [5].
disease or a disorder can be diagnosed systematically. Thus,
The concept of a smart mirror is considered very new. Few
this disease is well treated and cured in most cases. To
inventions related to this concept were made. Sun et al.
decrease the chances of having a disease, people are usually
worked on a smart mirror based on a Raspberry Pi where they
encouraged to perform continuous medical check-ups.
included a displayed time and date. Their concept was based
However, despite all the encouragement provided, whether
on a connection to Wi-Fi where they retrieved daily updates of
through advertisements on television, flyers, and even phone
time and date [6]. As for other related projects to this proposed
messages from the ministry of health, a large number of
system, one can propose the below scientific publications.
people are not performing these check-ups. Some are aware of
the high importance of medical check-ups; others might not Kashish et al. developed a low power pulse oximeter in
have the time according to their opinions or are not even purpose of detecting hypoxemia. Their project was based on
interested. Considering the population who doesn’t follow up an Arduino processing system [7].
on its own health, if medical check-ups are easy to be
performed daily and alone at home, would they change their Shrenika et al. worked on an ultrasonic Arduino electronic
attitude regarding this issue? system where the sensor is placed at the top of the water tank
and computes the distance between it and the water surface
At home, there are a lot of items, some that are used [8].
frequently, and others that are used rarely. When a person
wakes up every morning, the first thing one does after getting Boopathi et al. developed an Arduino monitoring system
out of bed is looking in the bathroom’s mirror. A mirror is one that computes heart rate, ECG, temperature, and SPO2 for
978-1-7281-2358-5/20/$31.00
Authorized licensed use limited to: UNIVERSITY OF©2020 IEEE
WESTERN ONTARIO. Downloaded on December 21,2020 at 08:48:55 UTC from IEEE Xplore. Restrictions apply.
2020 IEEE 5th Middle East and Africa Conference on Biomedical Engineering (MECBME)
cases of pregnant women in India that have to travel long to digital ones. A second processing unit is deployed in order
distances to perform check-up [9]. to make the required calculations, compare the resulting
measurements to the thresholds and display them on the
Yousof & Hau proposed a portable and mini home-based
mirror. In fact, one could have used one microcontroller,
vital sign monitor, named myVitalGear, which can measure
containing the (Analog-to-Digital Converter) ADC feature but
heart rate using electrocardiogram (ECG), body temperature
we have decided to use the Raspberry Pi to compute the
and blood oxygen saturation (SPO2) accurately [10].
calculations for the reasons that will explained in details in the
Celler & Sparks identified some technical challenges in the next section. As this latter does not have the ADC feature, the
acquisition of high-quality biometric signals from use of an integrated circuit/processing unit was necessary in
unsupervised patients at home by identifying new technical order to deliver digital data to the Raspberry Pi controller.
solutions and user interfaces, and proposing new measurement
As for the communication tool between the different
modalities and signal processing techniques for increasing the
electrical components, wires were used because of the
quality and value of vital signs monitoring at home [11].
physical placement of them. However, the use of the
Selvaraj designed some disposable wireless sensors for Raspberry Pi could help if wireless sensors are to be
continuous and long-term monitoring of senior subjects over implemented in an advanced realization step because of the
consecutive 50-days in their home setting. These sensors have communication protocols and tools available within this
demonstrated high performance over their 3-day wear cycle, processing unit.
great compliance, and positive user feedback on simplicity of
At the end, the date and time are initially set and they are
use and usability [12].
also displayed on the mirror.
Jinmeng & Xiaoming designed a medical monitoring
method for smart home taking advantage of the ZigBee short-
range wireless communication technology, and achieving a
continuous, real-time and dynamic detection of the human
vital signs parameters, including electrocardiograph (ECG),
oxygen saturation, blood pressure detections. This system also
aims to provide users with independent, health, safety,
convenience and the continuing human medical monitoring
services [13].
Against this background, the proposed paper presents a
novel way to monitor the vital signs of any person using a tool
that exists in every household and that is usually used, at least
once per day, by anyone. The main constraints of the realized
system is to be sensitive, accurate, customized and of a low
cost.
This new system aims to prevent diseases as cardiac and
overweight problems as the continuous monitoring of the vital
signs should yield in the consultation of medical doctors in Fig. 1. Block diagram of the system
case of bad recorded values.
This paper is divided as follow: in section II, the block III. HARDWARE DESIGN
diagram of the whole project is presented. In section III, the In this section, the used sensors, the processing units, and
hardware design part is introduced going through by the the mechanical design of the whole system will be shown.
sensors, the processing unit and the mechanical design of the
mirror. Section IV presents the coding of the processing units. A. Sensors
In section V, the assembly and the validation of the system are The main parameters that led to the choice of the sensors
proposed. Finally, section VI concludes this paper and are mainly the size, the cost, the availability, the accuracy, the
proposes some future works. safety and the operational supply voltage. As for the sensors,
four types are required for this system: the height, the weight,
II. BLOCK DIAGRAM the temperature, the heart rate and the SPO2.
Figure 1 shows the block diagram of the proposed system. To measure the height of a person, many options are
The sensors in use aim to measure the height and the weight of available; however, the proximity sensors will be mainly used.
the user in order to calculate and display the Body Mass Index They are available as photoelectric sensors, ultrasonic sensors,
(BMI). The system also determines the heart rate, the SPO2, capacitive sensors, and inductive sensors [14]. All these
and the body temperature. sensors mainly rely on transmitting and receiving
corresponding waves whether infrared rays, sound waves,
All these parameters are first processed using a first microwaves, or magnetic field waves. Each type of sensors is
processing unit that aims to convert the sensors analog values used for specific application depending on the response time
Authorized licensed use limited to: UNIVERSITY OF WESTERN ONTARIO. Downloaded on December 21,2020 at 08:48:55 UTC from IEEE Xplore. Restrictions apply.
2020 IEEE 5th Middle East and Africa Conference on Biomedical Engineering (MECBME)
needed and the type of object to hit. For this system, the HC- chosen since it is a probe-like sensor that is easily held by the
SR04 ultrasonic sensor was deployed since it best fits our case hand or placed under the arm pit [17]. This sensor is
regarding measurement ranges, its low noise, and output form. characterized by its easy setup, low tolerance, accuracy,
linearity within the functional temperatures and desired
The principle of this ultrasonic sensor is based on sending
temperature range from -10°C to 80°C. It can be directly
ultrasound waves and receiving the echo waves reflected back
connected to the analog pin of the processor without using any
to it [15]. Through that, it could detect an object in its range
calibration circuit.
and the distance between the sensor and the object is defined
as shown in the equation below:
∗
= , (1) At the end, concerning the SPO2 and the heart rate
measurements, the MAX30105 sensor was used in order to
where the time is defined based on the delay between the measure these two vital signs at the same time. This sensor is
transmitted and the received wave and the speed of sound in characterized by its high accuracy, low noise, and I2C
air is equal to 340 m/sec. Thus, the distance will be delivered communication mode. It is capable of operating within a
in m. temperature range from -40°C to 85°C. It includes an ambient
Figure 2 clarify the placement of the sensor and the light rejection feature that enhances the measurement
conditions to be aware of while measuring the height of the precision in presence of light [18]. Several readings are
person. The most initial point is that the person must be placed performed before calculating the average value and displaying
in a straight line with the sensor in order to get an accurate it on the mirror. The main problem that can encounter the
value. functioning of this sensor is the fingers displacement of the
user. In fact, if the user does not press his thumb on the sensor,
no values (or inaccurate values) will be obtained. Another
technical problem caused by this sensor is the memory needed
for processing as each reading requires lots of memory space.
This must be taken into consideration when choosing the
processing unit.
B. Processing Unit
In order to make the calculations and to capture, analyze
Fig. 2. Conditions to be aware of while using an ultrasonic sensor and display the vital signs and measurements using this
system, several processing units could have been used. For
Concerning the weight measurement, few choices of this system, the processors used are an Arduino board and a
sensors were available. Since all of them have the same Raspberry Pi 3 model B board.
functioning principle, we chose the HX-711 due to its
popularity, easy setup, 28 bit resolution, and its accuracy [16]. The Arduino board was used because of its desired number
of input/output pins, memory size, serial communication, I2C
The weight sensing assembly is a combination of four load communication and, most importantly, the Analog-to-Digital
cells that can handle a max weight of fifty kilograms each Converter (ADC) option. The Raspberry Pi 3 was used
connected to the weight sensor. Figure 3 shows the placement because of its high power CPU and GPU and its large memory
of these sensors together. The load cells, when put under size.
stress, produce varying resistances. These resistances produce
variable voltages. The variations in the voltages are then The Arduino board is responsible of empowering the
converted to values that are added together to give the weight sensors, receiving their outputs, and processing the values
value. based on the coded program. The raspberry pi is responsible
for the calculation of BMI, receiving the outputs of the
Arduino boards, and displaying all the data on the screen
based on its coded program.
In fact, one could have use only one microcontroller.
However, the Arduino is used for the ADC whereas the main
purpose of the Raspberry Pi is to display the outputs on the
screen as it is easier to use the Python programming language
for the tools it contains for the display. The communication
between both processors is serial (USART interface).
Fig. 3. Arrangement of the load cells to measure the weight of the user C. Mechanical Design
The inner assembly is composed of the mirror glass, the
For temperature measuring, lots of available temperature
display screen, the two microcontroller boards, a power
sensors can perform the job. Two important specifications are
supply, some electronic circuits related to the screen, two
the shape and the resolution. Thus, the DS18B20 sensor was
Authorized licensed use limited to: UNIVERSITY OF WESTERN ONTARIO. Downloaded on December 21,2020 at 08:48:55 UTC from IEEE Xplore. Restrictions apply.
2020 IEEE 5th Middle East and Africa Conference on Biomedical Engineering (MECBME)
wooden ribs to hold the components in place, and the electric the background and font colors, the font style and size, and the
plug wire. As shown in figures 4 and 5, some dimensions position of every word or figure on the screen. The raspberry
related to the inner assembly and the screen is placed line to Pi also has the option of displaying using HDMI cable
line with the mirror for achieving best display. The processors showing a much better screen resolution. It is capable of
and power supply are separated aside to avoid any distortion saving the already set time and date as well which can also be
in the screen display. displayed. The flowchart representing the Raspberry Pi
software program is shown in figure 7.
Authorized licensed use limited to: UNIVERSITY OF WESTERN ONTARIO. Downloaded on December 21,2020 at 08:48:55 UTC from IEEE Xplore. Restrictions apply.
2020 IEEE 5th Middle East and Africa Conference on Biomedical Engineering (MECBME)
Authorized licensed use limited to: UNIVERSITY OF WESTERN ONTARIO. Downloaded on December 21,2020 at 08:48:55 UTC from IEEE Xplore. Restrictions apply.
2020 IEEE 5th Middle East and Africa Conference on Biomedical Engineering (MECBME)
• Connection of mirror to home internet and sending the Z. Jinmeng and W. Xiaoming, "Key technologies of medical
data to a specified doctor; [13] monitoring system of smart home," in 4th International
• Higher accuracy in calculation of BMI relative to a user’s Congress on Image and Signal Processing, Shanghai, China,
gender and age: 2011.
H.-K. Lee, S. Chang and E. Yoon, "Dual-Mode Capacitive
[14] Proximity Sensor for Robot Application: Implementation of
VII. BIBLIOGRAPHY Tactile and Proximity Sensing Capability on a Single Polymer
Platform Using Shared Electrodes," IEEE Sensors Journal,
P. Andell, Chronic obstructive pulmonary disease in acute vol. 9, no. 12, pp. 1748 - 1755, 1 September 2009.
[1] coronary syndromes, Sweden: Lund university , 2016. F. Arafsha, L. Zhang, H. Dong and A. El Saddik, "Contactless
[15] haptic feedback: state of the art," in IEEE International
W. Nelson, "Cost optimal sudden-death life testing," in 2017 Symposium on Haptic, Audio and Visual Environments and
[2] Annual Reliability and Maintainability Symposium (RAMS), Games (HAVE), Ottawa, ON, Canada, 2015.
Orlando, 2017. Avia Semiconductor, "HX711," Avia Semiconductor, P. R.
V. Vijjaya , K. Kishan Rao and P. Sahrudai, "Identification of [16] China, 2011.
[3] Sudden Cardiac Arrest Using the Pan-Tompkins Algorithm,"
in 14th International Conference on Computer Modelling and Maxim Integrated, "DS18B20," Maxim Integrated Products,
Simulation, Cambridge, 2012. [17] Inc. , San Jose, California, 2018.
R. P. R. K. S. B. S. Rajesh Kumar Jakkar, "Drunk-Driver
[4] Detection and Alert System (DDDAS) for Smart Vehicles," Maxim Integrated, "Pulse Oximeter and Heart-Rate Sensor IC
[18] for Wearable Health," Maxim Integrated Products, Inc, San
American Journal of Traffic and Transportation Engineering,
vol. 2, no. 4, pp. 45-58, 2017. Jose, 2014.
Authorized licensed use limited to: UNIVERSITY OF WESTERN ONTARIO. Downloaded on December 21,2020 at 08:48:55 UTC from IEEE Xplore. Restrictions apply.