Publication history: Accepted - 5 October 2022; Published online - 22 October 2022Change in the frequency of contact between pigs within a group may be indicative of a change in the physiological or health status of one or more pigs within a group, or indicative of the occurrence of abnormal behaviour, e.g. tail-biting. Here, we developed a novel framework that detects and quantifies the frequency of interaction, i.e., a pig head to another pig rear, between pigs in groups. The method does not require individual pig tracking/identification and uses only inexpensive camera-based data capturing infrastructure. We modified the architecture of well-established deep learning models and further developed a lightweight processing stage that scan...