0% found this document useful (0 votes)
312 views13 pages

Fish Tank Automation PDF

This article proposes the FishTalk system, an IoT-based aquarium monitoring and control system. FishTalk utilizes sensors to automatically control actuators like feeders, fans, heaters and lights based on water conditions, allowing for intelligent control of the aquarium environment. It provides remote video monitoring capabilities and displays sensor/actuator data over time. FishTalk offers more advanced control features compared to previous smart aquarium solutions by integrating more sensors and actuators and providing both manual and automatic actuator control based on sensor readings.

Uploaded by

dheepan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
312 views13 pages

Fish Tank Automation PDF

This article proposes the FishTalk system, an IoT-based aquarium monitoring and control system. FishTalk utilizes sensors to automatically control actuators like feeders, fans, heaters and lights based on water conditions, allowing for intelligent control of the aquarium environment. It provides remote video monitoring capabilities and displays sensor/actuator data over time. FishTalk offers more advanced control features compared to previous smart aquarium solutions by integrating more sensors and actuators and providing both manual and automatic actuator control based on sensor readings.

Uploaded by

dheepan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

This article has been accepted for publication in a future issue of this journal, but has not been

fully edited. Content may change prior to final publication. Citation information: DOI
10.1109/ACCESS.2019.2905017, IEEE Access

Date of publication xxxx 00, 0000, date of current version xxxx 00, 0000.
Digital Object Identifier 10.1109/ACCESS.2017.Doi Number

FishTalk: An IoT-based Mini Aquarium


System
Yi-Bing Lin 1, Fellow, IEEE, and Hung-Chun Tseng1
1
Department of Computer Science National Chiao Tung University, Hsinchu 30010, Taiwan, ROC
Corresponding author: Yi-Bing Lin (e-mail: [email protected]).
This work was supported in part by the Ministry of Science and Technology (MOST) under Grant 106-2221-E-009 -006 and Grant 106-2221- E-009 -049 -MY2,
Ministry of Economic Affairs (MOEA) 106-EC-17-A-24-0619 and the Ministry of Education through the SPROUT Project- Center for Open Intelligent Connectivity
of National Chiao Tung University and Ministry of Education, Taiwan, R.O.C..

ABSTRACT Many people feed the pet fish in the aquarium tanks that need to be properly set up and
maintained, or the fish will be destined to unpleasant and short life. Therefore it is critical to monitor water
conditions closely and improve the water quality for the mini aquarium tanks. Based on an IoT solution called
IoTtalk, this paper proposes the FishTalk system that utilizes the aquarium sensors to drive the actuators in
real time. We describe the relationship between aquarium sensors and the actuators, and give concrete
examples about threshold setting. Our solution allows the designer to quickly deploy intelligent control for
various water conditions. As an example we implement an intelligent fish feeding mechanism such that the
fish are neither over nor under fed, and at the same time, the fish owner can enjoy watching fish feeding
remotely. We have also developed analytic model, simulation and measurement experiments to investigate
the effects of IoT message delays and loss on water condition control.

INDEX TERMS Aquarium, Internet of Things (IoT), message lost, NB-IoT, performance evaluation

I. INTRODUCTION hours, no one may be able to detect the abnormal situations


In the recent years, mini aquarium tanks in various shapes of the tank. Therefore, several solutions based on Internet of
and sizes are replacing classic goldfish bowls for small Things (IoT) [3],[4],[5],[6],[7],[22],[23] were proposed to
apartments or college dorm rooms. For example, college automate the detection of abnormal aquarium situations.
students in a dorm, where no-pet rules do not apply to fish, However, few of them have provided intelligent mechanisms
have space for a mini aquarium. At National Chiao Tung to automatically activate the actuators to fix the problems. In
University (NCTU), we encourage students to watch fish for NCTU, we have developed an IoT solution called IoTtalk for
relaxation and to care for them in the dorms where larger pets smart dorm, smart garden and other smart campus
are not allowed. However, the aquarium tanks need to be applications [8][24]. Based on IoTtalk, this paper proposes
properly set up and maintained, or the fish will be destined the FishTalk system that allows the aquarium sensors to
to unpleasant and short life. Specifically, when the water drive the actuators in real time. Table 1 compares FishTalk
volume in the tank is small, key water parameters change with the previous solutions. In item 1 of the table, FishTalk
very quickly, leaving no room for error. Therefore it is uses more sensors than the previous solutions except for [23].
critical to monitor water conditions closely and In item 2, FishTalk accommodates more actuators than the
perform water changes faithfully for the mini aquarium tanks. previous solutions. Item 3 indicates that solutions
Many commercial aquarium tanks under one gallon claim [3][7][22][23] provided sensor monitoring but no actuator
that no maintenance is required. However, such products are control. Solutions [1][4] provided manual control of actuators
actually not healthy for fish, and therefore are not but cannot automatically control the actuators by the sensors.
recommended. Several studies [1], [2] indicate that small Solution [6] provides trivial actuator control based on simple
aquarium tanks are not suitable for maintaining healthy fish. sensor thresholds. On the other hand, FishTalk provides both
The bigger the tank, the less impact a mistake will have on manual control and automatic actuator control by the sensors
fish, and aquarium tanks of at least five gallons are suggested. with non-trivial intelligence other than simple “threshold
In this paper, we consider mini tanks with sizes larger than control”. This intelligent feature allows much better control of
60×45×60 cm3. Even so, key water parameters of a mini the water environment. Also, through the time series charts of
aquarium tank should be closely watched, and proper actions sensors/actuators in FishTalk’s display (to be elaborated in
should be quickly taken when some dangerous situations are Section V), the fish owner can easily learn how
detected. Since student dorms are often empty during class

2169-3536 (c) 2018 IEEE. Translations and content mining are permitted for academic research only. Personal use is also permitted, but republication/redistribution requires IEEE permission. See
http://www.ieee.org/publications_standards/publications/rights/index.html for more information.
This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI
10.1109/ACCESS.2019.2905017, IEEE Access

Table 1. The IoT solutions for Smart Aquarium

Item Dolan [1] Salim [3] Salim [4] Chen [6] Encinas [7] Tseng [22] Raju [23] FishTalk

1. Sensors pH, CO2, pH, DO, pH, DO, pH, DO, pH, DO, pH, DO, DO, Salt, NH3, pH, EC, DO, TDS,
O2, NH3 Temp. Temp. Water level, Temp. Temp., Nitrite, Temp., Water level, Temp.
Temp. Water Level pH, Alkalinity
2. Actuators Heater No Air Pump Heater, Light No No Light Feeder, Fan,
Feeder, Heater, Light, Air
Air Pump, Pump, RO Filter
3. Actuators No No No Yes No No No (Light is Yes
Controlled (Manual) (Manual) (Simple always on at
by Sensors threshold) night)
4. Smart No No No No (manual) No No No Yes
Feeder
5. Video No No No No No No No Yes
Monitoring
6. Control No N/A Raspberry MSP430 Arduino Uno Arduino Uno Raspberry Pi 3 Arduino UNO,
Board Pi 3 ESP8266 ESP-
12F, ROHM IoT
kit , MediaTek
LinkIt Smart 7688
Duo

the water factors interact with each other. In this way, the reader who knows aquarium well, Sections II-IV can be
sensors do not just provide raw data (as the previous solutions skipped.
do) but also allow the fish owners to know more about their
aquarium environments. We have developed this type of II. DISSOLVED GAS FACTORS FOR WATER QUALITY
FishTalk applications to be used by National Taiwan Science Dissolved gases such as carbon dioxide, oxygen and
Education Center to teach students in junior high schools for ammonia greatly influence the water quality in an aquarium
aquarium science experiments. tank. These gases are described in this section.
Overfeeding is the number one mistake made by fish
owners, as uneaten food will pollute the water. In item 4, A. CARBON DIOXIDE
none of previous solutions provide fish feeding mechanism Dissolved carbon dioxide causes suffocation and lowers the
except for [6] that uses a mechanical timer to automatically pH of water, which leads to stressful hypercapnia conditions
trigger the feeding mechanism. Such mechanism is not for fish and will eventually result in death. When the water
reliable and may drop too much food to kill the fish. With tank has high levels of free carbon dioxide, fish have to
FishTalk, one can easily implement smart feeding that allows adjust their blood bicarbonate levels to avoid acidosis, which
fish owner to remotely enjoy manual feeding while the can happen when the transfer of carbon dioxide from the
fish are neither underfed nor overfed (to be described in fish’s blood to the surrounding water is greatly reduced.
Section V). When the carbon dioxide level in water is high, fish exposed
In item 5, FishTalk provides video monitoring that are not to hypercapnia can recover by significantly increasing their
blood plasma and taking up bicarbonate in exchange for
found in other smart aquarium solutions. The cost of off-the-
chloride. However, when high carbon dioxide levels are
shelf camera can be shared by other smart applications in a
coupled with low oxygen levels, the result is a decrease in
room. In [24] we have designed a smart saloon in a student
oxygen affinity and sometimes carrying capacity of the
dormitory where one camera is used to remotely monitor and
blood, which is often fatal. Although the toxicity threshold
enjoy the views of various IoT applications (such as smart dart, for free carbon dioxide concentration can vary considerably,
curtain control, smart plant and FishTalk). depending on dissolved oxygen levels, a free carbon dioxide
To simplify and strengthen our discussion, we focus on concentration of 30 parts per million (ppm) or milligrams per
freshwater tank without plants. The paper is organized as liter (mg/L) is typically safe for most fish [9].
follows. Section II introduces the dissolved gases that affect
the water quality of the aquarium tank. Sections III and IV B. OXYGEN
describe the sensors and the actuators used in FishTalk, An aquarium needs oxygen to support the livestock.
respectively. Section V proposes FishTalk as an IoT-based Decreased oxygen concentration combined with elevated
aquarium system. Based on NB-IoT and Wi-Fi, Section VI carbon dioxide concentration in the water leads to
conducts performance evaluation on the IoT message delays suffocation [10]. The oxygen requirements differ depending
and their impact on the aquarium operations. Section VII on the type and the weight of fish. For some species without
concludes our work by listing three major contributions not additional organs, the result of low dissolved oxygen is
found in the previous studies. This paper is written for the immediate death. Some species have developed labyrinth
IoT experts who do not have aquarium knowledge. For the organs to allow air breathing in hypoxic conditions. However,
oxygen deprivation (hypoxia) still occurs when the oxygen
2

