Professional Documents
Culture Documents
Social Cattle
Social Cattle
fully edited. Content may change prior to final publication. Citation information: DOI 10.1109/JIOT.2021.3122341, IEEE Internet of
Things Journal
IEEE INTERNET OF THINGS JOURNAL, VOL. XX, NO. XX, XXXX XXXX 1
Abstract—Effective and efficient animal disease detection and through either environment or other cows, and no simple
control have drawn increasing attention in smart farming in solutions are available for its control to date.
recent years. It is crucial to explore how to harvest data In this paper, we develop an IoT-based integrated solution to
and enable data-driven decision making for rapid diagnosis
and early treatment of infectious diseases among herds. This address this problem, where we aim to achieve cost-effective
paper proposes an IoT-based animal social behavior sensing mastitis transmission control using a decentralized platform
framework to model mastitis propagation and infer mastitis with novel sensing and interference algorithms to identify
infection risks among dairy cows. To monitor cow social be- the most vulnerable cows for further screening. As such a
haviors, we deploy portable GPS devices on cows to track their screening process is labor-intensive and costly, our goal is
movement trajectories and contacts with each other. Based on
those collected location data, we build directed and weighted to maximize the likelihood of successful identification while
cattle social behavior graphs by treating cows as vertices and minimizing false positives. Our core contributions involve the
their contacts as edges, assigning contact frequencies between development of a complete methodology for sensing cows’
cows as edge weights, and determining edge directions according social behavior, inferring the social interaction graphs of
to contact spatial-temporal information. Then, we propose a cows, modeling disease transmission based on such social
flexible probabilistic disease transmission model, which considers
both direct contacts with infected cows and indirect contacts via graphs, and inferring the most likely candidates for detailed
environmental contamination, to estimate and forecast mastitis screening. Such a methodology allows us to identify how
infection probabilities. Our model can answer two common the potential disease may have transmitted on a farm in a
questions in animal disease detection and control: 1) which posterior manner. As output, our methodology performs a
cows should be given the highest priorities for an investigation forecast and recommends a short list of cows for manual
to determine whether there are already infected cows on the
farm; 2) how to rank cows for further screening when only a screening using additional validation methods, based on which
tiny number of sick cows have been identified. Both theoretical we either conclude the population is free from the disease, or
and simulation-based analytics of in-the-field experiments (17 a set of most likely propagation paths and infected cows.
cows and more than 70-hours data) demonstrate the proposed Background: Mastitis is a disease commonly found on
framework’s effectiveness. In addition, somatic cell count (SCC) dairy farms that is caused by microorganisms, usually bacteria,
mastitis tests validate our predictions as correct in real-world
scenarios. that invades the udder and multiplying in the milk-producing
tissues, producing toxins that result in inflammation. The
Index Terms—IoT, social cattle behavior sensing, propagation
immune system of cows will respond and fight the infection
modeling, agriculture 4.0 and smart farming
with an increase in the number of immunocytes, referred to
as somatic cells. The number of somatic cells in milk, i.e.,
I. I NTRODUCTION somatic cell count (SCC), is an indication of inflammation [4],
2327-4662 (c) 2021 IEEE. Personal use is 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/JIOT.2021.3122341, IEEE Internet of
Things Journal
IEEE INTERNET OF THINGS JOURNAL, VOL. XX, NO. XX, XXXX XXXX 2
Subclinical mastitis has major cost implications. Studies found design. Section IV and V present the implementation and the
that 70 to 80% of mastitis losses were due to subclinical evaluation results respectively. Section VI concludes the paper.
mastitis. On the other hand, commonly used approaches to
measure the SCC count are both costly and time-consuming II. R ELATED W ORK
procedures to test the produced milk, hence, not scalable to
large herd size and farm-scale practices. Currently, although In this section, we summarize the state-of-the-art practices
subclinical mastitis is the predominant form in most herds and in smart farming deployments.
is the most costly to a producer, most producers know neither Smart Farming Deployments: Smart farming refers to the
the prevalence rate in their herd nor which cows are infected, deployment of information and communication technologies
and therefore, do not attempt to treat the infected cows. to modern agriculture practices. Recent technologies and tech-
Approach: Our key research challenge to be answered is niques are rapidly taken advantage of using satellite imagery
that with the help of IoT instrumentation, whether it is possible [8], [9], agricultural robots [10], [11], large deployments of
for us to detect subclinical mastitis by testing just a few cows sensor nodes [12], [13], and unmanned aerial vehicles or
that are most vulnerable to disease transmission, so that we can drones for aerial imagery and actuation [14]–[17]. IoT based
infer the health status of the entire farm. This way, preventive smart farming solutions are applied in a wide variety of
measures can be taken early. However, existing sensing and domains, such as precision agriculture, greenhouse control,
monitoring approaches, such as those based on cameras or and livestock monitoring [18].
manual calibration methods [6], [7], are either too costly to Precision agriculture technologies aim to enhance agricul-
deploy on a large scale, or do not provide the needed accuracy tural productivity by providing smart automation, improving
to generate a short list of candidates for further testing. In and optimizing agricultural production environments and plan-
this paper, we propose an integrated sensing, modeling, and ning. Different IoT sensors are developed for the applica-
inference framework. Specifically, we deploy sensors on cows tions, including climate condition monitoring [19], soil pattern
to track their behavioral models, based on which we infer analysis [20], disease monitoring [21], plant and harvest time
their contact history. Based on this history, we infer the most optimization [22], among others.
likely disease transmission paths if the candidate cows are Mastitis Detection in Dairy Cows: IoT based livestock
indeed identified as positive for disease monitoring. On the monitoring solutions aim to improve dairy products and live-
other hand, if the whole farm is actually healthy and free of stock conditions by attaching different monitoring sensors to
diseases, our methods will validate this with the least amount the animals to obtain their performance. Due to the increasing
of effort and testing overhead. demand for early identification of disease symptoms, IoT
To our best knowledge, the proposed framework is the sensing devices have been deployed to monitor the animal
first IoT based instrumentation platform that will help us temperature [23], heart rate [18], and physical gestures [24]
understand the social behavior of cows on farm environments. to prevent animals suffering from any disease. However, our
Our results demonstrate the success of the overall approach work is different in that we are the first to use location data
with validations and results. Our major contributions of this to build passive social network graphs of cows for disease
approach are listed as follows: tracking and preventing.
First, to our knowledge, we are the first to propose the use One important step of the overall procedure of our method-
of social behavior networks of cows for disease tracking appli- ology is to manually screen cows once most likely candidates
cations, where we passively reconstruct such social behavior have been identified. In practice, this labor-intensive step is
history for our application. This demonstrates a new potential done by measuring the SCC counts of milk produced. On
area of social networks among animals in semi-controlled January 1, 2012, the U.S. dairy industry began transitioning to
environments. This study also paves the way for us to uncover a producer-level milk sampling program for SCC compliance
the disease transmission paths in later studies. with EU regulations for products exported to the EU. The
Second, we design and evaluate novel inference algorithms impact of this regulation will be profound because this change
to reconstruct the history of social interactions purely based will hold individual farms accountable to stricter quality
on passive data. Our algorithms take both direct and indirect criteria.
contact caused infection into account, and can be adapted to Commonly used methods of mastitis detection include SCC
support different types of configurable combinations, such as estimation, electrical conductivity (EC), and identification of
the number of assumed sick cows, the disease transmission the causative microorganisms [25]. Methods have been devel-
probability, and the distance thresholds to determine contact. oped for SCC estimation, such as direct microscopic somatic
Third, we demonstrate the correctness and effectiveness of cell counting, California mastitis test (CMT), Portacheck,
our results through extensive experimental results, including Fossomatic SCC, or DeLaval cell counter, among others [26].
not only simulations, but also in-the-field deployments. Our The gold standard to determine SCC is to count the somatic
study also supports the results with a real-world case study cells with methylene blue staining. This is time consuming
that accurately detected one cow with SCC testing results. and technically demanding. Alternatively, many farms measure
This demonstrates the correctness of the inference models for individual cow SCC on a monthly basis by the Dairy Herd
the disease transmissions and their analysis results. Improvement Association (DHIA) which can be costly and
The remaining of this paper is organized as follows. Section offers limited effectiveness. About 60 to 70% of environmental
II and III describes the related work and an overview of system pathogen infections exist for less than 30 days and are not
2327-4662 (c) 2021 IEEE. Personal use is 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/JIOT.2021.3122341, IEEE Internet of
Things Journal
IEEE INTERNET OF THINGS JOURNAL, VOL. XX, NO. XX, XXXX XXXX 3
easy to be detected, so some cases could go unnoticed with can still be collected by the other. Suppose ∆t data points
monthly tests. For the inline test, the only commonly used are lost in a GPS trajectory ~g = hgt−1 , gt , gt+∆t+1 , gt+∆t+2 i,
method is to test the EC content of milk [27], [28]. It is known where gt = (lont , latt ) is the GPS location collected at time t,
that mastitic milk has a higher EC than normal milk. Most and hgt+1 , . . . , gt+∆t i are missing. Assuming that the missing
automatic milking units today are equipped with EC sensors ∆t points are evenly distributed between gt and gt+∆t+1 (i.e.,
that flag cows with clinical mastitis but cannot effectively cows walk along a straight line at a constant velocity), we
identify cows with subclinical mastitis. However, it is fair to estimate the missing point gt+i as follows:
say that the existing methods are rather limited in terms of
speed, sensitivity, frequency, and/or expense [29]. Therefore, −lont −latt
gt+i = ( lont+∆t+1
∆t+1 ∗ i + lont , latt+∆t+1
∆t+1 ∗ i + latt ) (1)
it will be extremely useful if continuous farm-wide monitoring
is conducted to provide clues as to whether the mastitis is of where i ∈ {1, 2, . . . , ∆t}. Besides location gt , modern GPS
the contagious or environmental type. tracking devices, e.g., GPS SiRF star III chipsets [32] used
Comparison with Similar Approaches: There have been in our studies, usually return an estimated horizontal position
limited deployments efforts in using IoT technologies to error (EHPE) et associated with gt . Accordingly, we use the
forecast herd farm diseases. In [30], the authors developed averaged et +et+∆t+1
2 to approximate et+i .
a platform for similar purpose of detecting mastitis using Next, it is necessary to detect and weed location outliers
IoT integration. In their approach, data from a range of because external factors, such as occlusions and GPS signal
measurement devices, cattle collars, milking station and feed instability, might introduce noisy data into cow trajectories. We
wagon are integrated into a cloud infrastructure. At the milking rely on both EHPEs and cow walking speeds to clean data. As
robot, they used sensors to measure the conductivity of the a built-in location error estimation reported by GPS devices,
milk as a change in conductivity arises from an increase in an EHPE measures the inaccuracy of an individual collected
milk Na+ concentration as a consequence of infection. To location. We design an EHPE threshold θe to filter out those
improve detection, they also collected accelerometer derived GPS data points with a high EHPE. For more details of the
data from the Afimilk Silent Herdsman collar to provide an θe setting and EHPE distributions in our study, see Section V.
early indication of the onset of mastitis which informs an early Besides EHPEs, we leverage cow walking speeds to identify
intervention action. The combination of the two measurements noisy locations. For location gt collected at time t, we estimate
provides corroboration between two radically different sensor cow walking speeds for its following n time steps (i.e., from
modalities and provides an improvement in the measurement time t+1 to t+n). If gt is an outlier, its distance to normal data
reliability and accuracy. This approach is very different from points is more likely to be large, leading to a high walking
ours in the types of sensors used and in the data aggregation speed. Considering noisy data may exist at the following n
algorithm. Further, they still need to manually test each cow time steps, we remove the largest speed to reduce such effects.
for disease detection without developing any real capabilities Then we calculate the averaged speed for the rest n − 1 time
for forecasting, as they do not collect any interaction history steps:
nor cow trajectories. Pn d(gt+i ,gt ) d(gt+i ,gt )
In another effort of using IoT to improve cows’ health [31], i=1 t+i−t − max1≤i≤n t+i−t
v̄ = (2)
the authors discover that in almost all cases they observed, n−1
mastitis manifests itself in a very sharp decrease in rumi- where d(gt+i , gt ) represents the Euclidean distance between
nation as measured using sensors. By measuring this metric GPS locations gt+i and gt . If v̄ is higher than a speed threshold
alone, in eight out of eleven mastitis cases, the alarm was θv , location gt is regarded as a noise data point. Otherwise,
generated before the mastitis was diagnosed. However, the gt is a normal data point. The setting of θv can be found in
paper is different from ours considerably as they do not Section V.
provide complete details on the false alarm rate, and whether Finally, we perform data fusion. After fixing missing data
their experience can be validated on farms with different and removing noise, we merge the two GPS trajectories gen-
management protocols. erated by the same cow into one. Since the two GPS locations
at the same time may have different EHPEs, it is reasonable
III. S YSTEM D ESIGN to assign a larger weight to the location with a lower EHPE.
The proposed system consists of four components, i.e., Suppose we have two GPS locations gt1 = (lon1t , lat1t ) and
cow social behavior tracking, social graph building, disease gt2 = (lon2t , lat2t ) collected at time t with EHPEs of e1t and
propagation modeling, and screening list recommendation, as e2t respectively. To ensure the location with a lower EHPE is
shown in Figure 1. assigned a higher weight in data fusion, we express the merged
weighted average latitude and longitude coordinate (lont , latt )
is expressed as:
A. Cow Social Behavior Tracking
We leverage portable battery-powered GPS devices to mon-
lon1t e2t + lon2t e1t lat1t e2t + lat2t e1t
itor cows’ trajectories and track their social behaviors. Specif- gt = (lont , latt ) = ( , ) (3)
ically, two GPS devices with the same signal scanning fre- e1t + e2t e1t + e2t
quency are assigned to each cow to track its movement. Even Note that if either of gt1 and gt2 is missing, we take the
if when one of the two devices failed to work, cow trajectories existing one to represent the merged data.
2327-4662 (c) 2021 IEEE. Personal use is 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/JIOT.2021.3122341, IEEE Internet of
Things Journal
IEEE INTERNET OF THINGS JOURNAL, VOL. XX, NO. XX, XXXX XXXX 4
Cow Social Behavior Tracking Social Graph Building Disease Propagation Modeling Screening List
t=1 t=2 t=3 t=1 t=2 t=3 t=1 t=2 t=3 t=1 t=2 t=3
A p=1.0
GPS-1 Data Direct p=1.0 p=0.1 p=1.0 p=0.2 B p=0.2
A GPS-2
Denoise
Fusion Contacts A B A B A B A B
E p=0.11
p=0.1
... F C
...
F C F p=0.1 C
...
F C F p=0.1
p=0.09
GPS-1 E D C p=0.09
Data Indirect E D E D E D
F GPS-2
Denoise
Fusion Contacts
p=0.11 p=0.02 D p=0.02
Fig. 1. Framework overview. We deploy two GPS devices on each cow to track its movement. The two collected trajectories will be merged after fixing
missing data (represented by unfilled location markers) and removing noise data. Then we build cow social behavior networking graphs by treating cows as
vertices, and direct (solid line) and indirect (dashed line) contacts as edges. Base on social behavior graphs, a probabilistic disease transmission model is
proposed to estimate disease propagation in cow herds. Finally, we rank all cows’ infection probabilities and suggest a list of cows for screening in order of
decreasing priority.
B. Social Network Modeling in one place and contaminates its surrounding environment.
To model cow social behaviors, we build a weighted di- Later, cow B, who comes and stays close to the contaminated
rected graph G = (V, E, W (E)) by treating cows as vertices, place for a long time, might be infected through the envi-
contacts between cows as edges, and contact frequencies as ronment. We define such contacts as indirect contacts in this
edge weights. In graph G, V = {vi |i = 1, 2, · · · , N } is a paper.
set of vertices where N is the total number of cows; E ⊆ One of the challenges involved in recognizing indirect
{(vi , vj )|(vi , vj ) ∈ V 2 ∧ vi 6= vj } is a set of directed (from vi contacts is to localize where cows stay without moving. GPS
to vj ) edges; W (E) = {wvi ,vj |(vi , vj ) ∈ E ∧ wvi ,vj ∈ R+ } devices used in our study switch automatically into hibernation
is a set of edge weights. Instead of building one graph G for mode if the cow stops moving longer than a certain consecu-
each time step, we build one graph G by aggregating all cow tive time period, and re-enter data collecting mode when the
contacts within a long time period T to reduce computing cow starts to move again. When processing the GPS data, we
overhead. For example, our GPS devices collect one location set latitude and longitude coordinates during the hibernation
point every second, but we build one graph G per minute mode as (0, 0). For a GPS trajectory ~g = hg1 , g2 , ..., gn i, we
rather than per second. use a time period δ threshold to identify consecutive inactivity.
Suppose we have two preprocessed GPS trajectories g~a = If more than or equal to δ consecutive (0, 0) are found, a
hg1a , g2a , · · · , gTa i and g~b = hg1b , g2b , · · · , gTb i for cow A and staying will be determined. Then we use the most recent
cow B respectively, where gta and gtb are latitude and longitude k GPS data points prior to inactivity to infer exact staying
coordinates at time t, and T is the length of total time steps locations. For example, we regard the latest non-hibernation
to build G. We propose the following models to identify both data point as the staying location when k is set as 1. When
direct and indirect contacts between cow A and cow B to k is larger than 1, instead an average location is used. For
establish edges. each staying, we also record its start time ts and end time te .
Direct Contact Model: It is intuitive to determine a contact The details of how to infer staying locations are illustrated in
between cow A and cow B if the Euclidean distance between Algorithm 1.
gta and gtb is below a distance θd , i.e., d(gta , gtb ) < θd . Although
the above method is straightforward and efficient, it may suffer Algorithm 1 Infer Staying Location
1: procedure S TAY L OCATION(~g , δ, k)
from insufficient robustness due to the instability of GPS 2: s←[]
~ . a list of pairs of staying location and time
signals and EHPEs. Therefore, we propose a sliding-window 3: c←0 . initialize the number of consecutive (0, 0)
4: for i = 1 → |~ g | do . |~
g | is the length of trajectory
contact model, which incorporates all point-to-point distances 5: if gi = (0, 0) then
within a time sliding-window of 2τ + 1 rather than a single 6: c←c+1 . find a (0, 0) location
7: else
distance calculated at time t. Note that the sliding-window 8: if c >= δ then . find a staying location
contact model only considers the d(gta , gtb ) when we set τ as 9: ts ← i − c . the start time of staying
10: te ← i − 1 . the end time of staying
0. Specifically, we calculate the average point-to-point distance P i−c−1
gt
11: ḡ ← t=i−c−k . the staying location
from the time t − τ to the time t + τ : 12:
k
append (ḡ, (ts , te )) to ~
s
Pt+τ 13:
d(gia , gib ) c←0 . re-count consecutive (0, 0)
d = i=t−τ
¯ (4) 14: return ~
s . staying locations and associated time
2τ + 1
If the average distance d¯ is below θd , cow A and cow B Using Algorithm 1, we obtain staying locations and as-
interacts with each other at time t. Let va and vb represent sociated time information s~a and s~b for cow A and cow
the vertices of cow A and B in G. Then edge (va , vb ) and B respectively. Next, we present how to identify indirect
(vb , va ) are added into G. If cow contacts are observed for n interactions and how to add corresponding weighted directed
times among the T time steps, we set wva ,vb and wvb ,va as n. edges in cow social graph G based on s~a and s~a . Similar to the
Indirect Contact Model: Direct contact requires two cows direct contact model, we use vertices va and vb to represent
to stay physically near enough at the same time step. However, cow A and cow B in G. Then we propose a threshold θc
cow living environments also play a key role in the transmis- to determine whether staying locations of two cows are close
sion of infectious diseases. For example, a sick cow A stays enough for disease transmission. A directed edge (va , vb ) with
2327-4662 (c) 2021 IEEE. Personal use is 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/JIOT.2021.3122341, IEEE Internet of
Things Journal
IEEE INTERNET OF THINGS JOURNAL, VOL. XX, NO. XX, XXXX XXXX 5
a weight of wva ,vb will be added to the social graph G when Algorithm 3 Propagation Model
the staying location distance between cow A and cow B are 1: procedure D ISEASE T RANSMISSION(G, ~ V, V 0 , r)
2: for each vi in V do . all cows
below θc and cow A comes first. The wva ,vb is estimated by 3: if vi ∈ V 0 then . sick cows
cow A’s staying duration tae −tas and the time interval between 4: p0v ← 1
i
. initialize prob. of sick cows as 1
the departure of cow A and the arrival of cow B, i.e., tbs − tae . 5: else . healthy cows
6: p0v ← 0 . initialize prob. of healthy cows as 0
i
We also introduce an environment-based disease transmission 7: for t = 0 → |G| ~ − 1 do . update prob. over time
probability decay rate ρ to estimate the weight as: 8: for each (vi , vj ) in Gt do
9: pt+1
vj = ptv + (1 − ptv ) ∗ ptv ∗ wvi ,vj ∗ r
j j i
b a 0 ~
wva ,vb = (tae − tas )e−ρ(ts −te ) (5) P V = {p|vG| |vi ∈ V }
i
V0
10: return P . infection prob. of all cows at time T
where tas (tbs )
and tae (tbe )
are the start and end staying
time of cow A (cow B). The definition of wva ,vb keeps
0
consistent with the two following facts: (i) a longer staying V } where PvVj is the infection probability of cow vj given cow
of cow A leads to a higher infection probability for cow B, vi is sick. Then we calculate the average infection probability
and (ii) the environment-based infectivity decreases over time. p̄vi of cow vi with the assumption that each cow is sick at the
More details of identifying indirect contacts are illustrated in beginning. Finally, we rank p̄ = {p̄vi |vi ∈ V } in descending
Algorithm 2. order and suggest cows for further screening. Algorithm 4
shows more details of generating the recommended cow list.
Algorithm 2 Identify Indirect Contact
1: procedure I NDIRECT C ONTACT(s~a , s~b , G, θc , ρ) Algorithm 4 Generate Screening List
2: for each sa in s~a do
3: for each sb in s~b do 1: procedure G ENERATE S CREEN L IST(G,~ V, r)
4: (g a , (ta a
s , te )) ← sa . staying info. for cow A 2: for each vi in V do . calculate prob. if cow vi is sick
5: (g b , (tbs , tbe )) ← sb . staying info. for cow B 3: V 0 = {vi } . cow vi is sick at time t = 0
0
6: if d(g a , g b ) < θc then . indirect contact exists 4: P V ← DiseaseT ransmission(G, ~ V, V 0 , r)
7: if tae <= ts then
b
. cow B follows cow A 5: for each vi in V do . iterate each cow
b
a −ρ(ts −te )a
8: wva ,vb ← (ta e − ts )e
6: sum = 0
9: add edge (va , vb ) with wva ,vb to G 7: for each vj in V do . iterate each sick cow
10: else . cow A follows cow B 8: V 0 = {vj } . cow vj is sick at time t = 0
a b 0
11: wvb ,va ← (tbe − tbs )e−ρ(ts −te ) 9: sum = sum + PvV . add corresponding prob.
i
12: add edge (vb , va ) with wvb ,va to G 10: p̄vi = sum . average final probability of cow vi
|V |
13: return G . return updated social behavioral graph
11: sort p̄ = {p̄vi |vi ∈ V } by value descending
12: return p̄ . infection prob. at time T for all cows
2327-4662 (c) 2021 IEEE. Personal use is 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/JIOT.2021.3122341, IEEE Internet of
Things Journal
IEEE INTERNET OF THINGS JOURNAL, VOL. XX, NO. XX, XXXX XXXX 6
Percentage (%)
Percentage (%)
80 80
information. For an edge (vi , vj ) in cow social graph G, we PDF PDF
60 CDF 60 CDF
generate a random number x ∈ [0, 1]. If x is smaller than EHPE = 5m EHPE = 5m
40 EHPE = 3m 40 EHPE = 3m
the transmission probability r and cow vi has been infected,
20 20
the status of cow vj will be set as infected. Otherwise, the
0 0
status of cow vj keeps unchanged. For each initialized setting, 0 2 4 6 8 10 0 2 4 6 8 10
e.g., assumed sick cows and infection probabilities, we run the EHPE (meter) EHPE (meter)
(a) i-gotU GT-600 (b) iTrail Logger H6000
simulator for a large number of rounds. Then we calculate the
average infection probabilities of each cow using the number Fig. 3. EHPE distributions of i-gotU GT-600 and iTrail Logger H6000 GPS
devices. More than 98.56% collected location data have an EHPE within 3
of infected status over the total number of running iterations. meters, and 99.68% within 5 meters.
2327-4662 (c) 2021 IEEE. Personal use is 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/JIOT.2021.3122341, IEEE Internet of
Things Journal
IEEE INTERNET OF THINGS JOURNAL, VOL. XX, NO. XX, XXXX XXXX 7
0.025
# sick cow = 1, r = 0.0001 2 4 6
Distance threshold
8
in meter
10 1e-07 5e-07 1e-06 5e-06 1e-05 5e-05 1e-04 5e-04 1e-03
Transmission probability r
0.020 # sick cow = 1, r = 0.0002 (a) Different θd and r = 0.0001
d
# sick cow = 2, r = 0.0002 Fig. 5. Infection probabilities of each cow to suggest screening priorities
0.010 when sick cows are unknown (All → pen x). We set indirect contact distance
threshold θc = 1 and the decay rate ρ = 0.01.
0.005
1.0
0.000 10 100 1000 10000
pen1_1
pen3_1
pen11_1
pen11_1
1.0 pen1_1
pen3_1
pen11_1
pen11_1
Simulation rounds 0.8
pen4_1
pen7_1
pen8_1
pen11_1
pen11_1
pen11_1
0.8
pen4_1
pen7_1
pen8_1
pen11_1
pen11_1
pen11_1
Infection probability
Infection probability
pen11_2 pen11_1 pen11_2 pen11_1
0.6 pen11_3 pen11_1 0.6 pen11_3 pen11_1
Fig. 4. RMSE between simulated and theoretical results with different number pen11_4 pen11_1 pen11_4 pen11_1
of assumed infected cows and transmission probabilities. We set θd = 5, 0.4 0.4
θc = 1, ρ = 0.01, and disease transmission probability r = 0.0001.
0.2 0.2
2327-4662 (c) 2021 IEEE. Personal use is 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/JIOT.2021.3122341, IEEE Internet of
Things Journal
IEEE INTERNET OF THINGS JOURNAL, VOL. XX, NO. XX, XXXX XXXX 8
0.8
pen8_1
pen8_1
pen4_1
pen7_1 0.8
pen8_1
pen8_1
pen4_1
pen7_1
Computers and Electronics in Agriculture, vol. 118, pp. 66–84, 2015.
pen8_1 pen7_2 pen8_1 pen7_2
Infection probability
Infection probability
pen8_1 pen7_3 pen8_1 pen7_3 [14] P. Tripicchio, M. Satler, G. Dabisias, E. Ruffaldi, and C. A. Avizzano,
pen8_1 pen7_4 pen8_1 pen7_4
0.6 pen8_1
pen8_1
pen8_2
pen8_3
0.6 pen8_1
pen8_1
pen8_2
pen8_3
“Towards smart farming and sustainable agriculture with drones,” in
pen8_1 pen8_4 pen8_1 pen8_4
pen8_1 pen11_1 pen8_1 pen11_1 2015 International Conference on Intelligent Environments, pp. 140–
0.4 pen8_1 pen11_2 0.4 pen8_1 pen11_2
pen8_1
pen8_1
pen11_3
pen11_4
pen8_1
pen8_1
pen11_3
pen11_4
143, IEEE, 2015.
0.2 0.2
[15] P. Lottes, R. Khanna, J. Pfeifer, R. Siegwart, and C. Stachniss, “Uav-
based crop and weed classification for smart farming,” in 2017 IEEE In-
0.0 0.0 ternational Conference on Robotics and Automation (ICRA), pp. 3024–
2 4 6 8 10 1e-07 5e-07 1e-06 5e-06 1e-05 5e-05 1e-04 5e-04 1e-03 3031, IEEE, 2017.
Distance threshold d in meter Transmission probability r
[16] T. Moribe, H. Okada, K. Kobayashl, and M. Katayama, “Combination
(a) Different θd and r = 0.0001 (b) Different r and θd = 5 of a wireless sensor network and drone using infrared thermometers for
Fig. 7. Infection probabilities of other cows when pen8 1 was diagnosed with smart agriculture,” in 2018 15th IEEE Annual Consumer Communica-
mastitis (pen8 1 → pen x). We set θc = 1 and the decay rate ρ = 0.01. tions & Networking Conference (CCNC), pp. 1–2, IEEE, 2018.
[17] U. R. Mogili and B. Deepak, “Review on application of drone systems
data are filtered out by GPS hardware-reported errors. Then in precision agriculture,” Procedia computer science, vol. 133, pp. 502–
509, 2018.
we propose configurable directed and weighted social be- [18] M. S. Farooq, S. Riaz, A. Abid, K. Abid, and M. A. Naeem, “A survey
havior graphs, based on which we develop a probabilistic on the role of iot in agriculture for the implementation of smart farming,”
disease transmission model to forecast and detect cows with IEEE Access, vol. 7, pp. 156237–156271, 2019.
[19] J. M. Talavera, L. E. Tobón, J. A. Gómez, M. A. Culman, J. M. Aranda,
a high infection risk for further screening. Both theoretical D. T. Parra, L. A. Quiroz, A. Hoyos, and L. E. Garreta, “Review of iot
and simulation-based analytics of in-the-field experimental applications in agro-industrial and environmental fields,” Computers and
data demonstrate that the proposed framework is useful and Electronics in Agriculture, vol. 142, pp. 283–297, 2017.
[20] B. Keswani, A. G. Mohapatra, A. Mohanty, A. Khanna, J. J. Rodrigues,
effective. Finally, additional SCC based tests demonstrate that D. Gupta, and V. H. C. de Albuquerque, “Adapting weather conditions
our approach achieves consistent results on predicting infected based iot enabled smart irrigation technique in precision agriculture
cows with the ground truth results. mechanisms,” Neural Computing and Applications, vol. 31, no. 1,
pp. 277–292, 2019.
ACKNOWLEDGEMENT [21] S. Zhang, X. Chen, and S. Wang, “Research on the monitoring system of
wheat diseases, pests and weeds based on iot,” in 2014 9th International
This work was supported by the US NSF CPS/USDA NIFA Conference on Computer Science & Education, pp. 981–985, IEEE,
(Grant No. 2017-67007-26150). 2014.
R EFERENCES [22] T. F. Khan and D. S. Kumar, “Ambient crop field monitoring for
improving context based agricultural by mobile sink in wsn,” Journal
[1] A. Villarroel, D. A. Dargatz, V. M. Lane, B. J. McCluskey, and of Ambient Intelligence and Humanized Computing, vol. 11, no. 4,
M. D. Salman, “Suggested outline of potential critical control points pp. 1431–1439, 2020.
for biosecurity and biocontainment on large dairy farms,” Journal of the [23] X. Shi, X. An, Q. Zhao, H. Liu, L. Xia, X. Sun, and Y. Guo, “State-
American Veterinary Medical Association, vol. 230, no. 6, pp. 808–819, of-the-art internet of things in protected agriculture,” Sensors, vol. 19,
2007. no. 8, p. 1833, 2019.
[2] F. Maunsell and G. A. Donovan, “Biosecurity and risk management for [24] K. Saravanan and S. Saraniya, “Cloud iot based novel livestock moni-
dairy replacements,” Veterinary Clinics of North America: Food Animal toring and identification system using uid,” Sensor Review, 2018.
Practice, vol. 24, no. 1, pp. 155–190, 2008. [25] A. Schepers, T. Lam, Y. Schukken, J. Wilmink, and W. Hanekamp,
[3] H. Seegers, C. Fourichon, and F. Beaudeau, “Production effects related “Estimation of variance components for somatic cell counts to determine
to mastitis and mastitis economics in dairy cattle herds,” Veterinary thresholds for uninfected quarters,” Journal of Dairy Science, vol. 80,
research, vol. 34, no. 5, pp. 475–491, 2003. no. 8, pp. 1833–1840, 1997.
[4] H. Barkema, Y. Schukken, T. Lam, M. Beiboer, H. Wilmink, G. Benedic- [26] C. Viguier, S. Arora, N. Gilmartin, K. Welbeck, and R. OKennedy,
tus, and A. Brand, “Incidence of clinical mastitis in dairy herds grouped “Mastitis detection: current trends and future perspectives,” Trends in
in three categories by bulk milk somatic cell counts,” Journal of dairy biotechnology, vol. 27, no. 8, pp. 486–493, 2009.
science, vol. 81, no. 2, pp. 411–419, 1998. [27] B. K. Bansal, J. Hamann, N. T. Grabowski, and K. B. Singh, “Variation
[5] M. Green, L. Green, Y. Schukken, A. Bradley, E. Peeler, H. Barkema, in the composition of selected milk fraction samples from healthy and
Y. De Haas, V. Collis, and G. Medley, “Somatic cell count distributions mastitic quarters, and its significance for mastitis diagnosis,” Journal of
during lactation predict clinical mastitis,” Journal of Dairy Science, Dairy Research, vol. 72, no. 2, pp. 144–152, 2005.
vol. 87, no. 5, pp. 1256–1264, 2004. [28] C. Le Maréchal, R. Thiéry, E. Vautor, and Y. Le Loir, “Mastitis impact on
[6] M. Ayaz, M. Ammad-Uddin, Z. Sharif, A. Mansour, and E. M. Aggoune, technological properties of milk and quality of milk productsa review,”
“Internet-of-things (iot)-based smart agriculture: Toward making the Dairy Science & Technology, vol. 91, no. 3, pp. 247–282, 2011.
fields talk,” IEEE Access, vol. 7, pp. 129551–129583, 2019. [29] E. Bendixen, M. Danielsen, K. Hollung, E. Gianazza, and I. Miller,
[7] K. Haseeb, I. U. Din, A. Almogren, and N. Islam, “An energy efficient “Farm animal proteomicsa review,” Journal of proteomics, vol. 74, no. 3,
and secure iot-based WSN framework: An application to smart agricul- pp. 282–293, 2011.
ture,” Sensors, vol. 20, no. 7, p. 2081, 2020. [30] C. Michie, I. Andonovic, C. Davison, A. Hamilton, C. Tachtatzis,
[8] C. Krintz, R. Wolski, N. Golubovic, B. Lampel, V. Kulkarni, B. Sethura- N. Jonsson, C.-A. Duthie, J. Bowen, and M. Gilroy, “The internet
masamyraja, B. Roberts, and B. Liu, “Smartfarm: Improving agriculture of things enhancing animal welfare and farm operational efficiency,”
sustainability using modern information technology,” in KDD Workshop Journal of Dairy Research, vol. 87, no. S1, pp. 20–27, 2020.
on Data Science for Food, Energy, and Water, 2016. [31] O. Unold, M. Nikodem, M. Piasecki, K. Szyc, H. Maciejewski, M. Baw-
[9] C. Corbari, R. Salerno, A. Ceppi, V. Telesca, and M. Mancini, “Smart iec, P. Dobrowolski, and M. Zdunek, “Iot-based cow health monitor-
irrigation forecast using satellite landsat data and meteo-hydrological ing system,” in International Conference on Computational Science,
modeling,” Agricultural Water Management, vol. 212, pp. 283–294, pp. 344–356, Springer, 2020.
2019. [32] G. Morris and L. M. Conner, “Assessment of accuracy, fix success rate,
[10] H. Gan and W. Lee, “Development of a navigation system for a smart and use of estimated horizontal position error (ehpe) to filter inaccurate
farm,” IFAC-PapersOnLine, vol. 51, no. 17, pp. 1–4, 2018. data collected by a common commercially available gps logger,” PloS
[11] N. V. Reddy, A. Reddy, S. Pranavadithya, and J. J. Kumar, “A critical one, vol. 12, no. 11, 2017.
review on agricultural robots,” International Journal of Mechanical [33] G. Pighetti, S. Piper, and K. H. Campbell, Using DHI Reports to
Engineering and Technology, vol. 7, no. 4, pp. 183–188, 2016. Troubleshoot Mastitis, 2019.
[12] D. J. Mulla, “Twenty five years of remote sensing in precision agri-
culture: Key advances and remaining knowledge gaps,” Biosystems
engineering, vol. 114, no. 4, pp. 358–371, 2013.
2327-4662 (c) 2021 IEEE. Personal use is permitted, but republication/redistribution requires IEEE permission. See http://www.ieee.org/publications_standards/publications/rights/index.html for more information.