본문 펼치기
_Sensors and Materials_, Vol. 31, No. 1 (2019) 117–130 117
MYU Tokyo
S & M 1754
# Nasogastric Tube Dislodgment Detection in Rehabilitation Patients Based on Fog Computing with Warning Sensors and Fuzzy Petri Net
Chien-Ming Li, <sup>1</sup> Yueh-Ren Ho, <sup>2</sup> Wei-Ling Chen, <sup>3</sup>
Chia-Hung Lin, <sup>4*</sup> Ming-Yu Chen, <sup>5</sup> and Yong-Zhi Chen <sup>5</sup>
1Division of Infectious Diseases, Department of Medicine of Chi Mei Medical Center,
Tainan City 710, Taiwan
2Department of Biochemistry, Medical College of National Cheng Kung University,
Tainan City 70101, Taiwan
3KSVGH Originals & Enterprises and Department of Engineering and Maintenance,
Kaohsiung Veterans General Hospital, Kaohsiung City 81362, Taiwan
4Department of Electrical Engineering, National Chin-Yi University of Technology,
Taichung City 41170, Taiwan
5Department of Electrical Engineering, Kao-Yuan University,
Kaohsiung City 82151, Taiwan
(Received May 12, 2018; accepted September 5, 2018)
_Keywords:_ nasogastric tube, mechanical complication, light-controlled sensor, fuzzy petri net
The use of nasogastric (NG) tubes in acute, critical, and long-term care may lead to
mechanical, infectious, and metabolic complications. NG intubation is a risk factor for
aspiration and complications of organ injury. Mechanical complications include deliberate selfextubation and accidental extubation, both of which comprise unplanned extubation and occur
in >35% of cases in rehabilitation rooms. Therefore, we intend to propose a digital warning
tool to detect NG tube dislodgment over several days or weeks for a continuous insertion of the
NG tube. On the basis of fog computing, integrating dexter-to-sinister light-controlled sensors
and fuzzy Petri net (FPN) was performed to achieve the proposed assistant tool. The proposed
intelligent algorithm can also be easily implemented using a high-level programming language
(Language C/C++) in an embedded system. The experimental results demonstrated the
feasibility of the algorithm under normal conditions and partial and NG two-tube dislodgments.
1. Introduction
Nasogastric (NG) tubes are used for the continuous feeding of liquids or nourishment using
an electronic pump or for promoting feeding in patients who have difficulty in swallowing; they
are also used to administer drugs or remove gastric contents in patients with stroke and burns
and those under rehabilitation. <sup>(1–3)</sup> An NG tube is a flexible plastic tube inserted through the
nose, the nasopharynx, the gullet, and into the stomach, as shown in Fig. 1(a). The placement of
an NG tube in the correct position can be confirmed by a chest/abdomen X-ray and a pH testing
<u>*Corresponding author: e-mail: eechl53@gmail.com</u>
https://doi.org/10.18494/SAM.2019.1993
ISSN 0914-4935 © MYU K.K.
https://myukk.org/
118 _Sensors and Materials_, Vol. 31, No. 1 (2019)
(a) (b)
Fig. 1. (Color online) NG tube and warning sensors. (a) NG tube feeding and (b) warning sensors for NG tube
dislodgment.
paper. <sup>(4–5)</sup> A pH testing result of <5 indicates that the tube is placed in the correct position. The
NG tube can be easily placed and is taped to the patient’s nose using a nose clip to prevent its
accidental removal. However, some infectious complications may develop over several days or
weeks after the insertion of the NG tube, such as nose bleeds, aspiration pneumonia, pulmonary
aspiration, and acute respiratory distress syndrome. <sup>(1,6,7)</sup> In addition, mechanical complications
occur during practical usage, such as tube displacement, dislodgment, or clogging, which may
affect the delivery of nutrients to patients. <sup>(8)</sup> Such an unplanned extubation can be categorized
into deliberate self-extubation and accidental extubation. Tube dislodgment can occur while the
patient is being repositioned in bed, during walking, or during transfer to a chair. Sometimes,
discomfort in the nares and a tube sensation in the pharynx may also cause patients to remove
and dislodge the NG tubes.
In a rehabilitation room, >35% of patients require the placement of NG tubes, of whom
about 70% have deliberate self-extubation and 30% have accidental extubation. These
patients primarily include >60% of those aged >65 years and 64% of males, with 80% of them
comprising the majority with ischemic stroke. To prevent such cases of unplanned extubation,
this study was conducted to design a digital warning tool to detect NG tube dislodgment
based on fog computing <sup>(9,10)</sup> using warning sensors and fuzzy Petri net (FPN) for patients
under rehabilitation. Two warning sensors were arranged on the left and right sides of the
nose tape, as shown in Fig. 1(b). Each sensor is a light-dependent resistor (variable resistance
semiconductor) with varying light intensities. The resistor voltage divider and the voltage
follower can be used to transfer voltage changes in the sensing unit. The FPN <sup>(11–13)</sup> is a
dynamic and marked graphical system and can be extended to develop an algorithm to deal with
fuzzy inferences for decision-making applications. In the fuzzy layer, fuzzification operations
can convert the analogy voltage changes into membership grades using _Z_ and _S_ sigmoidal
membership functions (MFs). Petri net is used to map these grades into rule-weighted outputs
for decision-making to identify NG tube dislodgment.
On the basis of fog computing (edge computing) applications, <sup>(9,10)</sup> this framework can
primarily analyze time-sensitive data at the network edge or near the sensing unit, instead of
_Sensors and Materials_, Vol. 31, No. 1 (2019) 119
sending a vast amount of sensing data to the cloud layer. In this study, a digital warning tool, as
seen in Fig. 1(b), is designed as a local connecting network, including one or more end-sensing
units and a remote monitor system (such as a smart phone or iPad) in a rehabilitation room for
individual or multibed monitoring applications. Any sensing unit detects abnormal data at the
edge of the wireless communication network, while a wireless transmitter sends the selected
warning messages to the cloud for further analysis and storage. This technique can reduce
the communication bandwidth between the sensor and the central data center and involves the
wireless sensor network, mobile data acquisition, and mobile signature analysis. The sensing
unit along with the two warning sensors on the left and right sides of the nose manipulates highand low-analogy voltages with varying light intensities. The proposed assistant warning tool
can continuously monitor the real-time unplanned extubation in the fog computing layer and
can also integrate with the wireless sensor and the intelligent mobile device via fog-to-remote
device communication for use in the rehabilitation room. The FPN-based digital warning tool
can deal with input analogy voltages to clarify tube dislodgment with minimum and maximum
composite operations <sup>(14)</sup> and the corresponding output with the logic high signal to drive an
alarm unit. It performs computation and analysis operations using the microcomputer and
microcontroller, <sup>(15,16)</sup> as shown in Fig. 2. Therefore, warning sensors and the digital warning
tool were integrated into an intelligent end-alarm unit to indicate the warning information in
the fog computing layer. Its inference output can also send warning information to the cloud
layer via the WiFi wireless local area network [IEEE 802.11 Standard, WLAN <sup>(17)</sup> ] to the central
data center and iPad (smart phone). The experimental results demonstrated the efficiency of the
proposed prototyping tool. This digital alarm unit based on fog computing can also be used for
multibed monitoring applications in rehabilitation rooms.
The remainder of this article is organized as follows. In Sect. 2, we describe the
methodology, including the warning sensor, FPN, and alarm unit based on fog computing. In
Sects. 3 and 4, we present the experimental results and conclusion, respectively.
Fig. 2. (Color online) Framework based on fog computing for nasogastric tube dislodgment.
120 _Sensors and Materials_, Vol. 31, No. 1 (2019)
2. Materials and Methods
2.1 Warning sensors and FPN
In this study, the warning sensor was made of a high-resistance semiconductor and was
a light-controlled variable resistor (illumination: 0.1–1000.0 Lux). The warning sensor was
sensitive to light spectrum between 500 (green light) and 700 nm (red light), manipulating the
low or high resistors as a dark-activated switching circuit. When it acted in the dark-activated
state, the sensor resistor was >10 MW, and as the light intensity increased, the internal resistor
decreased. Two light-controlled sensors were arranged on the left and right sides of the nose
tape for continuous monitoring. As shown in Fig. 2, a resistor voltage divider with a warning
sensor ( _Rs_ ) and a pull-down resistor ( _Rg_ ) were connected to a constant voltage source of _Vcc_ =
+5.0 VDC (current: 0.00–5.00 mA). In the case of an NG tube dislodgment, any warning will
detect light as the sensor resistor decreases. This implies that the current flowing through both
_Rs_ and _Rg_ will increase through the constant voltage source _Vcc_ to the ground, and the nodal
voltage across the pull-down resistor will also increase. Then, the two sensing nodal voltages,
_Vi_, _i_ = 1, 2, could be obtained on the analog input connectors as follows:
_<u>Rg</u>_
= _Vcc_ × _Rs_ + _Rg_
_<u>Rg</u>_
_Vi_ = _Vcc_ × _Rs_ + _R_
_<u>Rg</u>_
_i_ = _Vcc_ × _R_ +
_s_ + _Rg_
. (1)
The analog input ports were used to measure the 0.0–5.0 VDC voltage signals via the voltage
followers to analog-to-digital converters (ADCs). Then, digital nodal voltages, _Vi_, _i_ = 1, 2, were
applied to the FPN-based digital warning tool. As shown in Fig. 3, the voltage level changes
were parameterized using the _Z_ and _S_ sigmoidal MFs to describe the high or low voltage level
as shown below.
Fig. 3. (Color online) MFs for describing voltage level changes.
_Sensors and Materials_, Vol. 31, No. 1 (2019) 121
1, 3.0 ≤ _Vi_ ≤ 5.0
_Vi_
1, 3.0 ≤ _Vi_ ≤ 5.0
= exp <u>−</u> <u>1</u> × _<u>Vi</u>_ <u>−</u> <u>3</u> 2 , 0.0 ≤ _Vi_ <
<u>2</u> σ
_i_
_i_,1 = exp <u>−</u> <u>1</u> × _<u>Vi</u>_ <u>−</u> <u>3</u> 2
_i_
µ _i_,1 = exp <u>−</u> <u>1</u> × _<u>Vi</u>_ <u>−</u> <u>3</u> 2 , 0.0 ≤ _Vi_
2
exp <u>−</u> <u>1</u> × _<u>Vi</u>_ <u>−</u> <u>3</u> , 0.0 ≤ _Vi_ < 3.0
<u>2</u> σ
_i_,1 = exp <u>−</u> <u>1</u> × _<u>Vi</u>_
σ
1, 0 ≤ _Vi_ ≤ 2.0
_Vi_
1, 0 ≤ _Vi_ ≤ 2.0
= exp <u>−</u> <u>1</u> × _<u>Vi</u>_ <u>−</u> <u>2</u> 2 , 2.0 < _Vi_ ≤
<u>2</u> σ
_i_
_i_,2 = exp <u>−</u> <u>1</u> × _<u>Vi</u>_ <u>−</u> <u>2</u> 2
_i_
µ _i_,2 = exp <u>−</u> <u>1</u> × _<u>Vi</u>_ <u>−</u> <u>2</u> 2 , 2.0 < _Vi_
2
exp <u>−</u> <u>1</u> × _<u>Vi</u>_ <u>−</u> <u>2</u> , 2.0 < _Vi_ ≤ 5.0
<u>2</u> σ
(2)
(3)
_i_,2 = exp <u>−</u> <u>1</u> × _<u>Vi</u>_
σ
Here, _Vi_ is the nodal voltage; the index _i_ is the number of warning sensors, _i_ = 1, 2; the MFs
_μi,_ 1 are used to detect the voltage change for Sensor 1# and Sensor 2#, which are employed
to identify the high voltage level, and the MFs _μi,_ 2 are used to identify the low voltage level,
as seen in Fig. 3. The standard deviation _s_ is 0.5 VDC in this study. As shown in Fig. 3, a
membership grade between “0” and “1” is assigned to represent the high and low voltage levels
in the sensing unit.
The FPN can be used to represent the Fuzzy IF-THEN rules of a rule-based inference system
for the detection of NG tube dislodgment, as shown in Fig. 4. It is a marked graphical system
containing the following two types: places (Pl) and transitions (Tr), where circles represent Pls
and bars represent Trs. Each Tr is associated with a certainty factor between “0” and “1”. In
general form, the definition of the FPN is as follows: <sup>(10–12)</sup>
Fig. 4. (Color online) Structure of FPN-based inference manner.
122 _Sensors and Materials_, Vol. 31, No. 1 (2019)
_FPN_ _=_ _(Pl,_ _Tr,_ _D,_ _V,_ _C, μ, θ, β, W), Pl ∩ Tr ∩ D =_ Ø and _|Pl|=|D|_, (4)
where _Pl_ = [ _p_ 1 _, p_ 2 _, p_ 3 _, …, pm_ ] is a finite set Pls;
_Tr_ = [ _t_ 1 _,_ 1 _, t_ 1 _,_ 2 _, t_ 2 _,_ 1 _, t_ 2 _,_ 2] is a finite set of Trs;
_D_ = [ _d_ 1 _, d_ 2] is a finite set of propositions (Prs);
_V_ = [ _V_ 1 _, V_ 2] is a set of input analog voltages, a mapping from Trs to desired Pls;
_C_ is the output function for final decisions;
_μ_ = [ _μ_ 1,1, _μ_ 1,2, _μ_ 2,1, _μ_ 2,2] is a set of MFs, as defined in [0,1] from inputs to Trs;
_θ_ = [ _θ_ 1, _θ_ 2] is a set of MFs, as defined in [0,1] from places to Prs;
_β_ = 1 is a weighted value from Trs to desired Pls;
_W_ = 1 is a weighted value from Prs to a desired final output, _C_ .
The structure of the FPN-based inference tool is represented by a rule connectivity graphical
system, as depicted in Fig. 4. The FPN performs the minimum (AND operator) or maximum
(OR operator) composite operations [by Looney and Alfize <sup>(14)</sup> ] to generate the final goal Pr _C_,
and the overall FPN inference rules are shown in Table 1. The FPN algorithm is summarized as
follows:
Step (1): IF ( _μi_,1, _μi_,1) THEN _ti_,1, where _ti_,1 = _μ_ _i_,1, _i_ = 1, 2, and IF ( _μi_,2, _μi_,2) THEN _ti_,2, where _ti_,2 = _μ_ _i_,2,
_i_ = 1, 2.
Step (2): perform the maximum operation in place _Pl_ -1#, _p_ 1 = max {( _t_ 1,1 × _β_ ), ( _t_ 2,1 × _β_ )} and _p_ 2 =
max {( _t_ 1,2 × _β_ ), ( _t_ 2,2 × _β_ )}.
Step (3): compute the proposition using MF, _θi_ ( _pi_ ), then Pr is _d_ i = _θ_ i( _pi_ ), _i_ = 1, 2, where _θi_ ( _pi_ ) is a
nonlinear approximator and is defined by
## θ i = exp (−( 1 − p i )), 0 < θi ( pi ) ≤ 1. (5)
Step (4): perform the maximum operation in place _Pl-_ 2#, _p_ 3 = max { _d_ 1, _d_ 2}, _j = i*_, _i*_ is the index
at its maximum value in place _Pl-_ 2#.
Step (5): compute the final output _C_ = _Wj_ × _dj_, where the index _j_ = 1, _W_ 1 = 1 for “NG tube
dislodgment”, and the index _j_ = 2, _W_ 2 = 0 for normal condition, as
_W_ 1 = 1, _d_ 1 ≥ _d_ 2
_W_ 2 = 0, _d_ 1 < _d_
1 = 1, _d_ 1 ≥ _d_ 2
2 = 0, _d_ 1 < _d_ 2
. (6)
Table 1
<u>Overall FPN inference rules.</u>
<u>Input</u> _<u>MF</u>_ _<u>Tr</u>_ _<u>Pl</u>_ <u>-1#</u> _<u>D</u>_ _<u>Pl</u>_ <u>-2#</u> <u>Output</u>
Goal: _C_ = _p_ 3 × _Wj_
_j_ = 1 or 2
_W_ 1 = 1, _W_ 2 = 0
_V_ 1 & _V_ 2
_<u>μ</u>_ <u>1,1</u> _<u>t</u>_ <u>1,1</u>
_p_ 1 = max( _t_ 1,1 × _β_, _t_ 2,1 × _β_ ) _d_ 1 = _θ_ ( _p_ 1)
_<u>μ</u>_ <u>2,1</u> _<u>t</u>_ <u>2,1</u> _p_ 3 = max( _d_ 1, _d_ 2)
_p_ 1 = max( _t_ 1,1 × _β_, _t_ 2,1 × _β_ ) _d_ 1 = _θ_ ( _p_ 1)
_<u>μ</u>_ <u>2,1</u> _<u>t</u>_ <u>2,1</u>
_<u>μ</u>_ <u>1,2</u> _<u>t</u>_ <u>1,2</u>
_p_ 2 = max( _t_ 1,2 × _β_, _t_ 2,2 × _β_ ) _d_ 2 = _θ_ ( _p_ 2)
_<u>μ</u>_ <u>2,2</u> _<u>t</u>_ <u>2,2</u>
_j_ = _i_
_Sensors and Materials_, Vol. 31, No. 1 (2019) 123
In place _Pl_ -2#, the value _pi_ *, 0 ≤ _pi_ - ≤ 1, _θi_ *( _pi_ - = 0) = 0.3679, and the larger the value, the
more likely the output goal Pr will be identified. We have the following two states:
- NG tube dislodgment: _W_ 1 = 1 and the final output _C_ - 0.3679,
- normal condition: _W_ 2 = 0 and the final output _C_ = 0.0000.
A hard limit function with the threshold value of 0.50 is used to produce the high-voltage
signal to drive an alarm unit as follows:
1, _C_ ≥ 0.50,
_C_ - =
0, _C_ < 0.50,
(7)
where the index _C*_ sets the digital output state as either “logic high (1)” or “logic low (0)”. The
output index _C*_ is used to identify the possible state for normal condition (0) and dislodgment
condition (1). Then, a loud alarm is activated when the digital output is in the high level. In
addition, the warning information is easily transmitted from the sensing unit to a mobile device
via WiFi wireless synchronous serial communication.
2.2 Alarm unit based on fog computing
As shown in Fig. 5, the proposed FPN algorithm could be easily implemented in the
Arduino <sup>®</sup> prototyping platform (Uno, Atmel 8-bit CMOS microcontroller 32 kB selfprogrammable mechanism, 6 analog inputs, 14 digital inputs/outputs, DI/DO) in the fog layer.
Each warning sensor (variable resistor, _Rs_ ) was connected to a constant voltage source and
a fixed pull-down resistor, _Rg_ = 10 kW. Two light-controlled sensors were used, which were
Fig. 5. (Color online) Proposed fog computing prototype with warning sensors and Arduino platform.
124 _Sensors and Materials_, Vol. 31, No. 1 (2019)
connected using two signal wires to two analog inputs of an Arduino, as shown in Fig. 2. The
serial communication was 9600 bits of data per second to obtain the nodal voltages from the
sensing unit to a smart mobile device or a portable computer. The analog voltage ranged from 0
to about 5 VDC scaled as
_Vi_ = _Vmea i_, × _<u>Vcc</u>_ (float data type), (8)
_i_ = _Vmea i_, × _<u>Vcc</u>_
, × <u>1023.0</u>
where _Vmea_, _i_, _i_ = 1, 2, is the metering voltage whose value changes from 0–1023 to the range
that corresponds to the voltage 0.0–5.0 VDC (10-bit analog-to-digital converter, 6 channels,
maximum reading rate: 10000 times/s). The proposed FPN algorithm detected 1024 (2 <sup>10</sup> )
discrete analog levels and took about 100 ms to obtain an input analog voltage. Then, two nodal
voltages, _V_ 1 to _V_ 2, were applied to identify the voltage level changes using Eqs. (2) and (3).
Table 2 shows the possible nodal voltage of each sensor versus possible ambient light in a
rehabilitation room. When the sensing unit detected any nodal voltage changes, the proposed
FPN-based digital alarm unit produced the logic high signal to drive a loud alarm in the fog
computing layer. Thus, an end-sensing unit was converted into an intelligent tool to identify
the “Yes” or “No” tube dislodgment and to indicate the warning information in a liquid crystal
display (LCD) screen. It could transit warning signals to the cloud layer via the WiFi WLAN (IEEE
802.11 Standard) to a wearable or a mobile device in the 2.4-GHz medical frequency band <sup>(17)</sup>
for continuous personalized real-time monitoring in a rehabilitation room (20 × 30 m <sup>2</sup> ).
3. Experimental Results and Discussion
The proposed FPN-based intelligent algorithm was implemented using a high-level
programming language (Language C/C++) in the Arduino <sup>®</sup> board, including the exponentiation
operations, logic operations, and bubble (quick) sorting algorithms, <sup>(18,19)</sup> as shown in Fig. 6. We
were able to design a control program on a host tablet PC, which could be downloaded to the
Arduino <sup>®</sup> platform. The program could automatically perform when the universal serial bus (USB)
wire connection to the tablet PC was removed. For portable application, the Arduino <sup>®</sup> platform
was powered by a mobile battery (standard range of 6–9 VDC) without connecting to the
tablet PC. Figure 7 shows the experimental setup for the detection of the NG tube dislodgment
under four situations. When the nose tape was partially or completely dislodged, the total
resistance of the light-controlled sensor photocell and the pull-down resistor decreased, and the
current flowing through the fixed pull-down resistor increased. Thus, any nodal voltage was
Table 2
<u>Nodal voltage of warning sensor under diferent ambient light conditions.f</u>
<u>Nodal voltage</u>
<u>Ambient light</u>
State
<u>(lux)</u>
_<u>Rs</u>_
<u>(</u> <u>W</u> <u>)</u>
<u>(</u> <u>W</u> <u>)</u>
<u>Current</u>
<u>(mA)</u>
State
<u>(lux)</u> <u>(</u> <u>W</u> <u>)</u> <u>(</u> <u>W</u> <u>)</u> <u>(mA)</u> <u>(V)</u>
<u>Dark</u> <u>0</u> <u>>10M</u> <u>>10M</u> <u>≈</u> <u>0.00</u> <u>≈</u> <u>0.00</u>
Bright 100 ≈ 2.5K 11.5K ≈ 0.43 4.00 ± 0.30
<u>Daylight</u> <u>10000</u> <u>≈</u> <u>0.1K</u> <u>10.1K</u> <u>≈</u> <u>4.90</u> <u>≈</u> <u>4.95</u>
<u>(lux)</u>
_<u>Rg + Rs</u>_
_Sensors and Materials_, Vol. 31, No. 1 (2019) 125
proportional to the inverse of the photocell resistance. The nodal voltages, _V_ 1 and _V_ 2, could be
obtained to identify the voltage level using Eqs. (2) and (3). For example, considering two-tube
dislodgment, the detection procedure is as shown below.
Step (1) Meter the analog nodal voltages, _V_ = [ _V_ 1, _V_ 2] = [3.95, 4.03], and identify the voltage
levels by quantifying as membership grades, _μ_ = [ _μ_ 1,1, _μ_ 2,1, _μ_ 1,2, _μ_ 2,2] = [1.00, 1.00, 0.00,
0.00], then _Tr_ = [ _t_ 1,1, _t_ 2,1, _t_ 1,2, _t_ 2,2] = [ _μ_ 1,1, _μ_ 2,1, _μ_ 1,2, _μ_ 2,2].
Fig. 6. (Color online) Editor of Arduino <sup>®</sup> software (IDE) and monitor interface.
Fig. 7. (Color online) Experimental setup for NG tube dislodgment detection. (a) Normal condition, (b) left-side
dislodgment, (c) right-side dislodgment, and (d) two-tube dislodgment.
126 _Sensors and Materials_, Vol. 31, No. 1 (2019)
Step (2) Perform OR (maximum) operations with four transitions in place _Pl_ -1#, _p_ 1 = max( _t_ 1,1 × _β_,
_t_ 2,1 × _β_ ) = 1.00 and _p_ 2 = max( _t_ 1,2 × _β_, _t_ 2,2 × _β_ ) = 0.00.
Step (3) Compute the Prs using Eq. (5), _D_ = [ _d_ 1, _d_ 2] = [1.0000, 0.3679].
Step (4) Find the maximum one in place _Pl-_ 2#, _p_ 3 = max( _d_ 1, _d_ 2) = 1.0000, and its index _j_ = _i*_ = 1.
Step (5) Find the final goal Pr _C_ = _p_ 3 × _W_ 1 = 1.0000 and produce the output signal using the
hard limit function, _C_ - = 1.0000 (Yes, NG tube dislodgement), as shown in Table 3.
This finding confirmed that the proposed FPN-based digital alarm unit can detect partial and
two-tube dislodgments, as seen in Fig. 8. Considering the possible situations, the experimental
results indicated the efficiency of the prototype tool as shown in Table 3. This digital warning
tool could produce an output binary pattern with the logic high signal to directly drive a loud
alarm, which can be used to transmit warning information to healthcare nurses.
In critical, acute, and long-term care, healthcare nurses provide nutrition and hydration
via the NG tube to rehabilitation patients via oral intake. However, tube usage could lead to
mechanical, infectious, and metabolic complications. The mechanical complications include
deliberate self-extubation and accidental extubation, which are primarily unplanned extubation.
Taping to the nasal bridge is the most frequently used method to secure the NG tube. In
some cases, clinicians use the bridle technique to anchor small-bore NG tubes in patients for
unintentional tube removal owing to the mental status, distress, and discomfort. <sup>(20)</sup> In addition,
a noticeable mark could be made on the tube at a known distance from the nose. Displaced
tubes can be detected when the nurses notice an increase in the external length of the NG tube
outside the nose. In the acute and critical care setting, nurses have to regularly check the tube
position at 4 h intervals. <sup>(21)</sup> Therefore, care facilities must consider a checklist or standard
mechanisms to ensure the correct tube position in routine examination. For rehabilitation
patients’ healthcare, the proposed digital warning tool could enhance the healthcare quality
and could be integrated into one or more intelligent end-alarm units to perform measurement,
Table 3
<u>Experiment results for normal condition, partial dislodgment, and two-tube dislodgment.</u>
<u>Situation</u> <u>Input (V)</u> _<u>MF</u>_ <u>,</u> _<u>μ</u>_ _<u>Tr</u>_ _<u>Pl</u>_ <u>-1#</u> _<u>D</u>_ _<u>Pl</u>_ <u>-2#</u> <u>Output</u>
_<u>d</u>_ 1 = _<u>θ</u>_ <u>(</u> _<u>p</u>_ 1)
<u>= 0.3679</u>
_<u>d</u>_ 2 = _<u>θ</u>_ <u>(</u> _<u>p</u>_ 2)
_<u>=</u>_ <u>1.0000</u>
_<u>d</u>_ 1 = _<u>θ</u>_ <u>(</u> _<u>p</u>_ 1)
<u>= 1.0000</u>
_<u>d</u>_ 2 = _<u>θ</u>_ <u>(</u> _<u>p</u>_ 2)
_<u>=</u>_ <u>1.0000</u>
_<u>d</u>_ 1 = _<u>θ</u>_ <u>(</u> _<u>p</u>_ 1)
<u>= 1.0000</u>
_<u>d</u>_ 2 = _<u>θ</u>_ <u>(</u> _<u>p</u>_ 2)
_<u>=</u>_ <u>1.0000</u>
_<u>d</u>_ 1 = _<u>θ</u>_ <u>(</u> _<u>p</u>_ 1)
<u>= 1.0000</u>
_<u>d</u>_ 2 = _<u>θ</u>_ <u>(</u> _<u>p</u>_ 2)
Goal: _C_ = _p_ 3 × _W_ 2
= 0.0000
_C_ - = 0.0000
Normal
condition
Partial
dislodgment
Partial
dislodgment
Two-tube
dislodgment
_V_ 1 =0.00 <sup>_<u>μ</u>_</sup> <sup><u>1,1 = 0.00</u></sup> _<u>t</u>_ <u>1,1 = 0.00</u> _<u>p</u>_ 1 = max( _<u>t</u>_ 1,1× _<u>β</u>_ <u>,</u> _<u>t</u>_ 2,1× _<u>β</u>_ <u>)</u>
_<u>μ</u>_ <u>2,1 = 0.00</u> _<u>t</u>_ <u>2,1 = 0.00</u> <u>= 0.00</u>
_V_ 2 = 0.00 <sup>_<u>μ</u>_</sup> <sup><u>1,2 = 1.00</u></sup> _<u>t</u>_ <u>1,2 = 1.00</u> _<u>p</u>_ 2 = max( _<u>t</u>_ 1,2× _<u>β</u>_ <u>,</u> _<u>t</u>_ 2,2× _<u>β</u>_ <u>)</u>
_<u>μ</u>_ <u>2,2 = 1.00</u> _<u>t</u>_ <u>2,2 = 1.00</u> <u>= 1.00</u>
_V_ 1 =4.06 <sup>_<u>μ</u>_</sup> <sup><u>1,1 = 1.00</u></sup> _<u>t</u>_ <u>1,1 = 1.00</u> _<u>p</u>_ 1 = max( _<u>t</u>_ 1,1× _<u>β</u>_ <u>,</u> _<u>t</u>_ 2,1× _<u>β</u>_ <u>)</u>
_<u>μ</u>_ <u>2,1 = 0.00</u> _<u>t</u>_ <u>2,1 = 0.00</u> <u>= 1.00</u>
_V_ 2 = 0.00 <sup>_<u>μ</u>_</sup> <sup><u>1,2 = 0.00</u></sup> _<u>t</u>_ <u>1,2 = 0.00</u> _<u>p</u>_ 2 = max( _<u>t</u>_ 1,2× _<u>β</u>_ <u>,</u> _<u>t</u>_ 2,2× _<u>β</u>_ <u>)</u>
_<u>μ</u>_ <u>2,2 =1.00</u> _<u>t</u>_ <u>2,2 = 1.00</u> <u>= 1.00</u>
_V_ 1 =0.00 <sup>_<u>μ</u>_</sup> <sup><u>1,1 = 0.00</u></sup> _<u>t</u>_ <u>1,1 = 0.00</u> _<u>p</u>_ 1 = max( _<u>t</u>_ 1,1× _<u>β</u>_ <u>,</u> _<u>t</u>_ 2,1× _<u>β</u>_ <u>)</u>
_<u>μ</u>_ <u>2,1 = 1.00</u> _<u>t</u>_ <u>2,1 = 1.00</u> <u>= 1.00</u>
_V_ 2 = 4.02 <sup>_<u>μ</u>_</sup> <sup><u>1,2 = 1.00</u></sup> _<u>t</u>_ <u>1,2 = 1.00</u> _<u>p</u>_ 2 = max( _<u>t</u>_ 1,2× _<u>β</u>_ <u>,</u> _<u>t</u>_ 2,2× _<u>β</u>_ <u>)</u>
_<u>μ</u>_ <u>2,2 = 0.00</u> _<u>t</u>_ <u>2,2 = 0.00</u> <u>= 1.00</u>
_V_ 1 =3.95 <sup>_<u>μ</u>_</sup> <sup><u>1,1 = 1.00</u></sup> _<u>t</u>_ <u>1,1 = 1.00</u> _<u>p</u>_ 1 = max( _<u>t</u>_ 1,1× _<u>β</u>_ <u>,</u> _<u>t</u>_ 2,1× _<u>β</u>_ <u>)</u>
_<u>μ</u>_ <u>2,1 = 1.00</u> _<u>t</u>_ <u>2,1 = 1.00</u> <u>= 1.00</u>
_V_ 2 = 4.03 <sup>_<u>μ</u>_</sup> <sup><u>1,2 = 0.00</u></sup> _<u>t</u>_ <u>1,2 = 0.00</u> _<u>p</u>_ 2 = max( _<u>t</u>_ 1,2× _<u>β</u>_ <u>,</u> _<u>t</u>_ 2,2× _<u>β</u>_ <u>)</u>
_<u>μ</u>_ <u>2,2 = 0.00</u> _<u>t</u>_ <u>2,2 = 0.00</u> <u>= 0.00</u>
_<u>μ</u>_ <u>2,2 = 0.00</u> _<u>t</u>_ <u>2,2 = 0.00</u> <u>= 0.00</u> _<u>=</u>_ <u>0.3679</u>
_<u>μ</u>_ <u>2,1 = 0.00</u> _<u>t</u>_ <u>2,1 = 0.00</u>
_p_ 3 = max( _d_ 1, _d_ 2)
<u>= 0.3679</u>
= 1.0000
_<u>μ</u>_ <u>2,2 = 1.00</u> _<u>t</u>_ <u>2,2 = 1.00</u> <u>= 1.00</u> _<u>=</u>_ <u>1.0000</u>
= 1.0000
_j_ = _i_ *=2
Goal: _C_ = _p_ 3 × _W_ 1
= 1.0000
_C_ - = 1.0000
_<u>μ</u>_ <u>2,1 = 0.00</u> _<u>t</u>_ <u>2,1 = 0.00</u>
_p_ 3 = max( _d_ 1, _d_ 2)
<u>= 1.0000</u>
= 1.0000
_<u>μ</u>_ <u>2,2 =1.00</u> _<u>t</u>_ <u>2,2 = 1.00</u> <u>= 1.00</u> _<u>=</u>_ <u>1.0000</u>
= 1.0000
_j_ = _i_ *=1
Goal: _C_ = _p_ 3 × _W_ 1
= 1.0000
_C_ - = 1.0000
_<u>μ</u>_ <u>2,1 = 1.00</u> _<u>t</u>_ <u>2,1 = 1.00</u>
_p_ 3 = max( _d_ 1, _d_ 2)
<u>= 1.0000</u>
= 1.0000
_<u>μ</u>_ <u>2,2 = 0.00</u> _<u>t</u>_ <u>2,2 = 0.00</u> <u>= 1.00</u> _<u>=</u>_ <u>1.0000</u>
= 1.0000
_j_ = _i_ *=1
Goal: _C_ = _p_ 3 × _W_ 1
= 1.0000
_C_ - = 1.0000
_<u>μ</u>_ <u>2,1 = 1.00</u> _<u>t</u>_ <u>2,1 = 1.00</u>
<u>= 0.00</u>
<u>= max(</u>
<u>= 1.00</u>
<u>= max(</u>
<u>= 1.00</u>
<u>= max(</u>
<u>= 1.00</u>
<u>= max(</u>
<u>= 1.00</u>
<u>= max(</u>
<u>= 1.00</u>
<u>= max(</u>
<u>= 1.00</u>
<u>= max(</u>
<u>= 0.00</u>
_p_ 3 = max( _d_ 1, _d_ 2)
<u>= 1.0000</u>
= 1.0000
= 1.0000
_j_ = _i_ *=1
_Sensors and Materials_, Vol. 31, No. 1 (2019) 127
Fig. 8. (Color online) Experimental results. (a) Normal condition and (b) partial NG tube dislodgment.
Fig. 9. (Color online) Fog-computing-based framework for multibed monitoring applications.
control, and communication activities for multibed monitoring application. On the basis of fog
computing (edge computing), this framework could primarily process the warning information
at the network edge or near the source of the sensing data, <sup>(9,22)</sup> as depicted in Fig. 9. Moreover,
while any sensing unit detects abnormal data, the WiFi wireless transmitter can send warning
messages to the central data center (cloud layer) via fog-to-cloud communication for further
analysis, persistent data storage, and final decision-making. This technique only sends the
selected warning messages to the cloud layer and can further reduce the communication
bandwidth. The warning information that is also sent to the nursing staff via the cloud-toremote device communication or fog-to-remote device communication can be received on
128 _Sensors and Materials_, Vol. 31, No. 1 (2019)
the iPad or a smart phone. This digital warning tool intends to enhance smart care in the
rehabilitation room and also is expected to reduce the unnecessary medical disputes and
litigations for unplanned extubation events.
4. Conclusions
A digital warning tool integrating two light-controlled sensors and FPN was established
to detect NG tube dislodgment. The two photocell sensors used in this study were small,
inexpensive, and easy to implement in a wearable device. The FPN-based intelligent algorithm
could be easily implemented using a high-level C/C++ programming language in an embedded
system. The prototype model could be further reduced and integrated into a compact
portable microchip without limiting the patient’s range of motions in practical situations. The
experimental results indicated a hit rate of 100% under possible situations of complications.
Its portable device provided a promising result for personalized physiological monitoring
applications. This new digital warning tool and the computing model can be implemented to
advance the healthcare quality for multibed monitoring application in rehabilitation rooms.
For healthcare or medical electrical equipment designs, biocompatibility, electrical safety, and
effectiveness were also considered for validation before commercialization, which covers the
design methodology (hardware and software), verification, and risk assessment, according to
the IEC 60601 series standard. The proposed assistant tool can be further integrated with highsensitivity sensors and a compact microchip without limiting the patient’s range of motions in
clinical application.
Acknowledgments
This work was supported by the Ministry of Science and Technology, Taiwan, under contract
number MOST 106-2221-E-167-034 (duration: August 1, 2017–July 31, 2018).
References
1 A. Warusevitane, D. Karunatilake, J. Sim, F. Lally, and C. Roffe: Stroke 46 (2015) 454.
2 A. Brzenski, B. Potenza, J. Lee, and M. Greenberg: Br. J. Med. Med. Res. 5 (2015) 1177.
3 J. Schreiber, T. Hachenberg, S. Follner, and S. Riedel: Global J. Respir. Care 1 (2014) 13.
4 C. H. Tang and Y. L. Wu: J. Emergency Crit. Care Med. 23 (2012) 79.
5 M. Ni, O. Priest, L. D. Phillips, and G. B. Hanna: Eur. Med. J. 3 (2014) 49.
6 S. Teramoto, T. Ishil, H. Yamamoto, Y. Yamaguchi, and Y. Ouchi: Eur. Respir. J. 27 (2006) 436.
7 A. Z. Qureshi, R. M. Jenkins, and T. H. Tbornbill: Neurosciences 21 (2016) 69.
8 M. Schallom: Am. Nurse Today 11 (2016) 1.
9 A. Brogi and S. Forti: Technical Reports of the Department of Computer Science, Università di Pisa (March
2016).
10 K. Skala, D. Davidovic, E. Afgan, I. Sovic, Z. and Z. Sojat: Open J. Cloud Comput. 2 (2015) 16.
11 S. J. Chen, T. S. Zhan, C. H. Huang, J. L. Chen, and C. H. Lin: IEEE Trans. Smart Grid 6 (2015) 411.
12 K. Q. Zhou and A. M. Zain: Artif. Intell. Rev. 45 (2016) 405.
13 M. Kouzehgar, M. A. Badamchizadeh, and S. Khanmohammadi: Int. J. Adv. Comput. Sci. Appl. 2 (2011) 106.
14 C. G. Looney and A. R. Alfize: IEEE Trans. Syst. Man. Cybern. SMC- 17 (1987) 1077.
15 F. Bonomi, R. Milito, J. Zhu, and S. Addepalli: Proc. First Edition of MCC Workshop on Mobile Cloud
Computing (2012) 13.
_Sensors and Materials_, Vol. 31, No. 1 (2019) 129
16 I. Stojmenovic and W. Sheng: 2014 Federated Conf. Computer Science and Information Systems (2014).
17 Institute of Electrical and Electronics Engineers: IEEE Std. 802.11-2007 (2007).
18 D. E. Knuth: The Art of Computer Programming (Addison-Wesley, Boston, 1998) 2nd ed.
19 N. Wirth: Sorting and Searching (Prentice-Hall, Upper Saddle River, 1986) p. 87.
[20 N. A. Metheny and K. L. Meert: https://psnet.ahrq.gov/webmm/case/184/wheres-the-feeding-tube.](https://psnet.ahrq.gov/webmm/case/184/wheres-the-feeding-tube)
21 N. A. Metheny, R. Schnelker, J. McGinnis, G. Zimmeman, C. Duke, B. Merritt, M. Banotai, and D. A. Oliver: J.
Neurosci. Nurs. 37 (2005) 320.
22 J. X. Wu, P. T. Huang, C. H. Lin, and C. M. Li: IET Healthcare Technol. Lett. 5 (2018) 38.
About the Authors
Chien-Ming Li was born in 1959. He received his B.S. degree from National
Taiwan University, Taipei City, Taiwan, in 1982, M.D. degree from National
Cheng Kung University, Tainan City, Taiwan, in 1990, and Ph.D. degree in
Biomedical Engineering from National Cheng Kung University, Tainan City,
Taiwan, in 2014. Currently, he is an infectious disease specialist of Chi Mei
Medical Center, and an associate professor of the Medical College of National
Cheng Kung University, Tainan City, Taiwan. His research interests include
medical applications of pattern recognition and MATLAB, computer-assisted
diagnosis, and treatment of infectious diseases.
Yueh-Ren Ho was born in 1960. She received her B.S. degree from National
Taiwan University, Taipei City, Taiwan, in 1982, M.S. degree from National
Cheng Kung University, Tainan City, Taiwan, in 1989, and Ph.D. degree from
the Insititute of Basic Science of Medical College of National Cheng Kung
University, Tainan City, Taiwan, in 2012. Currently, she is an instructor in
the Department of Medicine, Biochemistry and Molecular Biology of the
Medical College of National Cheng Kung University, Tainan City, Taiwan.
Her research interests include the mechanism of biofilm formation of group
B streptococcus (GBS), the pathogenesis of GBS infection, and antibiotic
resistance of microorganisms.
Wei-Ling Chen was born in 1970. She received her B.S. degree in
mechanical engineering from National Cheng Kung University, Tainan,
Taiwan, in 1994, M.S. degree in biomedical engineering from National Cheng
Kung University, Tainan, Taiwan, in 1996, and Ph.D. degree in biomedical
engineering from National Cheng Kung University, Tainan, Taiwan, in 2015.
She has been working at the Department of Engineering and Maintenance,
Kaohsiung Veterans General Hospital, Kaohsiung City, Taiwan, since 2013,
and also at the KSVGH Originals & Enterprises, Kaohsiung Veterans General
Hospital, Kaohsiung City, Taiwan, since 2018. Her research interests include
biomedical signal processing, hemodynamic analysis, healthcare, numerical
analysis, medical device design, and numerical analysis.
130 _Sensors and Materials_, Vol. 31, No. 1 (2019)
Chia-Hung Lin was born in 1974. He received his B.S. degree in electrical
engineering from Tatung Institute of Technology, Taipei City, Taiwan, in
1998, M.S. degree in electrical engineering from National Sun Yat-Sen
University, Kaohsiung City, Taiwan, in 2000, and Ph.D. degree in Electrical
Engineering from National Sun Yat-Sen University in 2004. He is a professor
of the Department of Electrical Engineering, Kao-Yuan University, Kaohsiung
City, Taiwan from 2004 to 2017. He has been a professor of the Department
of Electrical Engineering, National Chin-Yi University of Technology,
Taichung City, Taiwan, since 2018. His research interests include neural
network computing and its applications, biomedical signal processing, digital
healthcare, hemodynamic analysis, and pattern recognition.
Ming-Yu Chen has been pursuing his B.S. degree in the Department of
Electrical Engineering, Kao-Yuan University, Kaohsiung City, Taiwan, since
2014. His research interests include digital signal processing, embedded
system applications, and digital healthcare.
Yong-Zhi Chen has been pursuing his B.S. degree in the Department of
Electrical Engineering, Kao-Yuan University, Kaohsiung City, Taiwan, since
2014. His research interests include digital signal processing, embedded
system applications, and digital healthcare.