2169-3536 (c) 2018 IEEE. Translations and content mining are permitted for academic research only. Personal use is also permitted, but republication/redistribution requires IEEE permission. See
http://www.ieee.org/publications_standards/publications/rights/index.html for more information.
This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI
10.1109/ACCESS.2019.2905017, IEEE Access

tension is lower than the organism’s requirement. Depending shown in the figure. Figure 1 (b) illustrates the temperature
on the fish species, the oxygen levels should be higher than sensor used in FishTalk.
a certain concentration (usually 2-4 mg/L) to avoid oxygen
depletion.

C. AMMONIA
Free Ammonia is extremely toxic to fish [1]. High ammonia
concentration can cause a decrease in blood serum ATP and
lead to tissue necrosis. This further increases the energy
demands on the gill organism. Initially, the fish might appear
to gasp at the surface for air while their gills take on a red or
lilac color. Then the fish might lie at the bottom of the tank
with clamped fins as their body functions fail. The fish
become increasingly lethargic and start losing their appetites.
The brain, organs, and the central nervous system become
damaged. Finally, the fish begin to hemorrhage,
and eventually die.
Chemically treated tap water and the decomposition of
organic matter inside the tank (e.g., aquarium plants, fish
excrement, and uneaten fish food) contribute to ammonia
poisoning (free ammonia; to be elaborated in Section III-B)
that often occurs during the setup of a new tank. It can also
occur when too many fish are added at one time, or when
filters are not kept clean. Ammonia poisoning also occurs if
the water is not changed regularly or if bacterial colonies die FIGURE 1. The FishTalk sensors (DO: dissolved oxygen; EC: electrical
off due to a sudden change in water conditions or the use of conductivity; TDS: total dissolved solids).

medications.

III. THE AQUARIUM SENSORS


To control the dissolved gases and other factors that affect
the health of fish, we propose an IoT solution called FishTalk.
Several sensors have been deployed in FishTalk including
e.g., the dissolved oxygen (DO), the temperature, the pH, the
electrical conductivity (EC), the water level, and the total
dissolved solids (TDS) sensors illustrated in Figure 1. The
sensors send the measured data to FishTalk either
periodically or when some events occur.

A. THE TEMPERATURE SENSORS


FIGURE 2. Effects of temperature and salinity on dissolved oxygen.
Studies indicate that higher temperatures within the optimal
temperature range of the species typically leads to healthier
B. THE PH SENSOR
fish with stronger immune functions [11], [12]. For most
The dissolved carbon dioxide creates carbonic acid, which
fishes, the optimal temperature ranges from 25° to 27°C.
acidifies the water that can be measured by the pH sensor
Extreme changes in temperature are more harmful to fish
(Figure 1 (c)). Water pH is affected by water hardness (see
than constant high or low temperatures.
Section III-C), fish and plant waste, topping off the water and
The water temperature also interacts with factors such as
water evaporation, and sudden changes in the water results
elevated ammonia and decreased oxygen. For example, the
in changes in blood pH, which leads to stress and death. The
amount of oxygen that can be dissolved in the water depends
comfortable pH level ranges from 6.5 to 9. Specifically, the
on the water temperature and salinity levels. Decreasing
preferred pH range is 6.5 - 7.0 for angel fish, hatchet fish,
temperature and salinity in the water results in increased
and silver dollar fish. The preferred pH range is 6.0-6.5 for
oxygen saturation [13]. Figure 2 plots dissolved oxygen (in
clown loach, harlequin and tiger barb. The preferred pH
mg/L) against water temperatures in centigrade and salinity
range is 5.8 - 6.2 for neon tetra, 5.0 - 7.0 for plecostomus,
levels in parts per thousand (ppt), where salinity of 0
6.5-7.0 for zebra danio and 7.0-7.5 for goldfish.
corresponds to freshwater. This figure shows the 100%
Low pH (e.g., less than 5.5) ceases the proton movement
saturation values for dissolved oxygen. The average
from the fish body. On the other hand, high pH increases the
saturation in an aquarium tank is about 70% of the values
free ammonia level. Note that ammonia exists in aquaria in
3

2169-3536 (c) 2018 IEEE. Translations and content mining are permitted for academic research only. Personal use is also permitted, but republication/redistribution requires IEEE permission. See
http://www.ieee.org/publications_standards/publications/rights/index.html for more information.
This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI
10.1109/ACCESS.2019.2905017, IEEE Access

two forms: free ammonia (NH3) and ammonium, where free The FishTalk sensors measure the aquarium environment
ammonia is the toxic part. Figure 3 illustrates that for a fixed and indicate how and when to maintain the tank. If we fail to
amount of ammonia (e.g., 2.0 ppm), the portion of free maintain the aquarium tank, the fish will be stressed by
ammonia in the tank water is affected by temperature and pH.
deficient water conditions, will be more susceptible to
Specifically, free ammonia increases as temperature and pH
increase [14]. When the free ammonia level is higher than disease, and often will have a shorter lifespan. In FishTalk,
0.02 ppm, the fish owner should be cautious, and the water maintenance, with the exception of changing water, is
must be changed when the level is higher than 0.05 ppm. automatically performed by the aquarium actuators. In the
current version of FishTalk, water is changed manually or
semi-automatically with the assistance of the water pumps.
A water level sensor (Figure 1 (e)) is used to detect the water
level of the aquarium tank. When the water level is too low
(e.g., caused by evaporation of fan blowing described in
Section IV-B), FishTalk can remind the fish owner when to
change/add water through an alert mechanism. The
frequency varies depending on many factors. For a large,
sparsely stocked aquarium, 10 to 15 percent of the water
should be changed every two weeks. For a small, heavily
stocked tank, up to 20 percent of the water should be changed
each week. For a lazy fish owner, as long as he/she is
FIGURE 3. Effects of temperature and pH on free ammonia.
regularly performing partial water changes every couple of
weeks, the exact frequency is not so critical. The actuators
C. THE ELECTRICAL CONDUCTIVITY SENSOR AND automatically activated by FishTalk are described in the
CARBONATE HARDNESS remainder of this section.
Another important aspect of water chemistry is carbonate
hardness (KH) that represents the pH buffering capacity of
the water. Harder water will have a higher buffering capacity.
The ideal KH medium range is 4° – 6 °KH. However, the KH
ranges are much higher for specific species, such as
poeciliidae (8° – 10 °KH), African cichlid (± 20 °KH), and
salt water fishes (10 ° – 15 °KH). In [9], water with a KH of (b) Heater
4° (4KH) is suggested to monitor the CO2 level with more
(a) Food feeder
accuracy.
EC is roughly related to general hardness (GH) and TDS
[15], and a correct EC level is needed to keep the fish healthy.
For example, comfortable EC value ranges from 100 to 300
µS/cm for community freshwater tanks. For the Discus and
Paracheirodon species, the required EC values are below (d) Pump
100µS/cm, while cichlids from African lakes (i.e., Malawi
and Tanganyika) grow well at values above 500 µS/cm. (c) Fan
Pollutants affect the EC value by increasing it. Therefore,
a change in the EC value indicates a change in water
conditions. The appropriate EC value can be easily
maintained by changing the water to reduce the pollutants. If
the EC value is too high, an appropriate amount of osmotic (e) Light (f) RO filter
water (see Section IV-D) can be used to dilute the tank
water. On the other hand, if the EC value is too low for the FIGURE 4. The FishTalk actuators (RO: Reverse Osmosis).

species (i.e. African cichlids), then the water needs to be


A. FOOD FEEDER
hardened by using some commercial salt mixes or calcium Fish are opportunistic and will seek food at all times.
carbonate solutions. Figure 1 (d) illustrates the EC sensor Overfeeding is the number one mistake made by fish owners,
used in FishTalk. as uneaten food will pollute the water. In fact, fish can easily
go several days without food, and there are few ill effects for
IV. THE AQUARIUM ACTUATORS slight underfeeding. When free ammonia is being built up
4

2169-3536 (c) 2018 IEEE. Translations and content mining are permitted for academic research only. Personal use is also permitted, but republication/redistribution requires IEEE permission. See
http://www.ieee.org/publications_standards/publications/rights/index.html for more information.
This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI
10.1109/ACCESS.2019.2905017, IEEE Access

