EthoVision XT 19 - Activity state
Last updated: Jul 29, 2026
Activity State
The dependent variable Activity state is only available when you selected Activity analysis in the Experiment Settings and you track only one subject per arena. With Activity state you can calculate how long and how frequent your subject has been in different activity states. These states depend on the total pixel change within the arena between a sample and the previous sample. The number of states and their thresholds are user-defined.
When the subject goes missing for more than three samples, the current Activity state is ended and the remaining missing samples are ignored.
Calculation
Step 1 - Calculation of Proportion of Pixel Change
All pixel coordinates in the arena, so not only of the detected subject, are determined immediately after they have been detected. The gray scale values of all pixels are compared with the previous sample to determine the number of changed pixels in the arena between the two. The formula for Activity is simply the number of changed pixels for the current sample k divided by the total number of pixels in the arena.
Activity is calculated by taking every pixel and comparing it between the current image and the previous one. If all the pixels are the same, there is zero activity. If all the pixels are different, there is 100% activity. If the animal is moving and increases its velocity (whilst keeping the same shape) there will be an increase in activity, because the pixels belonging to the animal are increasingly different as it moves faster.
Step 2 - Running Average
To smooth the values of Activity, an Averaging interval is used. This gives you the option to specify the number of samples for calculating a running average of Activity. The Activity percentage is summed over the number of samples that you specify, and divided by the number of samples. This way, sudden changes in surface area caused by such factors as the animal entering a shadowed area, or a reflection, are smoothed out.
NOTE When you export the dependent variable, each row in the export file contains the Activity value, but not the averaging interval.
Step 3 - Calculation of the Activity State Dependent Variable
The Activity state variable is established for each sample, according to the value of running average Activity relative to the thresholds. You can define between two and four states, varying from Inactive (below the lowest threshold) to Highly active (above the highest threshold).
How to Specify Activity State
To find the optimal activity thresholds, run a few test trials and check in the Analysis Results and Scoring pane the values of Activity when the animal shows such behavior. These values are calculated real-time during acquisition. See an example in Fear conditioning: view Activity state.
Notes
- IMPORTANT The Activity detection thresholds set in Acquisition are not used in analysis. When you specify Activity in your Analysis profile, enter the new values in the appropriate fields.
- In some cases the number of samples available for smoothing can be less than the averaging interval entered. For example, when there are missing samples or at the beginning of the track. In such cases EthoVision XT uses the samples available in the specified interval. For example, the value of Activity for the first sample of the track is always calculated over one sample.
- You set the thresholds during acquisition, but you can override them when calculating statistics to produce new values for Activity state. To see what the original values of Activity state thresholds were (unless you have changed them while acquiring data), open the Acquisition module and click the button under Activity in the Analysis results and Scoring pane.
Source: EthoVision XT 19 Help, Noldus Information Technology