Professional Documents
Culture Documents
net/publication/348983273
CITATIONS READS
5 902
4 authors, including:
Al-Akhir Nayan
Chulalongkorn University
15 PUBLICATIONS 91 CITATIONS
SEE PROFILE
All content following this page was uploaded by Al-Akhir Nayan on 27 July 2021.
Abstract— The overall goal of the research work is to to server, analyze using machine learning mechanism and
localize user needs and discover ways to implement electronics finally send the decision of the medication or advise through
into the inhaler in order to solve the needs and improve the message.
user experience and service provisioning. Planning a context-
aware middleware may be a challenging issue because of Objective of the IoT based smart Inhaler is not only to
particular characteristics of settings and gadgets such as the remind a patient to inhale or to notify in case if patient
energetic nature of setting and asset confinement of gadgets. forgets to bring with him, but also to compute the current
Moreover, the middleware ought to give an agreeable status of the context of the patient and advise the amount of
framework in which application designers seem effortlessly medication based on the context. Due to the variation of the
trade determining relevant data. To address these issues, a context of the patient including the surrounding environment,
structural plan of a smart-inhaler for context-aware weather, altitude sickness, etc. the amount of medicine to be
middleware is proposed in this paper that bolsters inhaled by the same patient with similar physiological
participation among application engineers. Our whole system condition might be different. In the IoT based system, the
is IoT based and our output will give an efficient system for the
smart Inhaler is connected to a patient through his
patients of Asthma. In this work, different types of sensors and
smartphone application that will notify the patient to take
the connections between the sensors and server are the main
base of the system. Different types of sensors have been used
puffs as per regular schedule or alarm to take immediate
for the working process and for the base system SOC (system action.
on chip). Most importantly, this system should provide a good The IoT based Smart Inhaler System provides several
connection with the smartphone. As asthma patients consider features as shown in Fig. 1.
inhaler to be their lifesaver, it needs to be efficient and user
friendly. Considering all the possible options we have tried to
deliver a smart product to those asthma patients.
I. INTRODUCTION
Asthma is a clinical condition that affects about 300
million individuals worldwide [1]. This is projected that by
2025 [2] there could be an extra 100 million individuals with
asthma. Asthma accounts for about 1 of every 250 dies
Fig. 1. Features of IoT based Smart Inhaler
worldwide [3], while existing prevention, which naturally
requires patient care, will avoid 80 percent of these death [4]. The features include:
Further than 100 million people experience coughing and
chest tightness in Bangladesh. Nevertheless, citizens are • Tracking real-time usage of Inhaler;
seeking unplanned care and consuming unscientific, natural
and often dangerous goods in order to receive relief. Inhaled • Prescribing context aware medication;
drug is as the main therapy for asthma had contributed to • Reminding the patient by audio or visual notification to
major changes in the management of asthma [5, 6]. use Inhaler in time;
Unchecked asthma, nevertheless, is still widespread and
poses a significant burden on clinicians and society [7, 8]. • Providing alarm to remind the patient to bring the
IoT dependent context-aware intelligent inhaler program has Inhaler with him. The mobile device will alarm in case
now been introduced to concentrate on this issue and the patient moves out to a certain distance that is set by
conventional inhaled medicine. the patient. The app also allows the patient to search
the lost Inhaler around him by tapping a Find button. In
Context-awareness of the surrounding area of the patients that case, the Inhaler will make a buzzer sound;
has an important role in the IoT based service provisioning.
Due to the changing condition of the surrounding area of the • Providing patient’s personalized medication based on
patients, the doze of the medication might be changed. their pattern of Inhaler usage recovery rate,
Hence, an architecture has been described in this article physiological status, etc. Sensors attached to the Inhaler
which will collect the current data of the context using will collect and transmit data related to number of
times and patterns of Inhaler use, physiological data
different physiological and contextual sensor, transmit them
that implies recovery rate by using the Inhaler, etc. A
Fig. 4. Context-aware middleware architecture TABLE I. FEATURE DATA FOR PHYSIOLOGICAL MODULE
FEATUR DESCRIPTION
D. Physiological Status Measurement Module E
Sensors attached to a human body for reading oxygen Oxygen level Oxygen level (%) in user blood
level in blood, heart-beat rate, body temperature and then Heart beat Rate Heart beat rate (BPM) on user body
send these data to the server for further work. The following Body Temperature Body temperature (°F) of user
sensors have been used:
In this case, this model uses 2 labels reflecting the
i. SPO2 sensor (measures the oxygen saturation of a
classification of user:
patient's blood)
1) Risk = risk condition for user.
ii. Heart beat sensor 2) Normal= normal condition for user.
iii. Body temperature sensor Here are some measurements of Oxygen level and their
The proposed system saves the data for providing better classification for human Physiological Condition [12].
healthcare services. Data will come directly from the context
TABLE II. OXYGEN LEVEL IN HUMAN BODY CLASSIFICATION.
source through context provider and saved in storage in the
server, they will be analyzed and shown and notify to user by Oxygen level in blood (%) Physiological Condition
his registered smartphone application. For asthma patient 95 – 100 Normal
oxygen level indication will make difference between usages Less than 95 Below normal
of inhaler. Heart beat up down is directly connected with
asthma, like a patient is having an attack, his/her heart beat Here are some measurements of Heart Rate in human
rate will automatically rise. As the time and change in the body and their classification for human Physiological
heartbeat will be recorded in the storage, doctor can recall Condition [13].
those data to have a close look of patient’s cardiological
conditions. Body temperature can differ in various situations. TABLE III. HEART RATE IN HUMAN BODY CLASSIFICATION
Hence, the proposed smart inhaler system considers this Heart Rate (BPM) Physiological Condition
issue. 60 -100 Normal
Greater than 100 Raising
E. Environmental Context Measuring Module 190 Maximum
Asthma trigger can change according to the change in The average body temperature is generally accepted as
environment around a patient. So, considering this part, our 98.6 °F (37 °C). Here are some measurements of Body
works will be like: Sensors attached to human body for temperature in human body and their classification for
reading Environmental status such as humidity, temperature, human Physiological Condition [14].
amount of carbon monoxide and other gases mixing in the
air and the data will be transmitted from the context source TABLE IV. BODY TEMPERATURE IN HUMAN BODY CLASSIFICATION
through context provider to the server for the analysis and
Body temperature (°F) Physiological Condition
further work. The following sensors have been used:
97.7 – 99.5 °F Normal
Greater than 99.5 or 100.9 °F Fever
i. Multi-Pixel Gas Sensors SGP
Less than 95.0 °F Hypothermia
ii. Humidity sensor
iii. Temperature sensor The training data for the Naive Bayes algorithm for the
iv. CO Sensor Physiological module is listed in Table V.
The sensors will collect data from the context, and the
data will be analyzed to determine the environmental
condition for the user. Like the level of carbon monoxide,
Humidity, Temperature, oxygen etc. are very important to
TABLE V. TRAINING DATA FOR NAIVE BAYES CLASSIFIER particularly if it is below 10 ° F (-12.2 ° C) to avoid asthma
(PHYSIOLOGICAL MODULE)
attacks [15].
Oxy_level H_Rate B_Temp Level
1 98 65 98.5 Normal TABLE VIII. TEMPERATURE IN THE CONTEXT CLASSIFICATION
2 92 60 97.7 Risk Temperature (°F) Physiological Condition
3 98 150 99 Risk 10 – 100 Normal
4 95 100 98 Normal Greater than 100 Risk
5 95 98 99.5 Normal Less than 10 Risk
6 97 66 98.4 Normal
7 89 52 94.2 Risk People usually find the most comfortable relative
humidity between 30 and 60 percent, with guidelines for
8 96 85 97.6 Normal
maintaining relative humidity indoors between 30 and 50
9 95 62 98.1 Normal
percent where possible. Higher humidity levels in the home
10 99.1 70 97.9 Normal provide an atmosphere for two excessive asthma and allergy
11 100 60 99.7 Normal causes [15].
12 90 65 95.2 Risk
TABLE IX. HUMIDITY IN THE CONTEXT CLASSIFICATION
.
. Humidity (%) Physiological Condition
. 31 -50 Normal
Greater than 50 Risk
1015 97.1 68 97.9 Normal
Less than 31 Risk
1016 95 190 103.6 Risk
We used Multi-Pixel Gas Sensor SGP30 which is a fully
The data continuously coming from physiological integrated MOX gas sensor. To offer more accurate air
condition measurement sensors will be used for quality signals, the SGP integrates several metal-oxide
physiological condition measurement reading of user body. sensing elements on one chip. It returns a reading of Total
Now these data will be sent to Naive Bayes classifier to test Volatile Organic Compound (TVOC), and a reading of
them. The data would be unleveled data. The classifier will Carbon monoxide (CO) equivalent [16].
level these data. The non-classify data would be like these:
TABLE X. HUMIDITY IN THE CONTEXT CLASSIFICATION
TABLE VI. TEST DATA FOR NAIVE BAYES CLASSIFIER TVOC (mg/m ) 3 13
Air quality
(PHYSIOLOGICAL MODULE)
Less than 0.3 Very good
Oxy_level H_Rate B_Temp Level 1.0 – 3.0 Good
1 95 64 99.2 Greater than 3.0 Poor
2 91 85 96.7 ?
3 98 150 99 The training data for the Naive Bayes algorithm for the
4 95 106 98 contextual module is listed in Table XI.
B. Feature data for contextual module
TABLE XI. TRAINING DATA FOR NAIVE BAYES CLASSIFIER
The training and testing set includes 3 features regarding (CONTEXTUAL MODULE)
contextual conditions.
Temp Humi Air_q Level
TABLE VII. FEATURE DATA FOR CONTEXTUAL MODULE 1 10 35 0.8 Normal
2 25 43 1.2 Normal
Feature Description
3 103 55 3.5 Risk
Temperature (°F) Temperature in the user context 4 36 40 1.9 Normal
5 36 42 3.5 Risk
Humidity (%) Humidity in the user context 6 9 29 0.9 Risk
7 5 27 0.8 Risk
Air quality (mg/m3)13 Quality of gas mixing in the air of user’s context
8 57 43 2.7 Normal
9 99 50 3.0 Normal
10 87 49 2.4 Normal
In this case, this model uses 2 labels reflecting the
11 44 35 1.9 Normal
classification of user: 12 25 46 0.3 Risk
1) Risk = risk condition for user. .
2) Normal= normal condition for user. .
.
Researchers found that a room temperature of about 71 °
1015 40 41 2.8 Normal
F (21.6 ° C) did not cause symptoms of asthma, but at 120 °
1016 68 37 1.2 Normal
F (48.8 ° C) breathing in super-hot air did. And also try to
remain indoors when the temperature drops very low,
The data continuously coming from contextual condition The main purpose of the smartphone application is to
measurement sensors will be use for contextual condition provide notification in case the user forgets the smart inhaler
measurement reading of user context. Now these data will to carry with. A notification is provided the notification bar.
be send to Naive Bayes classifier to test them. The data The app has been developed using Bluetooth Adapter API
would be unleveled data. The classifier will level these data. of Android development and tested in the research work. At
the time the application is connected with the Bluetooth of
TABLE XII. TEST DATA FOR NAIVE BAYES CLASSIFIER (CONTEXTUAL the Laptop, the app will show notification as Connected
MODULE)
because of the data transfer is being happened between
Temp Humi Air_q Level them. The app will show notification as Disconnected
1 25 32 3.0 because of the interruption of data transfer between them.
2 101 50 1.9
?
3 76 39 2.5 At the time, the app is connected with the Bluetooth of
4 54 42 0.9 the Laptop, the app notifies Connected as the data transfer is
being started. As long as the data transfer is taken place, the
IV. SMARTPHONE APPLICATION FOR NOTIFICATION
app will show connected that represents connection between
An android Application has been developed that notifies the Laptop and smartphone app. Fig. 6 shows the connected
at the time the user smartphone is connected to inhaler as status of the smartphone app.
well as at the time the smartphone is out of range. Due to the
Bluetooth connection, the smartphone application provides
notification in the case the smartphone takes away
approximately 10 meters from the Inhaler.
In this research work, the application is connected to the
inhaler means, serial data is passing from the Bluetooth low
Energy (BLE) module to the smartphone app. When these
serial data passing will stop that means the app is
disconnected from the Bluetooth module or out of range of
Bluetooth, then the app give disconnected notification to the
user to not to forget to take inhaler. For the time being, this
research work is done without BLE module which would be
attached to the inhaler, but the experiment is done with a
Laptop and the app by data passing between them which is
same as data passing between BLE device and the app.
In this research, a Laptop is considered as a Smart
Inhaler. The app gives notification when Bluetooth is Fig. 6. Connected State of Notification
connected and disconnected based on data transfer between
the Laptop and the smartphone. The notification shows At the time, data transfer is completed from the Laptop
connected at the time when any data such as an image or to the smartphone, the smartphone app will automatically
music is shared, and the app shows disconnected right after notify Disconnected. This state implies that if smart Inhaler
the data transfer is finished. Considering the Laptop, when lost network connection from the smartphone, the
the app is out of range of Bluetooth connection with the smartphone app will automatically notify the user. After
Laptop, the Laptop does not notify disconnection successfully completion of data transfer from the laptop to
notification to the user smartphone, this is because, once the the smartphone, the smartphone app notifies Disconnected
smartphone is paired with the Laptop means it is paired as shown in Fig. 7.
permanently and remains paired until the history is
removed. But the app works with BLE module properly.