(e.g., during the setup of a new tank), it is advised to feed Therefore, the deposits can be washed from the membrane to
fish no more than once per day to reduce the waste improve the RO efficiency [16].
productions. In FishTalk, a food feeder (Figure 4 (a)) is Although the RO filter is efficient at removing unwanted
smartly and automatically controlled. The details will be ions from water, the RO membranes may become blocked
given in the next section. over time. Such a problem cannot be confirmed by visual
inspection, but can be detected by the TDS sensor (Figure 1
B. AQUARIUM HEATER AND FAN (f)) if its value is high. The TDS sensor detects anions and
A heater (Figure 4 (b)) is used to increase the water cations (such as magnesium, calcium, silicate, sodium,
temperature in an aquarium tank. Unfortunately, mini tanks phosphate and nitrate) in the water of the aquarium tank.
are difficult to heat properly, and heaters specifically When the TDS value is higher than e.g., 10 ppm, it is an early
designed for mini aquariums should be selected. To disperse warning for the deterioration of tank water. Note that the
heated water more quietly and evenly throughout the tank, TDS sensor does not work for reef aquaria with salt water.
the heater should be placed near the filter intake so that the The waste water produced from the RO outlet has elevated
warm water from the heater will be sucked through the levels of nitrates, phosphates, heavy metals, and pesticides
filter’s intake along with a cooler stream from the bottom of that should not exist in the aquarium tank. This waste water
the aquarium. is reused for garden plants in the student dorms at NCTU.
To reduce the water temperature, a fan (Figure 4 (c)) can
be used to blow across the surface of the tank water to V. CREATION OF FISHTALK PROJECTS
increase evaporation. Water releases much more energy FishTalk is an IoT-based aquarium system developed
when it transitions from water to vapor, which drops the according to an IoT device management platform called
temperature. Therefore, a fan blowing across the surface of IoTtalk [8][17][18]. Figure 5 illustrates a simplified block
the tank water reduces water temperature by increasing diagram for FishTalk, which consists of the FishTalk sensors
evaporation. (Figure 5 (1)), actuators (Figure 5 (2)) and the FishTalk
server (Figure 5 (3)).
C. WATER PUMP AND LIGHT
The water pump (Figure 4 (d)) generates currents and
aeration, and move water through aquarium tank peripherals
such as the filters. Water movement creates aeration by
constantly mixing the surface with the rest of the water. The
currents prevent detritus from accumulating. It is suggested
to select the pump capable of moving five times as many
gallons per hour as the tank holds.
If live plants, photosynthetic invertebrates, or macroalgae
are not kept in an aquarium tank, the only lighting needed on
the tank is for viewing fish. Light does not penetrate water
easily, and every inch of depth greatly decreases the effective
FIGURE 5. A simplified block diagram for FishTalk.
illumination. The use of good reflectors can increase
effective illumination by directing more of the light In FishTalk, the IoT devices can connect to the FishTalk
produced into the tank. Very high output (VHO) or power server through various communications technologies such as
compact (PC) lamps can be used for a 12-inch-deep tank NB-IoT, LoRa, Sigfox, Wi-Fi, LTE and Ethernet. For the
(Figure 4 (e)). For a depth of 18 or 24 inches, metal halides example in Figure 5, the sensors are connected to a NB-IoT-
are more appropriate. based control board (Figure 5 (4)) [19]. This control board
interacts with the FishTalk server through NB-IoT wireless
D. REVERSE OSMOSIS FILTER
communications (Figure 5 (5)). Similarly, the actuators are
The Reverse Osmosis (RO; see Figure 4 (f)) lowers pH in the
instructed by the FishTalk server through another NB-IoT
aquarium tank and purifies the tap water. An efficient RO
unit can remove 90% or more of tap water contaminants, the based control board (Figure 5 (6)). Besides the sensors, any
semi-permeable membrane acts as an ultra-fine filter to standard smartphone (Figure 5 (7)) can connect to the
allow only water molecules to pass through, and strain most FishTalk server through its browser based on the LTE or the
unwanted constituents. This part is expensive and easily 5G technologies for video monitoring (Figure 5 (8)). Note
damaged, and some high-output units may have multiple that the NB-IoT based control boards are typically used in
membranes. The pre-filters are placed before the membrane outdoor environments. In an indoor environment, Wi-Fi
to remove sediment, chlorine and other components of mains based control boards are used [20].
water which would rapidly block and/or destroy the The FishTalk web page of the smartphone includes four
membrane. A flow restrictor is a valve that allows pressure areas. The control sliding bar area (Figure 6 (1)) provides
to build up in the system for reverse osmosis to take place. A soft switches to control the heater, the fans and other
flush valve may be incorporated to bypass the flow restrictor. actuators connected to FishTalk. The display bar area (Figure

2169-3536 (c) 2018 IEEE. Translations and content mining are permitted for academic research only. Personal use is also permitted, but republication/redistribution requires IEEE permission. See
http://www.ieee.org/publications_standards/publications/rights/index.html for more information.
This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI
10.1109/ACCESS.2019.2905017, IEEE Access

6 (2)) shows the real-time values of the sensors connected to The actuators icon (Figure 8 (4)) includes food feeder, pump,
FishTalk. The video control bar area (Figure 6 (3)) provides heater, fan, light, UV and RO. The controls icon (Figure 8
buttons to zoom in, zoom out and rotate a camera for viewing (5)) includes the “on/off” switches for the actuators. It is very
the aquarium tank (Figure 6 (4)). easy to connect a soft control switch to the corresponding
actuator: simply drag a line between the switch icon to the
actuator icon. For example, the link “Join 5” allows the
“FoodFeeder-I” switch to control the food feeder. When the
link is created, the FishTalk engine automatically generates
a program to handle the interaction between the control and
the actuator. Similarly, an actuator can be controlled by
multiple sensors through the Join links. In our configuration,
the heater is controlled by the temperature sensor through
Join 1. The fans are controlled by both the temperature and
the pH sensors through Join 2. The pump is controlled by the
temperature and the DO sensors through Join 3. The RO
filter is controlled by the EC and the TDS sensor through
FIGURE 6. The smartphone browser for FishTalk. Join 4.
When an icon in the display bar area is clicked, the
smartphone shows the time series chart of the sensor as
illustrated in Figure 7. In this figure, we turn on the fans at
point (1). Then we turn on the heater at point (2) and then
turn it off shortly. The time series charts indicate that from
point (1) to point (2), the temperature decreases, and the EC
value increases. At point (2), the temperature increases
sharply and then decreases again. The example in Figure 7
shows that the FishTalk web-based display provides chart
information that allows the fish owner to understand the
aquarium water conditions easily.

FIGURE 8. Configuration of the Aquarium project.

A Join connection is decomposed into two segments and a


circle. The circle represents a function implemented in
Python. The first segment connects one or more
sensors/actuators to a circle, which provides the paths to
deliver the data to the circle (the inputs of the Python
function). The second segment connects the circle to one or
more actuators, which sends the instruction made at the circle
FIGURE 7. Time series of the sensor values.
to the connected actuators (the output of the function). To
FishTalk provides a friendly web-based graphical user write a Python function, one simply clicks the circle, and the
interface (GUI) to allow quick development of IoT FishTalk GUI pops up a window (Figure 9). For Join 1 in
applications. Figure 8 shows the web window for the Figure 8, a heater control function is implemented as follows
FishTalk project “Aquarium” (Figure 8 (1)). In the “Model” (Lines 1-5 in Figure 9). The input argument *args of the
pulldown menu bar (Figure 8 (2)), the FishTalk sensors, Python function run() stores the temperature value from
controls, and the actuators can be selected, and the icons of Temp-I (i.e., args[0]). If the temperature is higher than 27°C,
the selected items are shown in the window. The sensors icon then Join 1 returns the output “0” (turn-off) to Heater-O. If
(Figure 8 (3)) includes temperature, pH, EC, DO and TDS. the temperature is lower than 23°C, Join 1 returns “1” (turn-
6

2169-3536 (c) 2018 IEEE. Translations and content mining are permitted for academic research only. Personal use is also permitted, but republication/redistribution requires IEEE permission. See
http://www.ieee.org/publications_standards/publications/rights/index.html for more information.
This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI
10.1109/ACCESS.2019.2905017, IEEE Access

on).When the temperature is in the range [23°C, 27°C], no FeedButton device, when one presses the button, FeedTime-
action is taken (i.e., the server does not send any output to I sends out the time when the button is pressed. Furthermore,
Heater-O). if the water quality is poor (TDS is higher than 600 ppm) the
feeding mechanism is disabled. Without loss of generality,
the FishFeeder project uses the TDS sensor (TDS-I; see
Figure 10 (6)) to monitor the water quality. Other sensors can
be included in the Sensors device for water quality
monitoring. TDS-I is also connected to a cyber device
Messaging (Figure 10 (7)) through Join 2. When the water
quality is poor, the fish owner will receive a warning
message from WQ-Alert-O.

FIGURE 9. The heater control function.

Based on the above description, the FishTalk GUI is a


powerful tool that allows the designer to quickly deploy a
FishTalk project. The graphical configuration allows one to
easily understand how the actuators are controlled, and the
project is convenient to maintain and debug. The graphical
FIGURE 10. The FishFeeder project.
configuration together with the FishTalk time series charts
allow one to trace complicate ripple through interactions. For The Python function for Join 1 in Figure 10 is illustrated in
example, one may observe that when the fans are turned on, Lines 1-12 in Figure 11. The function uses the system time
the RO filter is also turned on after a short period of time. In “clock” (Line 5). Through *args, the timer value of
Figure 8, the fan is turned on either through Join 2 or Join 8. CountDown-I is assigned to count_down (Line 2), the button
From the time series charts in Figure 7, one observes that the pressed time of FeedTime-I is assigned to feed_time (Line 3)
temperature decreases (due to fan blowing), and the EC and the TDS value of TDS-I is assigned to tds (Line 4). If tds
increases. From the graphical configuration in Figure 8, one is less than 600 ppm, then FoodFeeder-O is activated (for one
immediately finds that when the EC value reaches a meal) in two cases: either count_down is 0 (Line 8) or if the
threshold, FishTalk triggers the RO filter through Join 4. feed button is pressed at the current time (feed_time == clock;
We can create multiple FishTalk projects for an aquarium see Line 11) when count_down is less than 12 hours (Line
tank. Besides the Aquarium project, we may create another 10). If tds>600 or none of the conditions in Lines 8 and 10
project “FishFeeder” to control the food feeder (Figure 10 are met, then Join 1 does not produce any output. Otherwise,
(1)). In this project, the fish are automatically fed for, say, Join 1 will output the non-zero signal to instruct the Timer
every 24 hours. The fish owner and his/her guests are device to reset the countdown timer to 24 hours (through
allowed to trigger the food feeder through a smartphone if Reset-O), and triggers the food feeder to provide one meal to
the fish have not been fed for at least 12 hours. The the fish (though FoodFeeder-O).
FishFeeder project guarantees that the time period between
two meals is longer than 12 hours and is shorter than 24 hours.
We use a cyber FishTalk IoT device “Timer” to implement
the mechanism to guarantee that the fish will have a meal
within 24 hours. This device includes a control CountDown-
I (Figure 10 (2)) and an actuator Reset-O (Figure 10 (3)).
CountDown-I is a 24-hour countdown timer. The timer sends
the count-down value, say, every minute to the Join 1 circle.
If the timer counts down to 0, the Join 1 function sends out
the value “1”. When Reset-O receives “1” from Join 1, it
resets the timer to count down from 24 hours again. The food
feeder (Figure 10 (5)) is controlled by CountDown-I and the
soft button FeedButton in a smartphone (Fig, 10 (4)). In the
FIGURE 11. The food feeder control function.

