Académique Documents
Professionnel Documents
Culture Documents
China-EU Center for Information and Communication Technologies in Agriculture, China Agricultural University, Beijing 100083, PR China
Beijing Engineering and Technology Research Center for Internet of Things in Agriculture, China Agricultural University, Beijing 100083, PR China
c
Key Laboratory of Agricultural Information Acquisition Technology, Ministry of Agriculture, Beijing 100083, PR China
d
College of Information and Electrical Engineering, Ludong University, Yantai 264025, PR China
b
a r t i c l e
i n f o
Article history:
Received 11 February 2013
Received in revised form 1 May 2014
Accepted 7 May 2014
Keywords:
Chinese mitten crabs
Behavioral analysis
Tracking
Particle lter
a b s t r a c t
The behavioral patterns of crabs affect the quality and quantity of their production. Currently there are no
methods to track behavioral patterns using imaging-based algorithms. This study provides a precise
pathway tracking method for the research of the relationship between behavioral patterns of crabs
and their living environment. The Particle Filter algorithm is an appropriate framework to handle nonGaussian movement, the biological constraints are used to decrease the computational complexity and
improve the accuracy of tracking the crabs pathways and a biological probe is utilized to determine
the area of movement. Then, this newly determined area replaces the entire image frame as the search
space to reduce the complexity of the computation. In the resampling step, a traditional Gaussian particle
distribution is substituted by a fusiform particle distribution, which better matches the crabs biological
motion patterns, to represent the probability of the crab movement. This strategy allows the crab
positions to be covered using fewer particles, which is more accurate for analyzing abrupt motion or
long-term stationary situations than traditional particle distributions. To determine the robustness and
accuracy of the results, 3000 and 12,000 frames were used, respectively. The coverage ratio and accuracy
increased by 28.79% and 5.75%, respectively, compared with the color histogram-based particle lter
(CHPF) and by 69.57% and 37.66% compared with the ssion bootstrap particle lter (FBPF). The experimental results show that the proposed tracking method is feasible and can be used as an efcient tool to
get the pathway of crabs under water.
2014 Elsevier B.V. All rights reserved.
1. Introduction
Chinese mitten crabs are widely harvested crustaceans in China,
with production reaching approximately 650,000 tons in 2010
(FAO, 2010). To increase the quantity and improve the quality of
crabs, intensive and automatic aquaculture strategies are needed.
However, further improvement in the crab aquaculture is limited
by insufcient knowledge of crab behavior. Understanding the
relationships between different crab behaviors and water quality
factors such as dissolved oxygen (DO) and pH is important (Chen,
2007). Therefore, behavioral analysis methods and tracking platforms are required to analyze the crab activity, aiding researchers
determine the relationships between different behaviors and the
environmental drivers in the crab water habitat.
Corresponding author. Address: P. O. Box 121, China Agricultural University, 17
Tsinghua East Road, Beijing 100083, PR China. Tel.: +86 10 62737679; fax: +86 10
62737741.
E-mail address: dliangl@cau.edu.cn (D. Li).
http://dx.doi.org/10.1016/j.compag.2014.05.013
0168-1699/ 2014 Elsevier B.V. All rights reserved.
112
and reduce the tracking errors accumulated in each particle matching iteration.
2. Materials and methods
2.1. Chinese mitten crab behavioral analysis platform
An automated Chinese mitten crab behavioral analysis platform
based on 2-D computer vision technology was designed consisting
of ve parts, including an enclosed box, a uorescent lamp (T5HO
47W, GE Lighting, U.S.), a water tank, a water-cycling device
(HW303B, Sunsun Corporation, P.R. China), a CCD (DH-HV3151UC,
Daheng Imaging Corporation, P.R. China) color camera, and a host
computer (Fig. 1). The enclosed box blocks out any external interference, such as luminance or noise. The uorescent lamps boost
the lighting conditions to improve the quality of the video
sequences captured in our articially closed environment. The
water-cycling device ensures the water purity and keeps the water
temperature stable.
A CCD color camera is positioned on the top of the water tank to
acquire video data. The data are transmitted to the host computer
through a USB interface. The host computer used for image processing was built around an Intel Core i5 CPU with a 2.8 GHz processor and 4 GB of RAM, running Windows 7 Service Pack 1 (SP1)
with Visual Studio 2010. The Open CV 2.4 library is utilized as
the video processing framework.
2.2. Video acquisition
Our study monitored Chinese mitten crabs obtained from Yixing, Jiangsu Province, which is one of the main breeding areas in
China. More than 33 h of video sequences used in the experiment
were captured by the CCD color camera with a frame resolution
of 720 540 at 20 frames per second (fps). To capture high-quality
video sequences, the water in the tank was approximately 10 cm
depth, with the bottom of the tank covered by white marble sand
to create uniform background thus eliminate problems caused by
shadow or reection of the glass materials and background complexity. Each video contains the motions of four mature crabs
(Fig. 2), however the BCPF was applied to motions of individual
crabs, because multiple object tracking is beyond the scope of
research presented herein.
2.3. Dynamic model for crab tracking
Crab video tracking is regarded as a Bayesian estimation problem and a representative dynamic state model needs to be dened
prior processing the video data. The crab shell is used to represent
the entire crab, which means that claws and legs are ignored during the tracking.
Eq. (1) represents the state vector of a single crab in the non-linear dynamic state space:
X t xt ; yt ; W t ; Ht
in which t denotes the frame number. The term (xt, yt) denotes the
middle point coordinate of the target region (rectangle in ourcase)
in which the targets color histogram and object template are computed. The terms Wt and Ht denote the width and height of the track
region, respectively. The particles are predicted in accordance with
the second-order autoregressive dynamics of a random walk as
shown by Eq. (2):
X t A0 X t1 X 0 A1 X t2 X 0 X 0 B wt
in which X0 represents the initial state of the crab tracker A0, A1, and
B are the coefcients dened by 2.0, 1.0, and 1.0, respectively; and
113
w denotes the process noise, which is assumed to be white, zeromean and Gaussian (Cheng and Zhang, 2008).
2.4. Color histogram-based particle lter
Particle lter algorithms are sequential Monte Carlo techniques
specically designed for sequential Bayesian estimation when the
systems are non-linear and their random elements are non-Gaussian (Gordon et al., 1993). In general, it uses amount of sample
points (particles) to describe potential positions of the object in
the search space, and the particle most similar to the object is considered as the position of the object. The color histogram-based
particle lter (CHPF) consists of three steps described as follows
and run recursively (Fig. 3a):
Step 1: Initialization
Particle lters approximate the posterior density using a
weighted set of stochastic samples, namely distribution of particles
randomly according to the selected object tracker, when the frame
number is 0.
Dt
r
XN q
j j
1
h0 ht
j1
j
nweightt
Z
XN
j1
1
j
weightt
Z
j
weightt
4
5
Because traditional particle transitions follow a Gaussian distribution, a sufcient number of particles need to be generated in
each iteration to represent the target. Furthermore, due to the exibility of the color feature under different circumstances, the particles cannot be translated accurately. Some particle lter methods
with other accurate and robust features are more computationally
complex. To achieve both accuracy and low-complexity computations, the biological constraints of the crabs are utilized. This strategy can amend the accumulated errors caused by color histogrambased function.
114
Fig. 3. Flow chart of the processing procedure for crab tracking: (a) typical color histogram based particle lter and (b) the biological constraints based particle lter (BCPF).
T 0 i ; j Ti ; j
0
w h
0
1
P
i00 ;j00 Ti
00
00
;j
F 0 i i ; j j Fi i ; j j
w h
i00 ;j00 Fi
00
00
i ;jj
x; y arg maxRi; j
10
Consequently, Eq. (11) utilizes the obtained positional information to adjust all particle positions prior to the next transition
procedure.
11
P
0
0
0 0 0
0
i0 ;j0 T i ; j F i i ; j j
q
Ri; j P
P
0
0 2
0 0 0 2
0
i0 ;j0 T i ; j
i0 ;j0 F i i ; j j
(i, j) as the midpoint with the width and the height similar to the
tracker. The term T represents the target template. Eq. (10) can be
used to calculate the maximum relative x and y coordinates.
The SIS method reduces particle diversity, and tracking accuracy signicantly. To handle the deciency in the particle variety
caused by resampling, the typical particle lters are applied as
the new resampling strategies mentioned in Section 1 can increase
the diversity of trajectories by directly increasing the number of
particles or by indirectly smoothing the particle distribution. However, crab activity differs from that of humans through characteristics such as abrupt changes in the direction of movement.
Therefore, these methods cannot be adapted to our tracking
strategy.
The biological clues (movement direction and patterns), as a
new resampling rule, were applied to simultaneously maintain
the particle variety and smooth distribution. The crab motions
can be classied in two types: rotation and translation. Rotation
activities cause a change in the direction, and translation activities
lead to a change in position.
Only translational activities can cause a crabs position to
change and can affect the particle distribution. In addition, unless
it moves in a circular motion, a crab can only move along a straight
line. Therefore, translation without rotation cannot lead to directional change except a linear directional change: from start to
end or vice versa. Considering these biological motion characteristics, we assume that the crab tracked in our algorithm can move in
115
8
>
< xp;old ; yp;old dx ; dy ; Rx; y P 0:8
xp;new ; yp;new xp;old ; yp;old ;
Rx; y < 0:8
>
:
Fig. 4. Biological movement direction assumption: (a) eight-direction encoded
activity sketch map and (b) example of biological direction based particle
distribution.
directionp;t
xp;t xp;t1
GetDirection
yp;t yp;t1
!
12
13
Rcov erage
Scit
Scs
14
where Rcoverage is the coverage ratio between the areas in which the
crabs appear in the tracker calculated by algorithms and labeled by
humans. The term Scit is the area in which the crabs appear in the
tracker, and Scs is the manually outlined area of the standard. More
target pixels covered in the tracker, namely a higher coverage ratio,
indicates that more information regarding the target is obtained by
the tracker. Therefore, higher the ratio, the more accurate position
obtained.
Eqs. (15) and (16) are used to calculate the deviation between
the position obtained via tracking algorithms and those marked
by humans:
Dev t
q
xtr;t xsd;t 2 ytr;t ysd;t 2
8
>
< 1;
Accuracyt 0;
>
:
15
Dev t < r
Dev t P r
16
Fig. 5. Procedure of biological constraints based probe and resampling, including initialization, tracker matching, probe amendment, movement direction calculation, and
resampling distribution.
116
Table 1
Frame coverage ratio of Fig. 6 calculated with two typical particle lters and the BCPF.
Frame
number
Coverage ratio
(CHPF) (%)
Coverage ratio
(FBPF) (%)
Coverage ratio
(BCPF) (%)
1
20
120
160
240
100.00
94.33
78.62
76.33
81.97
100.00
84.17
98.27
93.45
87.13
100.00
100.00
100.00
100.00
100.00
Fig. 6. Representative results of target covered in tracker of two typical particle lters and probe amendment for long stationary condition. (a), (b) and (c) are results of BCPF,
FBPF and CHPF respectively.
117
Fig. 7. Representative results of target covered in tracker of two typical particle lters and probe amendment for movement condition. (a), (b) and (c) are results of BCPF, FBPF
and CHPF respectively.
Table 2
Frame coverage ratio of Fig. 7 calculated with two typical particle lters and the BCPF.
Frame
number
Coverage ratio
(CHPF) (%)
Coverage ratio
(FBPF) (%)
Coverage ratio
(BCPF) (%)
1
40
175
220
235
100.00
92.58
81.77
90.30
80.63
100.00
97.31
93.68
70.09
53.94
100.00
100.00
100.00
100.00
100.00
Table 3
Minimum, maximum and average coverage ratios of 3000 selected frames.
Algorithm
Minimum coverage
ratio (%)
Maximum coverage
ratio (%)
Average coverage
ratio (%)
CHPF
FBPF
BCPF
19.33
68.09
86.97
100
100
100
65.39
88.43
94.18
Fig. 9. Deviation of crab position tracked by CHPF, FBPF and BCPF in rapid
movement video sequence.
activities. Therefore, the FBPF has higher accuracy than the CHPF
but lower one than the proposed method.
More specically, a proper and large resampling distribution
improves the accuracy of prediction of particle position. The
resampling distribution of our method is adaptively tted to the
natural patterns of crabs movement, e.g. crab more moves along
horizontal direction (Fig. 10). Therefore, our method always has
lower position deviation. On the contrary, the CHPF and the FBPF
only provide Gaussian distribution resampling. Both of them have
much higher tracking error. However, the FBPF has lower position
deviation than the CHPF, as the size of area covered by FBPF is larger than that of the CHPF. The proposed method has much lower
position deviation than other two existing methods over all video
sequences (Table 4).
Fig. 8. Representative results of resampling of two typical particle lters and BCPF for rapid movement condition. The purple, the red and the yellow tracker represent results
of BCPF, FBPF and CHPF respectively. (For interpretation of the references to colour in this gure legend, the reader is referred to the web version of this article.)
118
Fig. 10. Particle distribution of different resampling strategy: (a) crab motion direction (b) resampling distribution of BCPF (c) resampling distribution of FBPF and (d)
resampling distribution of CHPF.
Table 4
Minimum, maximum and average deviation of tracker midpoint coordinates and
accuracy rate of tracking for 12,000 frames.
Algorithm
Minimum
deviation
Maximum
deviation
Average
deviation
Accuracy
rate (%)
CHPF
FBPF
BCPF
0
0
0
33.73
25
12.73
16.53
12.60
1.03
22.46
54.37
92.03
4. Conclusions
3.3.1. Template nullication
The sub-frame region has an intense light shadow or the target
template is deformable (Fig. 11a). Due to inability to match a
potential template region to a sub-frame, our probe strategy
degraded into a typical particle lter and had no effect on the
amendment.
The light problem is caused by the design of the experimental
platform and can be avoided by changing the position of the illuminant. The current light source is positioned at the top of experimental platform, and as the light propagates through water, it
increases in intensity. Given its exibility in installation location,
an LED light source could be used instead of the current uorescent
light, or a polarized light could be selected to solve the problem.
For the circular motion case, the number of calculations
increases signicantly in all directions if the rotation is considered
in the template matching stage. Because the template-matching
method can resist subtle circular motions of the crab movement,
it can be ignored to maintain a low level of computational
complexity. However, matching invalidation can occur under conditions of a large circular motion. Considering experiences with
tracking human movement, more motion cues are utilized as constraints for tracking crab movement to account for the rotation
without leading to increased computation.
Fig. 11. Deciency of our algorithm: (a) failure of template matching caused by
strong light disturbance and (b) failure of interactive activity.
119
Liu, T., Yuan, Z.J., Sun, J., Wang, J.D., Zheng, N.N., Tang, X.O., Shum, H.Y., 2011.
Learning to detect a salient object. IEEE Trans. Pattern Anal. Mach. Intell. 33 (2),
353367.
Menesatti, P., Aguzzi, J., Costa, C., Garca, J.A., Sard, F., 2009. A new morphometric
implemented video-image analysis protocol for the study of social modulation
in activity rhythms of marine organisms. J. Neurosci. Methods 184 (1), 161
168.
Punskaya, E., Andrieu, C., Doucet, A., Fitzgerald, W.J., 2001. Particle Filtering for
demodulation in fading channels with non-Gaussian additive noise. IEEE Trans.
Commun. 49 (4), 579582.
Veeraraghavan, A., Chellappa, R., Srinivasan, M., 2008. Shape and behavior encoded
tracking of bee dances. IEEE Trans. Pattern Anal. Mach. Intell. 30 (3), 463
476.
Yan, Y., Wang. J.L., Li, C.Z., Wu, Z.X., 2011. Object tracking using SIFT features in a
particle lter. IEEE International Conference on Communication Software and
Networks (ICCSN).
Zion, B., 2012. The use of computer vision technologies in aquaculture a review.
Comput. Electron. Agr. 88, 125132.