Table 1: Average precision and root mean square error for
each method and for the still object of section 2.1. µ
m
: av-
erage precision, σ
m
: standard deviation, T
rms
: root mean
square error.
Method µ
m
(σ
m
) (
◦
C) T
rms
(
◦
C)
Still object (section 2.1) 0.021(0.026)
Ground truth 0.079(0.100) 0.000
Mean-Shift A
size
= 10 1.212(1.661) 4.601
Mean-Shift A
size
= 20 0.093(0.159) 0.110
Mean-Shift A
size
= 30 0.090(0.129) 0.107
Mean-Shift A
size
= 40 0.094(0.140) 0.144
tion of the center of the shaved area. If A
size
is selected
too large, the tracker will be distracted very often by
the head of the rat. Thus, the measurement is not reli-
able (A
size
= 40). Recall that the head is not a good re-
gion to track becauseit suffers morefrom LPF record-
ing device occlusion and from occlusions by the rat’s
body. Furthermore, when the tracker jumps from the
patch to the head, there is a measurement error since
they are not at the same temperature.
Table 1 also gives the average precision and stan-
dard deviation based on a regression with a polyno-
mial assuming smooth changes in temperature. Com-
pared to ground truth, our Mean-Shift tracker with
A
size
= 30 has an average precision about 15% larger
and standard deviation about 30% larger. Precision is
not too far from the ground truth data, but measures
are noisier because of tracking errors. Interestingly,
the ground truth precision is larger than the average
precision obtained for a still object. At this point, we
may hypothesize that it is because the shaved area is
deformable and its normal is not always aligned with
the camera sensor’s normal. Hence, the infrared radi-
ation measured by the camera changes with the angle
of the shaved area. Furthermore, as the shaved area
is deformable, the skin thickness may vary regularly
as it stretches depending on the rat position and atti-
tude. Another possibility is that seizure events cause
temperature changes that violate the smoothness con-
straints and increase the fitting error. We will test a rat
in a control condition (without kainic acid) to verify
the attainable precision with a moving target. Given
these results with our equipment, capture setup, and
assuming smooth temperature change, we can expect
to observe phenomena that cause sudden temperature
changes over a few frames larger than 0.2
◦
C.
Tracking results couldbe improvedtowardground
truth by either improving tracking or by filtering the
temperature values. To improve tracking, the focus
should be to reduce distraction by other warm areas
such as the head. This could be accomplished by ac-
counting for the trajectory of the shaved patch and us-
ing a smoothness constraint. Severe occlusions and
large position changes could be filtered using the pre-
Table 2: Computation times of the Mean-Shift tracker for
the test video sequence (1h57, 90706 frames).
Method Time (s) Frames/s
Mean-Shift A
size
= 10 16100 5.6
Mean-Shift A
size
= 20 15854 5.7
Mean-Shift A
size
= 30 16365 5.5
Mean-Shift A
size
= 40 16087 5.6
vious and following frames over a time window. A
higher frame rate would also reduce the occurrence
of large position changes.
Table 2 shows the computation times required to
process the whole test sequence using MATLAB on
a Opteron 250 2.4 GHz computer (Advanced Mi-
cro Devices, Sunnyvale, CA, USA). We can process
approximately 5.6 frames/s. The processing time is
mostly constant for the tested values of A
size
. This is
because the processing time is related to convergence
of the Mean-Shift procedure (step 5 in section 2.2)
more than to processing a larger number of pixels in
area A.
4 CONCLUSIONS
This paper presented a methodology to measure the
body temperature of a moving animal in a laboratory
setting. Because of the experimental setup, uneven
thickness of the fur with viewpoint and the possibil-
ity of occlusion, we have concluded that we needed
to shave a region on the back of the rat. Since the
head and this shaved region can have different tem-
peratures, tracking is required to measure temperature
on the same body region continuously. We proposed
a Mean-Shift tracker based on the probability density
function of the temperature of a manually selected
area.
Our method was tested on a 2-hour video se-
quence with a rat having seizures at regular intervals.
Results show that our tracker achieves measurements
with an RMS error of 0.1
◦
C. Errors are caused by se-
vere occlusions or by distracting warm regions such
as the head. Although we estimate we can observe
phenomena causing changes of more than 0.2
◦
C, we
do not obtain a precision similar to a still object. Part
of this difference with camera precision is caused by
the tracker, while another part is caused by other rea-
sons. We hypothesize that changes in the orientation
of the measured surface cause measurement errors, so
it may not be possible to attain the precision obtained
on a still object. Furthermore, in the test video, tem-
perature changes may not be smooth and they may
increase the fitting error by a polynomial.
THERMOGRAPHIC BODY TEMPERATURE MEASUREMENT USING A MEAN-SHIFT TRACKER
23