2169-3536 (c) 2018 IEEE. Translations and content mining are permitted for academic research only. Personal use is also permitted, but republication/redistribution requires IEEE permission. See
http://www.ieee.org/publications_standards/publications/rights/index.html for more information.
This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI
10.1109/ACCESS.2019.2905017, IEEE Access

𝑛 𝑛
Note that if both the Aquarium and the FoodFeeder where E[𝑡] = and V[𝑡] = .
λ λ2
projects are enabled, then the food feeder can be controlled
by both projects. However, it is highly recommended that
Join 5 in the Aquarium project is disabled when the
Fishfeeder Project is executed.
All fish sensor and actuator device models (Figure 8 (3)-
(5) and Figure 10 (2)-(6)) and the Join functions were
developed in FishTalk. The video monitoring/control and
dashboard (Figure 6) were developed in FishTalk and then
became a general monitor & control cyber IoT device
accommodated in IoTtalk for other IoTtalk applications. The
Messaging device model (Figure 10 (7)) is reused from
IoTtalk.

VI. PERFORMANCE EVALUATION


In an IoT system, the delays of messages delivered from the
sensors to the actuators significantly impact the execution of FIGURE 12. The delay histograms.
the IoT applications. If the delays are too long, the system
∗ ∗ ∗ ∗
may fail to carry out the desired tasks. Also, if the messages From (1) we approximate 𝑓𝑠 (𝑡𝑁,𝑠 ) as 𝑓𝐸 (𝑡𝑁,𝑠 , 𝑛𝑁,𝑠 , λ𝑁,𝑠 )

are lost, important information may be lost in FishTalk. This where the shape parameter is 𝑛𝑁,𝑠 = 2 an the scale parameter
∗ ∗
section investigates the effect of FishTalk message delays in is λ𝑁,𝑠 = 5.26 . Similarly, we approximate 𝑓𝑎 (𝑡𝑁,𝑎 ) as
∗ ∗ ∗ ∗ ∗
two aspects. First, in an aquarium, the conditions of the water 𝑓𝐸 (𝑡𝑁,𝑎 , 𝑛𝑁,𝑎 , λ𝑁,𝑎 ) where 𝑛𝑁,𝑎 = 7 and λ𝑁,𝑎 = 4.46 . The
may change rapidly. Therefore, when FishTalk detects poor approximations are validated by the Kolmogorov-Smirnov
water condition, it should activate the actuators fast enough test for goodness of fit (see the solid and the dashed curves).
or the fish will be in danger. Second, the frequency of As we mentioned before, the delays 𝑡𝑠 and 𝑡𝑎 affect the
sending the IoT messages should be appropriately selected control of the tank water environment. Consider the situation
so that important information will not be lost, while the where the temperature of the tank water increases because
energy is not significantly consumed by frequent message the air conditioner in the room is turned off in a hot summer
delivery. day or the heater was accidentally turned on (e.g., by the
absent fish owner). Suppose that total ammonia in the water
A. EFFECT OF MESSAGE DELAY is 2 ppm, the pH level is 7.6, and we would like to keep the
Let 𝑡𝑠 be the delay of sending a measured data from a temperature below 22° (see the curve for pH=7.6 in Figure
FishTalk sensor to the FishTalk server and 𝑡𝑎 be the delay of 3). When the temperature increases to 23°C, the water
sending an instruction from the FishTalk server to a FishTalk reaches the caution point. The temperature sensor reports
actuator. We assume both 𝑡𝑠 and 𝑡𝑎 to be random variables 23°C to the FishTalk server at time 𝜏𝑑,0 . Suppose that the
with the density functions 𝑓𝑠 (𝑡𝑠 ) and 𝑓𝑎 (𝑡𝑎 ), respectively. FishTalk server receives the report at time 𝜏𝑑,1 = 𝜏𝑑,0 + 𝑡𝑠 .
We have obtained the histograms for 𝑡𝑠 and 𝑡𝑎 through 1000 The FishTalk server takes the caution action by sending the
measurements for the NB-IoT transmission delays. From the “turn off” instruction to the heater (and/or the “turn on”
∗ ∗
measured samples 𝑡𝑁,𝑠 and 𝑡𝑁,𝑎 for NB-IoT transmission, we instruction to the fan). The instruction arrives at the heater at
∗ ∗
can approximate 𝑡𝑁,𝑠 and 𝑡𝑁,𝑎 by Erlang distributions with 𝜏𝑑,2 = 𝜏𝑑,1 + 𝑡𝑎 . After 𝜏𝑑,0 , if the heater is not turned off, the
the expected value E[𝑡𝑁,𝑠∗
] = 0.3792s and the variance V[𝑡𝑁,𝑠∗
] water temperature continues to increase and eventually
∗ ∗
= 0.5013 E[𝑡𝑁,𝑠 ] , and E[𝑡𝑁,𝑎 ] = 1.6461s and V[ 𝑡𝑁,𝑎 ] =
2 ∗ reaches the danger point at time 𝜏𝑑,3 , which significantly

0.1363E[𝑡𝑁,𝑎 ]2. In [20] we also measured 𝑡𝑊,𝑠 ∗ ∗
and 𝑡𝑊,𝑎 , the affects the health of fish. Let 𝑡𝑇 = 𝜏𝑑,3 − 𝜏𝑑,0 . Then 𝑡𝑇 is the
𝑡𝑠 and the 𝑡𝑎 delays for Wi-Fi, and found that 𝑡𝑊,𝑠 and ∗ period that the temperature increases from the caution point
∗ ∗ to the danger point. Let 𝑓𝑇 (𝑡𝑇 ) be the density function of 𝑡𝑇 .
𝑡𝑊,𝑎 have the same distribution. Therefore, we denote 𝑡𝑊 =
∗ ∗ ∗ ∗ We have obtained the histogram for 𝑡𝑇 through 1000
𝑡𝑊,𝑠 = 𝑡𝑊,𝑎 , where E[ 𝑡𝑊 ] = 31.68ms and V[ 𝑡𝑊 ] = measurements for temperature changes due to heating.
∗ 2
0.0022E[𝑡𝑊 ] . The Erlang density function with the shape Denote the measured values as 𝑡𝑇∗ . From the measured
parameter 𝑛 and the scale parameter λ is samples, we can approximate 𝑡𝑇∗ by the Gamma distribution
λ𝑛 𝑡 𝑛−1 𝑒 −λ𝑡 with the expected value E[𝑡𝑇∗ ] = 9228.319s and the variance
𝑓𝐸 (𝑡, 𝑛, λ) = (1)
(𝑛 − 1)! V[ 𝑡𝑇∗ ] = 0.0511 E[ 𝑡𝑇∗ ]2. Therefore, 𝑓𝑇 (𝑡𝑇∗ ) has the shape
and parameter 𝛼 = 19.5752 and the scale parameter β =
𝑛−1 0.0021.
𝑡
λ𝑗 𝑡 𝑗 𝑒 −λ𝑡
∫ 𝑓𝐸 (𝜏, 𝑛, λ)𝑑𝜏 = 1 − ∑
𝜏=0 𝑗=0
𝑗!

2169-3536 (c) 2018 IEEE. Translations and content mining are permitted for academic research only. Personal use is also permitted, but republication/redistribution requires IEEE permission. See
http://www.ieee.org/publications_standards/publications/rights/index.html for more information.
This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI
10.1109/ACCESS.2019.2905017, IEEE Access

For 1 ≤ 𝑖 ≤ 𝐼 , let 𝑡𝑚,𝑖 = 𝜏𝑚,𝑖 − 𝜏𝑚,𝑖−1 be i.i.d. random


