February 22, 2025 | 02:30 GMT +7

  • Click to copy
Tuesday- 11:20, 05/09/2023

Researchers test automatic detection of aggressive pig behaviour

(VAN) Researchers from China recently tested a hybrid model that combines a convolutional neural network and a gated recurrent unit to identify aggressive behaviour of group-housed pigs.

They also integrated a spatio-temporal attention mechanism in the model to improve the effect of aggressive behaviour recognition.

Researchers looked at agressive behaviour in group-housed pigs. Photo: Michel Velderman

Researchers looked at agressive behaviour in group-housed pigs. Photo: Michel Velderman

The convolutional neural network acted as a spatial feature extractor to learn appearance representations of behaviour in each individual video frame. The gated recurrent unit network functioned as a temporal feature extractor to learn motion representations of behaviour in a behaviour episode.

Data collection

The researchers defined aggressive behaviour of group-housed pigs as biting, knocking, trampling and chasing. They defined mounting, playing, lying, feeding, and drinking as non-aggressive behaviour. The team observed 541 video recordings of aggressive behaviour with a duration of 3 seconds, and 565 video recordings of non-aggressive behaviour with a duration of 3 seconds.

The researchers integrated the video frames to the model. Spatial feature extractors, integrated with a spatial attention mechanism extracted behavourial representations from each individual frame. The role of the spatial attention model is to improve the feature expression of local areas, thereby enhancing the feature expression of the area where aggressive behaviour occurs and weakening the feature expression of irrelevant areas. The temporal feature extractor integrating with a temporal attention mechanism extracted motion representations of behaviour from spatial features over different frames. The team identified aggressive and non-aggressive behaviour based on these features.

The effectiveness of models

The baseline model had the lowest recognition accuracy. However, adding the spatial attention mechanism improved the recognition accuracy in the test dataset by 2.2% and optimised the spatial feature extraction. Adding temporal attention improved the performance of the model compared to the baseline model, but it did not optimise the spatial feature extractor part. Integrating both spatial and temporal attention mechanisms to the model increased the recognition accuracy to 94.8%, proving that the spatio-temporal attention model is valid.

Hybrid model works best

The authors concluded that the variant model that combines spatial and temporal attention mechanisms in a hybrid model of convolutional neural network and gated recurrent unit has the best recognition performance, which proves the effectiveness of the model in this paper.

However, further research is required to clearly capture information such as the body parts used by pigs with aggressive behaviour with a multi-camera data collection method.

HD

(PP)

US paper industry asks Trump to seek lighter EU deforestation rules

US paper industry asks Trump to seek lighter EU deforestation rules

(VAN) Brussels already delayed the policy's launch by a year following complaints from trade partners including Brazil, Indonesia and the Biden administration in the United States.

Bird flu has been spreading undetected in cows and vets

Bird flu has been spreading undetected in cows and vets

(VAN) Avian influenza (H5N1) has been spreading in the United States among dairy cows since last year.

A vet’s view – 6 areas of risk when dealing with avian influenza

A vet’s view – 6 areas of risk when dealing with avian influenza

(VAN) The government has declared an all-England, Wales and Scotland avian influenza prevention zone (AIPZ) along with regional housing measures to protect the national flock as cases increase across Great Britain.

FAO ensures transparency and quality in measuring SDG 2 (Zero Hunger) Indicators

FAO ensures transparency and quality in measuring SDG 2 (Zero Hunger) Indicators

(VAN) Statement of the Food and Agriculture Organization of the United Nations.

Thailand expects fruit exports to reach 8.5 billion USD

Thailand expects fruit exports to reach 8.5 billion USD

(VAN) The Thai Ministry of Commerce recently held a signing ceremony for memorandums of understanding (MoUs) between Thai exporters and international buyers to boost fruit export value.

Bayer backs broadened effort to shield popular weedkiller from claims it failed to warn of cancer

Bayer backs broadened effort to shield popular weedkiller from claims it failed to warn of cancer

(VAN) A broader media campaign is highlighting the importance of glyphosate-based Roundup for American agriculture.

New UN report offers insights into how geospatial technology can advance the global food security agenda

New UN report offers insights into how geospatial technology can advance the global food security agenda

(VAN) FAO and UNOOSA emphasize importance of collaboration to make space technologies benefit small-scale farmers.

Read more