Professional Documents
Culture Documents
Intr Hemoglobin
Intr Hemoglobin
ABSTRACT
Hemoglobin is a protein in red blood cells that functions as an oxygen-binding agent and also circulates to all organs
and tissues of the human body. Changes in hemoglobin levels, both low and high, can indicate health problems.
Checking hemoglobin levels in the human body is usually done medically by taking blood samples that are injuring
the patient or often called invasive. Therefore, a non-invasive method is made, which is a monitoring tool for
measuring hemoglobin using the K-Nearest Neighbor algorithm based on the Internet of Things. Internet of Things
(IoT) is a promising paradigm to provide massive wireless connections in future communications. One main feature of
IoT is short packet communication (SPC), which adopts finite block-length codewords for data transmissions.
Different from the long packet transmission in conventional wireless networks, from the test results, it can be seen that
the monitoring tool is connected to Cloud Thingspeak, the prediction process of the algorithm in python programming
to the android application that runs well. The input value of Oxygen Saturation (SpO2) is carried out by the KNN
algorithm processing where this algorithm is one of the Machine Learning algorithms used to predict an output value
so that an average accuracy of 93.481133% at k = 2 is obtained. Quality of Service (QoS) is quantitatively defined in
terms of guarantees or bounds on certain network performance parameters. The most common performance
parameters for the Internet of Things (IoT) are Delay End-to-End and Throughput. Delay End-to-End has an average
value in the process of sending from monitoring tools to the Android application of 6.8 s. And the average value of
throughput on NodeMCU to Cloud ThingSpeak communication is 9.98 Kbps, Cloud - Python - Cloud communication
is 13.76 Kbps and communication on Cloud ThingSpeak to Android Application is 11.06 Kbps.
Keywords: Hemoglobin, SpO2, Internet of Things, K-Nearest Neighbor Algorithm, Quality of Service
provide fast results. This is because the technique is between two deep points. This is the Euclidian distance
less effective to use when measuring hemoglobin calculation in Equation 2.
levels. And the study conducted a measurement
2
technique in the form of the K-Nearest Neighbor 𝐷(𝑥, 𝑦) = √∑𝑚
𝑘=1(𝑥𝑖𝑘 − 𝑥𝑗𝑘 ) (2)
(KNN) algorithm which refers to research [4] to find
the results of the approach value of these
measurements by conducting training data that will 2.1.2 Chebyshev Distance
be processed and entered on the android application
side. The author got an idea to make a Hemoglobin This distance calculation is also called the maximum
measurement tool using a NodeMCU microcontroller, value distance. This calculation can be calculated as the
the MAX30100 sensor, the use of the KNN algorithm magnitude of the absolute value of the difference
in python programming, and network side between the coordinates of a pair of points from data.
measurements namely Quality of Service (QoS). And here is the Chebyshev distance calculation in
Equation 3.
2. BASIC THEORY 𝐷(𝑥, 𝑦) = max𝑘 |𝑥𝑖𝑘 − 𝑥𝑗𝑘 | (3)
446
Advances in Engineering Research, volume 198
process of converting analog to digital filters. In this connected without user intervention and at any
case, the sensor will be carried out on a non-invasive distance. In order to achieve the workings of the
basis. This sensor will be connected to a microcontroller Internet of Things (IoT), the internet is needed as a
for processing sensor data. Following Figure 2 is a liaison between the two machine interactions. The
comparison of red LEDs and infrared LEDs with Hb benefit from the concept of the Internet of Things
and HbO2: (IoT) itself is that the work to be done can be faster,
easier and more efficient.
3. METHODOLOGY
447
Advances in Engineering Research, volume 198
namely the Quik-Check tool, so that the percentage Table 5. The overall average value of each parameter k
error rate of the tool can be found. non-invasive before
using an algorithmic approach. And the following KNN Accuracy(%)
categories of hemoglobin levels for adults are in Table
1 92,7025611
2.
2 93,4871133
Table 2. Classification of Hemoglobin (Hb) Levels
3 93,3802562
Gender Category Gender Category 4 92,6299471
The Lack of The Lack of 5 92,2012265
Hb Hb k=
6 92,8351192
Adult Male <13,5 g/dl Adult Male <13,5 g/dl
7 93,0177505
Adult Adult
<12 g/dl <12 g/dl 8 92,9548548
Female Female
9 93,0185318
448
Advances in Engineering Research, volume 198
origin to destination. The delay will be calculated from Figure 5 is the average throughput value from the
the process of SpO2 value sent by NodeMCU until the NodeMCU ESP8266 communication to the process to
Hb value is sent to the Hb application, a description of Cloud ThingSpeak for sending SpO2 values.
the delay measurement sequence scheme calculated Throughput testing is carried out as many as 7 sessions
from the NodeMCU – Cloud – Server – Cloud – where each session is carried out as many as 10
Android Application. This process was carried out as attempts.
many as 7 sessions, where each session conducted an
Wireshark application is used to check the value of
experiment 10 times.
throughput by filtering IP NodeMCU ESP8266 which is
192.168.137.170 with the destination that is to Cloud
Delay (s) ThingSpeak which has an IP of 52.2.53.80. In this test,
the highest average throughput is found in session 6,
7.85
7.23
6.66
6.43
6.9
6.9
which is 10.72 Kbps and the smallest average value is in
5.6
11.5
11.2
11.1
11
11
11
10.6
Figure 4 Delay End-to-End monitoring system diagram
for 70 trials
13.06
13.4
12.9
10.63
10.48
9.79
9.63
9.37
449
Advances in Engineering Research, volume 198
Based on all this average value of throughput is [5] P. Mulak and N. Talhar, “Analysis of Distance
influenced by the system that sends 2 data at one time Measures Using K-Nearest Neighbor Algorithm on
sending to Cloud ThingSpeak as a Hb monitoring tool KDD Dataset,” Int. J. Sci. Res., vol. 4, no. 7, pp.
scenario. In Figure 5, the data sent from NodeMCU to 2319–7064, 2015.
Cloud ThingSpeak is the SpO2 value in field 1 and the
value 0 in field 2. In Figure 6, which is a Cloud – Server [6] M. Rezza et al., “Perancangan dan Implementasi
– Cloud communication data that is sent to Python Alat Ukur Kadar Hemoglobin Darah secara Non-
programming as well as 2 data, namely the SpO2 value Invasive berbasis Arduino,” Bandung Univ.
in the field 1 and value 0 in field 2 and sent back to Telkom, 2018.
Cloud ThingSpeak with field 1 value 0 and field 2 are
the Hb values that have been processed so that in this [7] J. Wan, Y. Zou, Y. Li, and J. Wang, “Reflective
process there is the largest average value of throughput type blood oxygen saturation detection system
compared to the two other system communications, and based on MAX30100,” 2017 Int. Conf. Secur.
for Cloud communication ThingSpeak until the Android Pattern Anal. Cybern. SPAC 2017, vol. 2018-
Application according to Figure 7, data sent will any Janua, no. 4, pp. 615–619, 2018.
change in field 2 or the processed Hb value.
[8] Maximintegrated, “Max30100,” Lect. Notes
5. CONCLUSIONS Energy, vol. 38, pp. 11–37, 2014.
Based on the results of testing that has been done, [9] D. Nettikadan and S. Raj, “Smart Community
the authors can draw conclusions as follows are The Monitoring System using Thingspeak IoT
process of designing a non-invasive hemoglobin Plaform,” Artic. Int. J. Appl. Eng. Res., vol. 13,
monitoring tool using the IoT-based KNN algorithm no. September, pp. 13402–13408, 2018.
runs well; The input value on the SpO2 with the KNN
[10] Bharati Wukkadada; Kirti Wankhede; Ramith
algorithm processing produces the highest average
accuracy of 93,481133% at k = 2; The greater the Nambiar; Amala Nair, “Comparison with HTTP
specified k value, the percentage of algorithm accuracy and MQTT In Internet of Things (IoT) - IEEE
is more stable due to having very limited training data Conference Publication,” 2018 Int. Conf. Inven.
collected; The average End-to-End Delay in the process Res. Comput. Appl. (ICIRCA 2018), no. Icirca, pp.
of sending the SpO2 value up to the Hb value to the 249–253, 2018.
android application is 6,8 s or 6800 ms; and The average
throughput on NodeMCU communications to Cloud [11] R. Wulandari, “Analisis Qos (Quality of Service)
Thingspeak is 9,98 Kbps, Communication Cloud – Pada Jaringan Internet (Studi Kasus : Upt Loka Uji
Server – Cloud is 13,76 Kbps and communication on Teknik Penambangan Jampang Kulon – Lipi),” J.
Cloud Thingspeak to Android Applications is 11,06 Tek. Inform. dan Sist. Inf., vol. 2, no. 2, pp. 162–
Kbps. 172, 2016.
[12] S. M. P. P. S. A. P. Keyur K Patel, “Internet of
REFERENCES
Things-IOT Definition, Characteristics,
[1] K. S. Pavithra, X. Anitha Mary, K. Rajasekaran, Architecture, Enabling Technologies, Application
and R. Jegan, “Low Cost Non-Invasive Medical & Future Challenges,” Ijesc, vol. 6, no. 5, p. 10,
Device for Measuring Hemoglobin,” Proc. IEEE 2016.
Int. Conf. Innov. Electr. Electron. Instrum. Media
Technol. ICIEEIMT 2017, vol. 2017-Janua, pp.
197–200, 2017.
[2] A.Pambudi, “Alat Monitoring Hemoglobin
menggunakan Algoritma jaringan saraf tiruan
propagasi kembali berbasiskan Internet of things,”
Bandung Univ. Telkom, 2020.
[3] S. Chugh and J. Kaur, “Non-invasive hemoglobin
monitoring device,” 2015 Int. Conf. Control.
Commun. Comput. India, ICCC 2015, no.
November, pp. 380–383, 2016.
[4] S. Imandoust and M. Bolandraftar, “Application of
k-nearest neighbor (knn) approach for predicting
economic events: Theoretical background,” Int. J.
Eng. Res. Appl., vol. 3, no. 5, pp. 605–610, 2013.
450