variables with the density function 𝑓𝑚 (𝑡𝑚,𝑖 ) and the Laplace
transform 𝑓𝑚∗ (𝑠) . Let 𝑇𝑚,𝐼 = 𝑡𝑚,1 + 𝑡𝑚,2 + ⋯ + 𝑡𝑚,𝐼 . Then
𝜏𝑚,0 + 𝑇𝑚,𝐼 is the time when the FishTalk server hears from
the sensor. If the water conditions become fatal to the fish in
𝑇𝑚,𝐼 before FishTalk takes any action (e.g., 𝑇𝑚,𝐼 > 𝑡𝑇 ), then
the fish are in danger. On the other hand, we do not want to
alert the fish owner immediately when a message is lost for
two reasons. First, the lost message may not mean that the
fish is in danger and should not bother the fish owner. Second,
frequently alert messages will consume energy. Therefore, it
is important to set the frequency of periodic sensing and
when to alert the fish owner. In Appendix B, we derive the
FIGURE 13. The 𝒕𝑻 histograms.
probability Pr[𝑡𝑇 > 𝑇𝑚,𝐼 ] as
It is important that FishTalk guarantees that 𝜏𝑑,3 > 𝜏𝑑,2 so Pr[𝑡𝑇 >𝑇𝑚,𝐼 ]
that the tank water does not reach the danger point. In 𝛼−1
(−β) 𝑗 𝑑.(𝑗)
Appendix A we derive the probability Pr[𝜏𝑑,3 > 𝜏𝑑,2 ] as = ∑[ ] { 𝑗 [𝑓𝑚∗ (𝑠)]𝐼 }|
follows. 𝑗! d𝑠 𝑠=λ
𝑗=0
𝑛𝑠 +𝑛𝑎 −1
𝛼+𝑗−1 λ𝑗 β𝛼 We have implemented simulation to compare with the
Pr[𝑡𝑇 > 𝑡𝑑 ] = 1 − ∑ ( )[ ] analytic model (the Pr[𝑡𝑇 > 𝑇𝑚,𝐼 ] equation above) with
𝑗 (λ + β)𝛼+𝑗
𝑗=0 various values for input parameters of 𝑡𝑇 and 𝑇𝑚,𝐼 , and the
We have implemented simulation to compare with the errors are less than 0.1%. Therefore, both the simulation and
analytic model (the Pr[𝑡𝑇 > 𝑡𝑑 ] equation above) with the analytic models are correct. Then we compute Pr[𝑡𝑇∗ >
various values for input parameters of 𝑡𝑇 and 𝑡𝑑 , and the
𝑇𝑚,𝐼 ] with the measured data 𝑡𝑇∗ and different I and
error is less than 0.07%. Therefore, both the simulation and
the analytic models are correct. Then we use the measured 𝑡𝑚,𝑖 values. We consider fixed report intervals 𝑡𝑚,𝑖 =
data to compute Pr[𝑡𝑇∗ > 𝑡𝑑∗ ] for NB-IoT (i.e., 𝑡𝑑∗ = 𝑡𝑁,𝑠 ∗
+ 𝑡𝑚,𝑗 = 𝑡𝑚 . In other words, 𝑇𝑚,𝐼 = 𝐼 × 𝑡𝑚 . Figure 15 shows

𝑡𝑁,𝑎 ) and Wi-Fi (i.e., 𝑡𝑑∗ = 𝑡𝑊,𝑠
∗ ∗
+ 𝑡𝑊,𝑎 ). We obtained the the effects of 𝐼 and the report frequency E[𝑡𝑇∗ ]/ 𝑡𝑚 . The
results Pr[𝑡𝑇∗ > 𝑡𝑑∗ ] ≈ 1 for both B-IoT and Wi-Fi. That is, figure indicates that as the report frequency E[𝑡𝑇∗ ]/ 𝑡𝑚 is
in the existing design of FishTalk, the message delays are large (sending more messages), the danger situation can be
short enough, and FishTalk always activates the actuators detected even if many messages are lost (𝐼 is large). Therfore,
fast enough before the fish are in danger. Now we consider if we want to achieve Pr[𝑡𝑇∗ > 𝑇𝑚,𝐼 ] > 0.94 that allows 5
the cases when the communications system is not well continuous lost messages (i.e., 𝐼 = 5), then the report
designed such that 𝑡𝑎 , 𝑡𝑠 and their variances are very large, frequency should be set 𝑡𝑚 < E[𝑡𝑇∗ ]/10.
i.e., E[𝑡𝑑 ]>> E[𝑡𝑑∗ ] and V[𝑡𝑑 ]>> V[𝑡𝑑∗ ]. Without loss of
generality, we increase E[𝑡𝑑 ] and V[𝑡𝑑 ] to see how it affects
Pr[𝑡𝑇∗ > 𝑡𝑑 ]. Figure 14 indicates that as E[𝑡𝑑 ] and V[𝑡𝑑 ]
increase, Pr[𝑡𝑇∗ > 𝑡𝑑 ] decreases. When V[𝑡𝑑 ]<1000 V[𝑡𝑑∗ ] or
V[𝑡𝑑 ] <1000 V[𝑡𝑑∗ ], Pr[𝑡𝑇∗ > 𝑡𝑑 ] ≈ 1. When V[𝑡𝑑 ]>10000
V[𝑡𝑑∗ ] and V[𝑡𝑑 ] >10000 V[𝑡𝑑∗ ], Pr[𝑡𝑇∗ > 𝑡𝑑 ] drops. Figure 14
shows that FishTalk operates well for a communication
system with large delays.

FIGURE 15. Effects of 𝑰 and 𝐄[𝒕𝑻∗ ]/ 𝒕𝒎 on 𝐏𝐫[𝒕∗𝑻 > 𝑻𝒎,𝑰 ].

VII. CONCLUSIONS
Based on an IoT solution called IoTtalk, this paper proposed
the FishTalk system that allows the aquarium sensors to
drive the actuators in real time. We have made the following
FIGURE 14. Effects of E[𝒕𝒅 ] and V[𝒕𝒅 ] on 𝐏𝐫[𝒕∗𝑻 > 𝒕𝒅 ].

2169-3536 (c) 2018 IEEE. Translations and content mining are permitted for academic research only. Personal use is also permitted, but republication/redistribution requires IEEE permission. See
http://www.ieee.org/publications_standards/publications/rights/index.html for more information.
This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI
10.1109/ACCESS.2019.2905017, IEEE Access

contributions not found in the previous approaches [2] S. Sharpe, “Aquarium Nitrogen Cycle: How an Aquarium Cycles,” The
[3],[4],[5],[6],[7],[22] ,[23]: Spruce Pets. 2018. [Online]. Available:
 We clearly described the relationship between aquarium https://www.thesprucepets.com/aquarium-nitrogen-cycle-1378370
sensors and the actuators, and gave concrete examples [3] C. Salim, P. Cousin and S. Dupont, “IoT for Aquaculture 4.0 Smart and
about threshold setting that can be easily translated for easy-to-deploy real-time water monitoring with IoT,” 2018 Global
programming in an IoT system. Internet of Things Summit (GIoTS), 2018.
 We showed how to intelligently feed the fish through a [4] T. Salim, T. Haiyunnisa and H. Alam, “Design and Implementation of
combined automate and manual control mechanism such Water Quality Monitoring for Eel Fish Aquaculture An Examination of
that the fish are neither over nor under fed, and at the same Microbubble Aeration,” 2016 International Symposium on Electronics
time, the fish owner can enjoy watching fish feeding
and Smart Devices (ISESD) November 29-30, 2016.
remotely. Our solution allows the designer to quickly
[5] K. M. Stehfest, et. al., “Response of Atlantic salmon Salmo salar to
deploy intelligent control for various water conditions.
temperature and dissolved oxygen extremes established using animal-
 We have developed analytic model, simulation and
borne environmental sensors,” Nature, 2017.
measurement experiments to investigate the effects of IoT
[6] J.-H. Chen, W.-T. Sung and G.-Y. Lin, “Automated Monitoring System
message delays and loss on the water condition control.
Such study has not been conducted by existing smart for the Fish Farm,” 2015 IEEE International Conference on Systems, Man,
aquarium solutions. and Cybernetics, 2015.
Although FishTalk aims for mini aquarium systems, the [7] C. Encinas, et. al., “Design and implementation of a distributed IoT system
software can be directly reused in a large-scale fish farm after for the monitoring of water quality in aquaculture,” 2017 Wireless
appropriate replacement of the actuators and parameter Telecommunications Symposium (WTS), 2017.
setting. [8] Y.-B. Lin, et. al., “IoTtalk: A Management Platform for Reconfigurable
As a final remark, we briefly discuss the cost incurred to Sensor Devices,” IEEE Internet of Things Journal, 2017, 4, (5), pp. 1152–
develop a FishTalk aquarium. The costs are calculated as 1562.
follows. [9] George Farmer, “CO2: Striking the balance,” Practical Fishkeeping
(1) Sensors (Figure 5 (1)) and actuators (Figure 5 (2)): Magazine, 2016. [Online]. Available:
FishTalk accommodates off-the-shelf sensors and https://www.practicalfishkeeping.co.uk/features/articles/co2-striking-
actuators. Therefore, the customers can choose the the-balance
sensors/actuators with the prices that fit their budget [10] F.-F. Ruth, “Dissolved Oxygen for Fish Production,” Texas A&M
constraints. The sensor/actuator costs are the same as AgriLife, 2003. [Online]. Available: https://agrilifecdn.tamu.edu/fisheries
the previous solutions except that in FishTalk, some of /files/2013/ 09/Dissolved-Oxygen-for-Fish-Production1.pdf
the devices can be shared with other IoT applications [11] J. E. Bly and W. L. Clem, “Temperature and teleost immune functions,”
that reuse the tank water (e.g., the smart plant Fish & Shellfish Immunology, 2 (1992), pp. 159-171.
applications). By doing so, the equipment costs for [12] T. Masaharu, et. al., “Sawada Y(2014) Effect of Temperature on Survival,
FishTalk and the smart plant application are actually
Growth and Malformation of Cultured Larvae and Juveniles of the Seven-
reduced in the saloon of the NCTU student dormitory.
band Grouper Epinephelus Septemfasciatus,” Fisheries Science, 80(1):
(2) The control board (Figure 5 (4) and (6)): if we use 69-81.
ESP8266, the cost is about 4 USD. For other solutions in [13] Algone, “The Importance of Oxygen in the Aquarium,” General
Table 1, the costs are higher. Aquarium & Fish Information, 2018. [Online]. Available:
https://www.algone.com/oxygen-in-the-aquarium
(3) The FishTalk server (Figure 5 (3)): it will become open [14] Jetajockey, “Your Guide to Ammonia Toxicity,” Aquarium Advice. 2011.
source software for free. [Online]. Available: http://www.aquariumadvice.com/forums/f12/your-
guide-to-ammonia-toxicity-159994.html
(4) Monitoring and Control (Figure 5 (7)): we use a [15] T. Sarac, “Electrical Conductivity in Freshwater Aquariums,” Fluval.
smartphone with the web-based application for 2018. [Online]. Available: http://fluvalaquatics.com/ca/explore/did-you-
monitoring and control. We assume that everyone has a know/equipment/155-electrical-conductivity-monitoring-system-part-
smartphone and there is no need to purchase one two/#.XAL_hzgzZ0x
specifically for FishTalk. The web-based software is free. [16] “What You Need to Know About Reverse Osmosis,” Practical
If a camera is included (the fish owner may also use it for
Fishkeeping, 2016. [Online]. Available:
home security or other smart applications), we can
https://www.practicalfishkeeping.co.uk/features/ articles/what-you-need-
purchase any off-the-shelf camera within the allowable
to-know-about-reverse-osmosis
budget, and the cost is shared by all IoT applications in
[17] Y.-B. Lin, et. al., “EasyConnect: A Management System for IoT Devices
the room.
and Its Applications for Interactive Design and Art,” IEEE Internet of
REFERENCES Things J., 2015, 2, (6), pp 551–561.
[1] A. Dolan, “The Effects of Aquarium Size and Temperature on Color [18] Y.-W. Lin, et. al., “IoTtalk-RC: Sensors as Universal Remote Control for
Vibrancy, Size, and Physical Activity in Betta Splendens,” Technical Aftermarket Home Appliances,” IEEE Internet of Things Journal, 2017,
Report, Maryville College, 2015. 4, (4), pp. 1104–1112.

10

2169-3536 (c) 2018 IEEE. Translations and content mining are permitted for academic research only. Personal use is also permitted, but republication/redistribution requires IEEE permission. See
http://www.ieee.org/publications_standards/publications/rights/index.html for more information.
This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI
10.1109/ACCESS.2019.2905017, IEEE Access

∞ 𝑡𝑇
[19] Y.-B. Lin, et. al., “NB-IoTtalk: A Service Platform for Fast Development
of NB-IoT Applications,” Accepted and to appear in IEEE Internet of
𝐵=∫ ∫ 𝑓𝑇 (𝑡𝑇 )𝑓𝐸 (𝑡𝑎 , 𝑛𝑎 , λ𝑎 )
𝑡𝑇 =0 𝑡𝑎 =0
Things Journal. 𝑛𝑠 −1 𝑗
[20] Y.-W. Lin, et. al., “ArduTalk: AnArduino Network Application λ𝑠 𝑗 𝑗
×[∑ ( ) ∑ ( ) 𝑡𝑇 𝑗−𝑖 𝑒 −λ𝑠 𝑡𝑇 (−𝑡𝑎 )𝑖 𝑒 λ𝑠𝑡𝑎 ] 𝑑𝑡𝑎 𝑑𝑡𝑇 (6)
Development Platform based on IoTtalk,” IEEE System Journal. Page(s): 𝑗! 𝑖
𝑗=0 𝑖=0
1 – 9, 28 November 2017.
From (5) and (1), we have
[21] Y.-B. Lin, et. al., “LWA Rate Adaption by Enhanced Event-Triggered 𝑛𝑎 −1
Reporting,” IEEE Transactions on Vehicular Technology, vol. 67, no. 11,
∞ λ𝑎 𝑗 𝑡𝑇 𝑗 𝑒 −λ𝑎 𝑡𝑇
𝐴=∫ 𝑓𝑇 (𝑡𝑇 ) (1 − ∑ ) 𝑑𝑡𝑇
pp. 10950-10959, Nov. 2018.
𝑡𝑇 =0 𝑗=0
𝑗!
[22] S.-P. Tseng, Y.-R. Li, and M.-C. Wang, “An Application of Internet of
𝑛𝑎 −1
Things on Sustainable Aquaculture System, ” International Conference ∞ λ𝑎 𝑗 𝑡𝑇 𝑗 𝑒 −λ𝑎 𝑡𝑇
on Orange Technologies, 2016. =1−∫ 𝑓𝑇 (𝑡𝑇 ) ( ∑ ) 𝑑𝑡𝑇
𝑡𝑇 =0 𝑗=0
𝑗!
[23] K. R. S. R. Raju and G. H. K. Varma, “Knowledge Based Real Time
𝑛𝑎 −1
Monitoring System for Aquaculture Using IoT,” IEEE 7th International λ𝑎 𝑗 ∞
Advance Computing Conference, 2017. =1− ∑ ( )∫ 𝑡𝑇 𝑗 𝑓𝑇 (𝑡𝑇 )𝑒 −λ𝑎 𝑡𝑇 𝑑𝑡𝑇 (7)
[24] Y.-B. Lin, et. al., “CampusTalk: IoT devices and their interesting features 𝑗=0
𝑗! 𝑡𝑇 =0

on campus applications,” IEEE Access, vol. 6, pp. 26036-26046, 2018. From the frequency-domain general derivative of the
Laplace transform, for a function f(t) with the Laplace
APPENDIX A transform 𝑓. ∗ (𝑠) we have
This appendix derives the probability Pr[𝜏𝑑,3 > 𝜏𝑑,2 ] as ∞ 𝑑.(𝑗) 𝑓. ∗ (𝑠)
∫ 𝑡 𝑗 𝑓(𝑡)𝑒 −s𝑡 𝑑𝑡 = (−1) 𝑗 [ ] (8)
follows. It is clear that Pr[𝜏𝑑,3 > 𝜏𝑑,2 ] = Pr[𝑡𝑇 > 𝑡𝑠 + 𝑡𝑎 ], 𝑡=0 d𝑠 𝑗
and From (8), (7) is rewritten as
Pr[𝑡𝑇 > 𝑡𝑠 + 𝑡𝑎 ] = 𝑛𝑎 −1
∞ 𝑡𝑇 𝑡𝑇 −𝑡𝑎 λ𝑎 𝑗 𝑑.(𝑗) 𝑓𝑇∗ (𝑠)
𝐴=1− ∑ ( ) (−1)𝑗 [ ]|
∫ ∫ ∫ 𝑓𝑇 (𝑡𝑇 )𝑓𝐸 (𝑡𝑎 , 𝑛𝑎 , λ𝑎 ) 𝑓E (𝑡𝑠 , 𝑛𝑠 , λ𝑠 )𝑑𝑡𝑠 𝑑𝑡𝑎 𝑑𝑡𝑇 𝑗! d𝑠 𝑗
𝑡𝑇 =0 𝑡𝑎 =0 𝑡𝑠 =0 𝑗=0 𝑠=λ 𝑎
𝑛𝑎 −1
(2) (−λ𝑎 ) 𝑗
𝑑.(𝑗) 𝑓𝑇∗ (𝑠)
In (2), if λ𝑎 ≠ λ𝑠 and without loss of generality, assume that =1− ∑ [ ][ ]| (9)
𝑗! d𝑠 𝑗
λ𝑎 > λ𝑠 , then we have 𝑗=0 𝑠=λ𝑎
𝑡𝑇 −𝑡𝑎 From (6),
∫ 𝑓𝐸 (𝑡𝑠 , 𝑛𝑠 , λ𝑠 )𝑑𝑡𝑠 𝑛𝑠 −1 𝑗
𝑡𝑠 =0 λ𝑠 𝑗 𝑗 ∞
𝑛𝑠 −1 𝐵= ∑( )∑( )∫ 𝑓 (𝑡 )
λ𝑠 𝑗 (𝑡𝑇 − 𝑡𝑎 )𝑗 𝑒 −λ𝑠 (𝑡𝑇−𝑡𝑎) 𝑗! 𝑖 𝑡𝑇=0 𝑇 𝑇
𝑗=0 𝑖=0
=1− ∑ [ ] 𝑡𝑇
𝑗!
𝑗=0 ×∫ 𝑓𝐸 (𝑡𝑎 , 𝑛𝑎 , λ𝑎 ) 𝑡𝑇 𝑗−𝑖 𝑒 −λ𝑠𝑡𝑇 (−𝑡𝑎 )𝑖 𝑒 λ𝑠 𝑡𝑎 𝑑𝑡𝑎 𝑑𝑡𝑇
𝑛𝑠 −1 𝑗 𝑡𝑎 =0
𝑗 −λ𝑠 (𝑡𝑇 −𝑡𝑎 )
λ𝑠 𝑒 𝑗 𝑛𝑠 −1 𝑗
=1− ∑ [ ] ∑ ( ) 𝑡𝑇 𝑗−𝑖 (−𝑡𝑎 )𝑖 λ𝑠 𝑗 𝑗 ∞
𝑗! 𝑖 = ∑( ) ∑ ( ) (−1)𝑖 ∫ 𝑓𝑇 (𝑡𝑇 )𝑡𝑇 𝑗−𝑖 𝑒 −λ𝑠𝑡𝑇
𝑗=0 𝑖=0
𝑛𝑠 −1 𝑗 𝑗! 𝑖 𝑡𝑇 =0
𝑗=0 𝑖=0
λ𝑠 𝑗 𝑗 𝑡𝑇
=1− ∑ ( ) ∑ ( ) 𝑡𝑇 𝑗−𝑖 𝑒 −λ𝑠 𝑡𝑇 (−𝑡𝑎 )𝑖 𝑒 λ𝑠𝑡𝑎 (3)
𝑗! 𝑖 ×∫ 𝑓𝐸 (𝑡𝑎 , 𝑛𝑎 , λ𝑎 ) 𝑡𝑎 𝑖 𝑒 λ𝑠 𝑡𝑎 𝑑𝑡𝑎 𝑑𝑡𝑇 (10)
𝑗=0 𝑖=0 𝑡𝑎 =0
Substitute (3) into (2) to yield In (10), we have
∞ 𝑡𝑇 𝑡𝑇
Pr[𝑡𝑇 > 𝑡𝑠 + 𝑡𝑎 ] = ∫ ∫ 𝑓𝑇 (𝑡𝑇 )𝑓𝐸 (𝑡𝑎 , 𝑛𝑎 , λ𝑎 ) 𝑑𝑡𝑎 𝑑𝑡𝑇 ∫ 𝑓𝐸 (𝑡𝑎 , 𝑛𝑎 , λ𝑎 ) 𝑡𝑎 𝑖 𝑒 λ𝑠 𝑡𝑎 𝑑𝑡𝑎
𝑡𝑇 =0 𝑡𝑎 =0 𝑡𝑎 =0
∞ 𝑡𝑇
−∫ ∫ 𝑓𝑇 (𝑡𝑇 )𝑓𝐸 (𝑡𝑎 , 𝑛𝑎 , λ𝑎 )
𝑡𝑇
λ𝑎 𝑛𝑎 𝑡𝑎 𝑛𝑎−1 𝑒 −λ𝑎 𝑡𝑎 𝑖 λ 𝑡
=∫ [ ] 𝑡𝑎 𝑒 𝑠 𝑎 𝑑𝑡𝑎
𝑡𝑇 =0 𝑡𝑎 =0 𝑡𝑎 =0 (𝑛𝑎 − 1)!
𝑛𝑠 −1 𝑗
λ𝑠 𝑗 𝑗
𝑡𝑇
λ𝑎 𝑛𝑎 𝑡𝑎 𝑛𝑎+𝑖−1 𝑒 −(λ𝑎 −λ𝑠 )𝑡𝑎
×[∑ ( ) ∑ ( ) 𝑡𝑇 𝑗−𝑖 𝑒 −λ𝑠 𝑡𝑇 (−𝑡𝑎 )𝑖 𝑒 λ𝑠𝑡𝑎 ] 𝑑𝑡𝑎 𝑑𝑡𝑇 =∫ [ ] 𝑑𝑡𝑎
𝑗! 𝑖 𝑡𝑎 =0 (𝑛𝑎 − 1)!
𝑗=0 𝑖=0
λ𝑎 𝑛𝑎 (𝑛𝑎 + 𝑖 − 1)!
=𝐴−𝐵 (4) =[ ]
where (λ𝑎 − λ𝑠 )𝑛𝑎+𝑖 (𝑛𝑎 − 1)!
∞ 𝑡𝑇 𝑡𝑇
(λ𝑎 − λ𝑠 )𝑛𝑎 +𝑖 𝑡𝑎 𝑛𝑎+𝑖−1 𝑒 −(λ𝑎−λ𝑠 )𝑡𝑎
𝐴=∫ ∫ 𝑓𝑇 (𝑡𝑇 )𝑓𝐸 (𝑡𝑎 , 𝑛𝑎 , λ𝑎 ) 𝑑𝑡𝑎 𝑑𝑡𝑇 (5) ×∫ [ ] 𝑑𝑡𝑎
𝑡𝑇 =0 𝑡𝑎 =0 𝑡𝑎 =0 (𝑛𝑎 + 𝑖 − 1)!
and

11

2169-3536 (c) 2018 IEEE. Translations and content mining are permitted for academic research only. Personal use is also permitted, but republication/redistribution requires IEEE permission. See
http://www.ieee.org/publications_standards/publications/rights/index.html for more information.
This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI
10.1109/ACCESS.2019.2905017, IEEE Access

λ𝑎 𝑛𝑎 (𝑛𝑎 + 𝑖 − 1)! 𝑑.(𝑗−𝑖) 𝑓𝑇∗ (𝑠)


=[ ] [1 × {[ ]|
(λ𝑎 − λ𝑠 )𝑛𝑎+𝑖 (𝑛𝑎 − 1)! d𝑠 𝑗−𝑖 𝑠=λ 𝑠
𝑛𝑎 +𝑖−1 𝑛𝑎 +𝑖−1
𝑘 𝑘 −(λ𝑎 −λ𝑠 )𝑡𝑇 𝑘
(λ𝑎 − λ𝑠 ) 𝑡𝑇 𝑒 (λ𝑠 − λ𝑎 ) 𝑑.(𝑗+𝑘−𝑖) 𝑓𝑇∗ (𝑠)
− ∑ ] (11) − ∑ [ ][ ]| } (17)
𝑘! 𝑘! d𝑠 𝑗+𝑘−𝑖 𝑠=λ
𝑘=0 𝑘=0 𝑎
Substitute (11) into (10), we have From (9) and (17), we have
𝑛𝑠 −1 𝑗
𝑗 ∞ Pr[𝜏3 > 𝜏2 ] = Pr[𝑡𝑇 > 𝑡𝑠 + 𝑡𝑎 ]
λ𝑠 𝑗 𝑛𝑎 −1
𝐵= ∑( ) ∑ ( ) (−1)𝑖 ∫ 𝑓𝑇 (𝑡𝑇 )𝑡𝑇 𝑗−𝑖 𝑒 −λ𝑠𝑡𝑇 (−λ𝑎 )𝑗 𝑑.(𝑗) 𝑓𝑇∗ (𝑠)
𝑗! 𝑖
𝑗=0 𝑖=0 𝑡𝑇 =0 =1− ∑ [ ][ ]|
𝑗! d𝑠 𝑗
λ𝑎 𝑛𝑎 (𝑛𝑎 + 𝑖 − 1)! 𝑗=0 𝑠=λ 𝑎
×[ ] 𝑛𝑠 −1 𝑗 𝑛
(λ𝑎 − λ𝑠 )𝑛𝑎+𝑖 (𝑛𝑎 − 1)! 𝑛𝑎 + 𝑖 − 1 (−λ𝑠 ) 𝑗 λ𝑎 𝑎
𝑛𝑎 +𝑖−1 − ∑ ∑( )[ ]
(λ𝑎 − λ𝑠 )𝑘 𝑡𝑇 𝑘 𝑒 −(λ𝑎 −λ𝑠 )𝑡𝑇 𝑖 (λ𝑎 − λ𝑠 )𝑛𝑎+𝑖 (𝑗 − 𝑖)!
× [1 − ∑ ] 𝑑𝑡𝑇 𝑗=0 𝑖=0
𝑛𝑎 +𝑖−1
𝑘=0
𝑘! 𝑑.(𝑗−𝑖) 𝑓𝑇∗ (𝑠) (λ𝑠 − λ𝑎 )𝑘 𝑑.(𝑗) 𝑓𝑇∗ (𝑠)
𝑛𝑠 −1 𝑗 × {[ ]| − ∑ [ ][ ]| }
λ𝑠 𝑗 𝑗 λ𝑎 𝑛𝑎 (𝑛𝑎 + 𝑖 − 1)! d𝑠 𝑗−𝑖 𝑠=λ 𝑘! d𝑠 𝑗 𝑠=λ
𝑘=0
= ∑( ) ∑ ( ) (−1)𝑖 [ ] 𝑠

𝑗=0
𝑗! 𝑖=0 𝑖 (λ𝑎 − λ𝑠 )𝑛𝑎+𝑖 (𝑛𝑎 − 1)! Let 𝑡𝑑 = 𝑡𝑎 + 𝑡𝑠 . In (2), if λ𝑎 = λ𝑠 = λ , then from the
× (𝐶 − 𝐷) (12) convolution of Erlang distributions, 𝑡𝑑 also has an Erlang
where distribution with the density function 𝑓𝐸 (𝑡𝑑 , 𝑛𝑠 + 𝑛𝑎 , λ) .
∞ Therefore, Pr[𝜏𝑑,3 > 𝜏𝑑,2 ] = Pr[𝑡𝑇 > 𝑡𝑠 + 𝑡𝑎 ] = Pr[𝑡𝑇 >
𝐶=∫ 𝑓𝑇 (𝑡𝑇 )𝑡𝑇 𝑗−𝑖 𝑒 −λ𝑠 𝑡𝑇 𝑑𝑡𝑇 (13) 𝑡𝑑 ], where
𝑡𝑇 =0 ∞ 𝑡𝑇
and Pr[𝑡𝑇 > 𝑡𝑑 ] = ∫ ∫ 𝑓𝑇 (𝑡𝑇 ) 𝑓𝐸 (𝑡𝑑 , 𝑛𝑠 + 𝑛𝑎 , λ)𝑑𝑡𝑑 𝑑𝑡𝑇
𝑛𝑎 +𝑖−1 𝑡𝑇 =0 𝑡𝑑 =0

𝐷= ∑ ∫ 𝑓𝑇 (𝑡𝑇 )𝑡𝑇 𝑗−𝑖 𝑒 −λ𝑠𝑡𝑇 which has the same format as (5), and directly from (9), we
𝑘=0 𝑡 𝑇 =0 have
(λ𝑎 − λ𝑠 )𝑘 𝑡𝑇 𝑘 𝑒 −(λ𝑎 −λ𝑠 )𝑡𝑇 Pr[𝑡𝑇 > 𝑡𝑑 ]
× [ ] 𝑑𝑡𝑇 (14) 𝑛𝑠 +𝑛𝑎 −1
𝑘! (−λ) 𝑗 𝑑.(𝑗) 𝑓𝑇∗ (𝑠)
=1− ∑ [ ][ ]| (18)
Equation (13) is rewritten as 𝑗! d𝑠 𝑗 𝑠=λ
𝑗=0
𝑑.(𝑗−𝑖) 𝑓𝑇∗ (𝑠)
𝐶 = (−1) 𝑗−𝑖 [ ]| (15) Since 𝑓𝑇 (𝑡𝑇 ) is approximated as a Gamma distribution with
d𝑠 𝑗−𝑖 𝑠=λ the shape parameter 𝛼 and the scale parameter β, its Laplace
𝑠
In (14), Transform is expressed as
𝑛𝑎 +𝑖−1 ∞ β𝛼
(λ𝑎 − λ𝑠 )𝑘 𝑑.(𝑗+𝑘−𝑖) 𝑓𝑇∗ (𝑠) 𝑓𝑇∗ (𝑠) = ∫ 𝑓𝑇 (𝑡𝑇 ) 𝑒 −s𝑡𝑇 𝑑𝑡𝑇 = (19)
𝐷= ∑ [ ] (−1) 𝑗+𝑘−𝑖 [ ]| 𝑠=0 (s + β)𝛼
𝑘! d𝑠 𝑗+𝑘−𝑖 𝑠=λ
𝑘=0 𝑎 and (18) is re-written as
(16) Pr[𝑡𝑇 > 𝑡𝑑 ]
From (12), (15) and (16), we have 𝑛𝑠 +𝑛𝑎 −1
𝑛𝑠 −1 𝑗
𝑛𝑎
𝛼+𝑗−1 λ𝑗 β𝛼
(−λ𝑠 ) 𝑗
𝑗 λ𝑎 (𝑛𝑎 + 𝑖 − 1)! =1− ∑ ( )[ ] (20)
𝐵= ∑[ ]∑( )[ ] 𝑗 (λ + β)𝛼+𝑗
𝑖 (λ𝑎 − λ𝑠 )𝑛𝑎+𝑖 (𝑛𝑎 − 1)! 𝑗=0
𝑗=0
𝑗! 𝑖=0

𝑑.(𝑗−𝑖) 𝑓𝑇∗ (𝑠) APPENDIX B


× {[ ]| This appendix derives the probability Pr[𝑡𝑇 > 𝑇𝑚,𝐼 ] as
d𝑠 𝑗−𝑖 𝑠=λ𝑠 follows. Let 𝑓𝑚,𝐼 (𝑇𝑚,𝐼 ) be the density function of 𝑇𝑚,𝐼 . Then
𝑛𝑎 +𝑖−1 𝑇𝑚,𝐼 𝑇𝑚,𝐼 −𝑡𝑚,𝐼−1
(λ𝑠 − λ𝑎 )𝑘 𝑑.(𝑗+𝑘−𝑖) 𝑓𝑇∗ (𝑠) 𝑓𝑚,𝐼 (𝑇𝑚,𝐼 ) = ∫ ∫ …
− ∑ [ ][ ]| }
𝑘! d𝑠 𝑗+𝑘−𝑖 𝑠=λ
𝑡𝑚,𝐼−1 =0 𝑡𝑚,𝐼−2 =0
𝑘=0 𝑎 𝐼
𝑇𝑚,𝐼 −𝑡𝑚,𝐼−1 −⋯−𝑡𝑚,2
𝑛𝑠 −1 𝑗
𝑛𝑎 + 𝑖 − 1 (−λ𝑠 )𝑗 λ𝑎 𝑛𝑎 ×∫ ∏ 𝑓𝑚 (𝑡𝑚,𝑖 ) 𝑑𝑡𝑚,1 … 𝑡𝑚,𝐼−1 (21)
= ∑ ∑( )[ ] 𝑡𝑚,1 =0 𝑖=1
𝑖 (λ𝑎 − λ𝑠 )𝑛𝑎+𝑖 (𝑗 − 𝑖)!
𝑗=0 𝑖=0 From (21) and the convolution of Laplace transform, we
have
∗ (𝑠)
𝑓𝑚,𝐼 = [𝑓𝑚∗ (𝑠)]𝐼 (22)
The probability that 𝑡𝑇 >𝑇𝑚,𝐼 is expressed as

12

2169-3536 (c) 2018 IEEE. Translations and content mining are permitted for academic research only. Personal use is also permitted, but republication/redistribution requires IEEE permission. See
http://www.ieee.org/publications_standards/publications/rights/index.html for more information.
This article has been accepted for publication in a future issue of this journal, but has not been fully edited. Content may change prior to final publication. Citation information: DOI
10.1109/ACCESS.2019.2905017, IEEE Access

Pr[𝑡𝑇 > 𝑇𝑚,𝐼 ] = Yi-Bing Lin (M’96-SM’96-F’03)


∞ 𝑡𝑇 received his Bachelor’s degree from
∫𝑡 =0 ∫𝑇 =0 𝑓𝑇 (𝑡𝑇 ) 𝑓𝑚,𝐼 (𝑇𝑚,𝐼 )𝑑𝑇𝑚,𝐼 𝑑𝑡𝑇 (23)
𝑇 𝑚,𝐼 National Cheng Kung University,
In periodic message reporting, the most often selected Taiwan, in 1983, and his Ph.D. from
distribution for 𝑡𝑚,𝑖 is either fixed or Enponential [21]. We University of Washington, USA, in 1990.
consider Exponential 𝑡𝑚,𝑖 through analytic modeling, and From 1990 to 1995 he was a Research
fixed 𝑡𝑚,𝑖 through simulation. Assume that 𝑓𝑚 (𝑡𝑚,𝑖 ) = Scientist with Bellcore. He then joined
γ𝑒 −γ𝑡𝑚,𝑖 is an Exponential density function, then from (21), National Chiao Tung University (NCTU)
𝑇𝑚,𝐼 has an Erlang distribution, and in Taiwan, where he remains. In 2010, Lin became a lifetime
γ𝐼 𝑇𝑚,𝐼 𝐼−1 𝑒 −γ𝑇𝑚,𝐼 Chair Professor of NCTU, and in 2011, the Vice President of
𝑓𝑚,𝐼 (𝑇𝑚,𝐼 ) = 𝑓𝐸 (𝑇𝑚,𝐼 , 𝐼, γ) = (24) NCTU. During 2014 - 2016, Lin was Deputy Minister,
(𝐼 − 1)! Ministry of Science and Technology, Taiwan. Since 2016,
Following the same derivation for (20), from (24), (23) can Lin has been appointed as Vice Chancellor, University
be expressed as System of Taiwan (for NCTU, NTHU, NCU, and NYM). Lin
𝐼−1
𝛼+𝑗−1 γ𝑗 β𝛼 is an Adjunct Research Fellow, Institute of Information
Pr[𝑡𝑇 > 𝑇𝑚,𝐼 ] = 1 − ∑ ( )[ ] (25) Science, Academia Sinica, Research Center for Information
𝑗 (γ + β)𝛼+𝑗
𝑗=0 Technology Innovation, Academia Sinica, and a member of
In (19), if 𝛼 is an integer and 𝑓𝑚,𝐼 (𝑇𝑚,𝐼 ) is an arbitrary board of directors, Chunghwa Telecom. Lin is the co-author
function, then (23) is re-written as of the books Wireless and Mobile Network Architecture
∞ ∞
Pr[𝑡𝑇 >𝑇𝑚,𝐼 ] = ∫𝑇 =0 ∫𝑡 =𝑇 𝑓𝑚,𝐼 (𝑇𝑚, ) 𝑓𝑇 (𝑡𝑇 )𝑑𝑡𝑇 𝑑𝑇𝑚,𝐼 (Wiley, 2001), Wireless and Mobile All-IP Networks (John
𝑚,𝐼 𝑇 𝑚,𝐼
𝛼−1 Wiley, 2005), and Charging for Mobile All-IP
∞ β𝑗 𝑇𝑚,𝐼 𝑗 𝑒 −β𝑡 Telecommunications (Wiley, 2008). Lin received numerous
=∫ 𝑓𝑚,𝐼 (𝑇𝑚,𝐼 ) ∑ [ ] 𝑑𝑇𝑚,𝐼
𝑇𝑚,𝐼 =0 𝑗=0
𝑗! research awards including 2005 NSC Distinguished
𝛼−1 Researcher, 2006 Academic Award of Ministry of Education,
(−β) 𝑗 𝑑.(𝑗) 𝑓𝑚,𝐼
∗ (𝑠)
2008 Award for Outstanding contributions in Science and
= ∑[ ][ ]|
𝑗! d𝑠 𝑗 𝑠=λ
Technology, Executive Yuen, 2011 National Chair Award,
𝑗=0
𝛼−1 and TWAS Prize in Engineering Sciences, 2011 (the
(−β) 𝑗 𝑑.(𝑗) Academy of Sciences for the Developing World). He is is
= ∑[ ] { 𝑗 [𝑓𝑚∗ (𝑠)]𝐼 }|
𝑗! d𝑠 𝑠=λ
AAAS Fellow, ACM Fellow, IEEE Fellow, and IET Fellow.
𝑗=0

Hung-Chun Tseng received the B.S.


degree in Department of Applied
Science from National Hsinchu
University of Education, Taiwan, in
2007, and the M.S. degrees in
Department of Electrophysics from
National Chiao Tung University
(NCTU), Taiwan, in 2011. He is
currently pursuing the Ph.D. degree at the Department of
Computer Science, NCTU.

13

2169-3536 (c) 2018 IEEE. Translations and content mining are permitted for academic research only. Personal use is also permitted, but republication/redistribution requires IEEE permission. See
http://www.ieee.org/publications_standards/publications/rights/index.html for more information.

You might also like