Skip to Content
You are currently on the new version of our website. Access the old version .
AnimalsAnimals
  • Article
  • Open Access

5 July 2026

21 Pages

Overcoming Data Scarcity: Few-Shot Pig Vocalization Recognition via Domain Expansion, Knowledge Transfer, and Feature Alignment

and
1
College of Electronic and Information Engineering, Huaibei Institute of Technology, Huaibei 235000, China
2
College of Command and Control Engineering, Army Engineering University of the People’s Liberation Army, Nanjing 210007, China
3
School of Information and Artificial Intelligence, Anhui Agricultural University, Hefei 230036, China
*
Author to whom correspondence should be addressed.
This article belongs to the Section Pigs

Simple Summary

Pig vocal sounds can help monitor animal state without disturbing the animals, but labelled recordings for specific behaviours or physiological states are often scarce. This study focused on few-shot recognition of five pig vocalization categories: eat, estrous, farrowing (fap), howl, and oink. We proposed PSA-AP, a pig-sound adaptation pipeline that converts audio into log-Mel spectrograms and combines spectrogram augmentation, knowledge transfer, and feature alignment. Using the last training checkpoint as the final evaluation model, PSA-AP achieved the best mean Accuracy, Macro-F1, and UAR across all six K-shot settings from 5 to shot to 30-shot. At 30-shot, PSA-AP reached 90.60% Accuracy, 90.49% Macro-F1, and 90.60% UAR. These findings suggest that the proposed task-adapted supervised model is feasible and effective for limited-label pig-sound recognition under the current protocol.

Abstract

Pig vocalization recognition can support non-invasive monitoring in precision livestock farming, but labelled pig-sound recordings are often limited for specific behaviours or physiological states. Under few-shot conditions, deep models may overfit, whereas traditional acoustic features may not fully describe class-specific time-frequency patterns. This study proposed PSA-AP, a pig-sound adaptation pipeline that uses log-Mel spectrograms and integrates SpecAugment-based domain expansion, ImageNet-pretrained ResNet18 knowledge transfer, and ArcFace-based feature alignment. The method was designed to reduce dependence on limited labelled samples, improve task-adapted representation learning, and enhance inter-class separability in the embedding space. Experiments were conducted on a five-class few-shot pig vocalization classification task, including eat, estrous, farrowing (fap), howl, and oink sounds collected from 10 adult Landrace pigs. Using K = { 5 , 10 , 15 , 20 , 25 , 30 } labelled wav files per class and five random seeds, each selected training wav file and each held-out test wav file was converted into one 1.0 s log-Mel spectrogram for model training or evaluation. Final evaluation was based on the last checkpoint of each training run. PSA-AP achieved the best mean Accuracy, Macro-F1, and UAR at every K-shot setting. At K = 30 , PSA-AP reached 90.60% Accuracy, 90.49% Macro-F1, and 90.60% UAR, exceeding Raw by 7.80, 7.82, and 7.80 percentage points, respectively. These results indicate that the proposed integration of domain expansion, knowledge transfer, and feature alignment provides a feasible supervised adaptation strategy for few-shot pig vocalization recognition within the current protocol.

1. Introduction

Pig vocalizations provide an important non-invasive signal for precision livestock farming because they can reflect animal behaviour, health condition, stress response, and welfare-related states without requiring direct physical contact with the animals [1,2,3,4,5]. Automatic pig-sound recognition can therefore support early warning of abnormal conditions, continuous welfare assessment, and intelligent farm management. Traditional pig vocalization recognition methods usually rely on handcrafted acoustic descriptors, such as Mel-frequency cepstral coefficients (MFCCs), spectral centroid, formant-related features, short-time energy, and other manually designed statistics, followed by shallow classifiers such as support vector machines, hidden Markov models, or back-propagation neural networks [6,7,8]. Although these methods are lightweight and interpretable, their performance depends strongly on feature engineering and preprocessing. In real pig houses, background noise, reverberation, microphone placement, individual variation, and the acoustic similarity among different vocal categories may reduce the robustness of handcrafted features. To overcome these limitations, recent studies have increasingly adopted deep-learning-based methods, which can learn discriminative time–frequency representations directly from waveforms or spectrograms and reduce the dependence on manually designed acoustic features.
Deep-learning-based pig vocalization recognition has achieved promising performance in several representative tasks. Briefer et al. used a spectrogram-based neural network to classify pig calls according to emotional valence and context of production, achieving 91.5% accuracy for valence classification and 81.5% accuracy for context classification [9]. Liao et al. proposed a TransformerCNN model for domestic pig sound classification and reported 96.05% accuracy, 98.37% AUC, and 90.52% recall, showing the advantage of combining convolutional feature extraction with attention-based modelling [10]. Pan et al. introduced a DNN-HMM framework for pig sound recognition and achieved 83% recognition accuracy on a pig-sound dataset, outperforming conventional HMM and GMM-HMM baselines [11]. Pann et al. further developed a DCNN-based pig vocalization and non-vocalization classification method using real pig-farm recordings, where the proposed Mixed-MMCT feature representation achieved 99.50%, 99.56%, and 99.67% accuracy on three farm datasets, and 95.67% average accuracy in cross-farm robustness experiments [12]. These studies demonstrate the effectiveness of neural and deep models for pig-sound analysis. However, most existing results are obtained under relatively sufficient labelled-data settings or fixed training protocols. In practical farm applications, some vocal categories associated with specific behaviours or physiological states are difficult to collect repeatedly and label accurately. Therefore, few-shot pig vocalization recognition, where only a small number of labelled samples are available for each class, is more consistent with realistic deployment conditions.
Recent livestock vocalization and bioacoustic studies also show that labelled farm-animal acoustic datasets are often limited or imbalanced. Jung et al. developed a cattle vocal classification model using 897 classification records [13]. Gavojdian et al. reported 1144 cattle vocalization records in BovineTalk for high-/low-frequency call classification and individual cow identification [14]. Kate and Neethirajan introduced a bovine bioacoustic dataset containing 569 curated clips across 48 behavioural classes, where many classes contained fewer than ten samples [15]. In few-shot bioacoustic event detection, only five exemplar vocalizations are commonly provided for the target class [16]. These studies indicate that limited labelled animal-sound data are common in livestock and bioacoustic applications. Therefore, the present study focuses on a controlled limited-label pig vocalization protocol, where K-shot subsets are randomly selected from the available training pool and evaluated on a balanced fixed test set.
Under low-resource acoustic conditions, existing studies have mainly explored three types of strategies that are relevant to few-shot pig vocalization recognition: data augmentation, transfer learning, and metric learning. Data augmentation aims to enlarge the effective training distribution without collecting additional labelled recordings. Common audio augmentation strategies include pitch shifting, time stretching, time shifting, background-noise injection, random gain perturbation, and sample-mixing methods, which have been used to improve robustness in environmental sound classification, domestic audio tagging, and pig vocalization/non-vocalization classification [12,17,18]. Transfer learning provides another solution by reusing representations learned from large-scale audio corpora. For example, pretrained audio neural networks trained on AudioSet have shown strong transferability across audio tagging, acoustic scene classification, music classification, speech emotion recognition, and sound event detection tasks [19]. Efficient Audio Transformer further demonstrated that self-supervised audio pretraining can achieve strong performance on AudioSet, ESC-50, and speech-command classification while reducing pretraining cost [20]. Metric learning attempts to improve class separability when labelled samples are scarce. Prototypical networks learn a metric space in which classification is performed by distances to class prototypes [21], and relation networks learn a deep comparison function for few-shot recognition [22]. In bioacoustic few-shot event detection, prototypical-network-based baselines and segment-level metric-learning systems have been widely explored; for example, segment-level metric learning substantially improved the F-measure over the DCASE few-shot bioacoustic baseline by making better use of positive and negative acoustic segments [23,24]. Nevertheless, each strategy alone still has limitations. Data augmentation can increase local acoustic variation but cannot provide high-level representation priors. Transfer learning can improve initialization but may not fully adapt the embedding space to target pig vocalization categories. Metric learning can enhance class separation, but its effectiveness is still constrained when the few labelled samples do not sufficiently cover intra-class acoustic variation. These observations motivate an integrated framework that jointly improves sample coverage, representation initialization, and embedding discriminability.
To address these limitations, we propose PSA-AP, a pig-sound adaptation pipeline for few-shot pig vocalization recognition. PSA-AP uses log-Mel spectrograms as input and combines three task-adaptive components. SpecAugment-based domain expansion applies label-preserving time and frequency masking to scarce training spectrograms, thereby increasing the perturbation coverage of the observed samples. ImageNet-pretrained ResNet18 knowledge transfer provides a stable initialization for spectrogram representation learning. ArcFace-based feature alignment encourages intra-class compactness and inter-class separation in the embedding space. Together, these components are intended to reduce representation-learning difficulty, mitigate overfitting, and clarify class boundaries under few-shot supervision.
In this paper, we focus on the few-shot pig vocalization recognition problem and propose PSA-AP as a task-adapted supervised framework for log-Mel spectrogram classification. Specifically, PSA-AP integrates SpecAugment-based domain expansion, ImageNet-pretrained ResNet18 knowledge transfer, and ArcFace-based feature alignment to improve sample coverage, representation initialization, and embedding separability under limited labelled data. The main contributions of this study are summarized as follows:
  • We formulate and evaluate a controlled five-class few-shot pig vocalization recognition protocol covering eat, estrous, farrowing (fap), howl, and oink, with K = { 5 , 10 , 15 , 20 , 25 , 30 } labelled wav files per class, five random seeds, and a fixed wav-file-level test set.
  • We propose PSA-AP, a pig-sound adaptation pipeline that combines spectrogram-domain expansion, transferred ResNet18 representation learning, and angular-margin feature alignment to mitigate limited-sample representation learning and unclear class boundaries.
  • We compare PSA-AP with representative model families using the last checkpoint as the final evaluation model and show that, within the current protocol, PSA-AP obtains the highest mean Accuracy, Macro-F1, and UAR across all six K-shot settings, reaching 90.60% Accuracy at K = 30 .

2. Materials and Methods

2.1. Dataset Acquisition and Preparation

Figure 1 summarizes the dataset acquisition and preparation workflow. Audio recordings were collected at Jinghuimeng Pig Farm, Mengcheng, Anhui Province, China. Ten adult Landrace pigs were housed in individual pens placed at relatively large intervals in a quiet sampling space. A microphone was fixed approximately 15 cm to the right side of each pig’s individual pen to collect vocalization signals while reducing interference from adjacent animals and the surrounding environment. Data were collected for five days from 21 February 2024 to 25 February 2024. On each day, recordings were acquired during three time periods: 05:00–08:00, 11:00–14:00, and 17:00–20:00. The recordings were classified and annotated by two researchers and then reviewed by two pig-farm staff members. Recordings with unclear labels, severe background interference, or multiple overlapping vocalization categories were excluded from the retained dataset. In total, 310 wav files with durations ranging from 1.113 to 16.333 s were retained, and each file contained only one sound category.
Figure 1. Dataset acquisition and preparation workflow.
The audio acquisition system was self-developed for this study. A NanoPC-T4 single-board computer (FriendlyElec, Guangzhou, China) was used as the main controller and was connected to an iTalk-02 microphone (Newline, Beijing, China) and USB interface resources (Ugreen Group Limited, Beijing, China) resources for audio capture and transmission.
To obtain single-channel audio signals, the microphone used PCM encoding and exported wav-format recordings with one channel, an 8-bit sample size, and a sampling rate of 44.1 kHz. The on-site equipment installation and the sound acquisition and transmission hardware system are shown in Figure 2.
Figure 2. On-site equipment installation and sound acquisition hardware system. Panel (a) shows the on-site equipment installation, and panel (b) shows the sound acquisition and transmission hardware system.
During preprocessing, each retained wav recording was resampled to 16 kHz and cropped or padded to 1.0 s before feature extraction. Each wav file therefore generated one 1.0 s log-Mel spectrogram for model training or testing, rather than multiple training or test samples. The resulting neural-network input had a shape of 1 × 128 × 101 , corresponding to one channel, 128 Mel-frequency bins, and 101 time frames. Normalization statistics were fitted separately for each K-shot training subset to avoid using information from the full training pool or the fixed test set.
The dataset contains five pig vocalization classes: eat, estrous, farrowing (fap), howl, and oink. The training pool contains 42 wav files per class, giving 210 training-pool recordings in total, with durations ranging from 1.633 to 15.835 s. The fixed test set contains 100 wav files, with 20 recordings per class, and durations ranging from 1.113 to 16.333 s. For each few-shot experiment, K-shot subsets were sampled at the wav-file level from the training pool with K ∈ { 5 , 10 , 15 , 20 , 25 , 30 } labelled wav files per class, and each selected wav file was converted into one 1.0 s log-Mel spectrogram for training. Each fixed test wav file was also converted into one deterministic 1.0 s log-Mel spectrogram for evaluation. In addition, the retained training-pool and test wav files were partitioned into complete non-overlapping 1.0 s slices only for segment-count analysis, yielding 1010 training-pool segments and 528 test-set segments. The segment counts were reported only to describe the available duration distribution of the retained recordings, whereas the few-shot model evaluation was conducted at the wav-file level. The class-wise segment counts are shown in Figure 3. Test labels were parsed from filename keywords.
Figure 3. Class-wise complete non-overlapping 1.0 s segment counts used only for describing the available duration distribution of the retained recordings.

2.2. Problem Description

2.2.1. System Model

The study considers a few-shot pig vocalization recognition system in which short raw audio recordings are converted into time–frequency representations and then classified into behavioural or physiological vocalization categories. Let
C = { eat , estrous , fap , howl , oink }
denote the label set, where the number of classes is C = | C | = 5 and farrowing (fap) is represented by the short label fap. A labelled sample is represented as ( a i , y i ) , where a i denotes one pig vocalization wav recording and y i ∈ C is its class label. Each wav recording is resampled, cropped or padded to 1.0 s, converted to one log-Mel spectrogram, and normalized before being passed to the classifier. This preprocessing pipeline is written as
x i = ϕ ( a i ) ∈ R 1 × F × T ,
where ϕ ( · ) denotes the resampling, 1.0 s crop or padding, log-Mel feature extraction, and normalization procedure applied to each wav recording, F = 128 is the number of Mel-frequency bins, and T = 101 is the number of time frames. The supervised neural classifier is defined as
f θ ( x i ) = ( z i , h i ) ,
where θ denotes the trainable model parameters, z i ∈ R C denotes the classification logits, and h i ∈ R d denotes the learned embedding feature before the final classification layer. The predicted probability for class c is
p θ ( y = c ∣ x i ) = softmax ( z i ) c = exp ( z i , c ) ∑ j = 1 C exp ( z i , j ) .
Here, z i , c is the logit assigned to class c, and the denominator normalizes the logits across all five pig vocalization classes.

2.2.2. Few-Shot Pig Vocalization Recognition Problem

For a given shot number K ∈ { 5 , 10 , 15 , 20 , 25 , 30 } , K denotes the number of labelled wav files sampled per class from the training pool. Each selected wav file contributes one 1.0 s log-Mel spectrogram, so the available training set is
D tr K = { ( x i , y i ) } i = 1 C K ,
where each class contributes exactly K labelled wav-file samples and C K is the total number of training samples. The fixed test set is
D te = { ( x j , y j ) } j = 1 N te ,
where N te = 100 and each element denotes one held-out wav file represented by one deterministic 1.0 s log-Mel spectrogram. The learning objective for a model trained on a K-shot subset can be expressed as empirical risk minimization:
θ * = arg min θ 1 | D tr K | ∑ ( x i , y i ) ∈ D tr K L ( f θ ( x i ) , y i ) ,
where L ( · ) denotes the training loss and θ * denotes the fitted model parameters. Because C K is small in this setting, especially at K = 5 and K = 10 , directly learning a high-capacity deep representation from scratch is prone to overfitting and unstable class boundaries. In this study, K = 5 and K = 10 are regarded as extremely low-label settings, whereas K = 15 , K = 20 , K = 25 , and K = 30 are treated as limited-label supervised adaptation settings rather than extreme few-shot settings. The proposed task-adapted supervised method therefore combines domain expansion, knowledge transfer, and metric-learning feature alignment.

2.3. Motivation

The methodological design follows a standard empirical-risk-minimization intuition rather than a new theoretical guarantee [25]. With probability at least 1 − δ , the gap between the expected risk and the empirical K-shot training risk can be informally motivated as
R ( f θ ) − R D tr K ( f θ ) ≤ O C ( H ) − log δ C K ,
where R ( f θ ) is the expected risk on the underlying pig vocalization distribution, R D tr K ( f θ ) is the empirical risk on the selected K-shot wav-file-level training subset, H is the model hypothesis space, C ( H ) denotes an effective capacity or complexity term, C K is the total number of labelled training wav files, and 1 − δ is the confidence level. In this motivating bound, the small denominator C K captures the central difficulty of few-shot pig vocalization recognition: the training set provides limited coverage of within-class acoustic variation and between-class similarity.
This intuition leads to three complementary design choices. First, SpecAugment performs domain expansion by applying time and frequency masking to log-Mel spectrograms during training, thereby exposing the model to local spectral perturbations without changing class labels. Second, ImageNet-pretrained ResNet18 fine-tuning provides knowledge transfer through a transferable initialization, reducing the need to learn all filters from the small pig vocalization set alone. Third, ArcFace angular-margin loss performs metric-learning feature alignment so that samples from the same vocalization class are encouraged to be compact while different classes are separated by a larger angular margin.

2.4. Method Overview

Figure 4 gives an overview of the proposed framework for few-shot pig vocalization classification. Compared with conventional fine-tuning under sufficient labelled samples, the proposed pipeline addresses limited target samples through three task-adaptive components: domain expansion, knowledge transfer, and metric-learning feature alignment. During training, target log-Mel spectrograms are augmented, passed through a transferred ResNet18 backbone, and optimized using cross-entropy together with ArcFace supervision. During inference, the trained model directly classifies fixed test spectrograms into the five pig vocalization categories. The adapted ResNet18 structure used in this study is summarized in Table 1.
Figure 4. Overview of the proposed few-shot pig vocalization classification framework.
Table 1. Adapted ResNet18 architecture used for log-Mel spectrogram classification. Output sizes are shown for an input spectrogram of 1 × 128 × 101 .

2.5. SpecAugment Domain Expansion

The first task-adaptive component is SpecAugment-based domain expansion, illustrated in Figure 5. In few-shot pig vocalization recognition, each class provides only a small number of target spectrograms, so the observed training samples cover only a limited region of the possible acoustic variation. SpecAugment expands this target domain by generating label-preserving time–frequency perturbations of the available log-Mel spectrograms during training, while the evaluation pipeline remains deterministic and unaugmented.
Figure 5. SpecAugment-based domain expansion for few-shot pig vocalization classification.
For a log-Mel spectrogram X i = ϕ ( a i ) ∈ R F × T with label y i , the augmented sample is defined as
X ˜ i = A SA ( X i ; M f , M t ) , y ˜ i = y i ,
where A SA ( · ) denotes the SpecAugment operator, and M f and M t denote the frequency- and time-masking operations. Specifically, for randomly selected starting positions f 0 and t 0 and mask widths f m and t m , the masking process is implemented as
X ˜ i , f 0 : f 0 + f m , : = v , X ˜ i , : , t 0 : t 0 + t m = v ,
where v is the mask value in the pre-normalized log-Mel space. In this study, v was set to the mean value of the corresponding spectrogram, producing a neutral masked region without introducing a fixed out-of-distribution constant. The augmented training set can therefore be viewed as
D ˜ tr K = D tr K ∪ { ( X ˜ i , y i ) ∣ ( X i , y i ) ∈ D tr K } ,
which increases the effective coverage of local temporal and spectral variations around the observed pig vocalization samples. This domain expansion is applied only during training and does not change the class labels.

2.6. Knowledge Transfer

The second task-adaptive component is knowledge transfer through ImageNet-pretrained ResNet18 fine-tuning, as illustrated in Figure 6. In the raw few-shot setting, model optimization starts from random parameters and searches a large hypothesis space using only a small number of pig vocalization samples. By contrast, transfer learning introduces prior knowledge through pretrained convolutional filters and initializes the model in a more effective region of the hypothesis space, reducing the burden of learning all spectrogram representations from the K-shot target set alone.
Figure 6. Knowledge transfer through ImageNet-pretrained ResNet18 fine-tuning.
Let θ pre denote the parameters of a ResNet18 model pretrained on ImageNet [26]. The pig vocalization classifier is initialized from these parameters and then adapted on the K-shot training set:
θ * = arg min θ 1 | D tr K | ∑ ( x i , y i ) ∈ D tr K L KT ( f θ ( x i ) , y i ) , θ 0 ← θ pre ,
where θ 0 is the initialization used before fine-tuning, and L KT denotes the supervised fine-tuning loss. Although ImageNet consists of natural images rather than animal sounds, its early convolutional filters provide transferable edge- and texture-like primitives that are also useful for spectrogram-like inputs. This transfer is especially important when the target pig vocalization set is too small to learn robust low-level filters from scratch.
Because the pretrained ResNet18 expects three RGB input channels whereas the log-Mel spectrogram has one channel, the first convolutional layer was adapted by averaging the three input-channel kernels:
W ˜ o , 1 , : , : ( 1 ) = 1 3 ∑ r = 1 3 W o , r , : , : ( 1 ) , o = 1 , … , 64 ,
where W ( 1 ) denotes the original first-layer convolutional weight tensor, W ˜ ( 1 ) denotes the adapted one-channel weight tensor, o indexes the output convolutional channel, and r indexes the original RGB input channels. The final classification layer was replaced with a five-class output layer. For each input x i , the network returns logits z i for classification and an embedding h i for visualization and metric-learning supervision. ResNet18 trained from scratch was included only as an ablation control to quantify the value of pretraining; it is not the main proposed method.

2.7. Metric-Learning Feature Alignment

The third task-adaptive component is metric-learning feature alignment using ArcFace angular-margin supervision, as shown in Figure 7. In few-shot pig vocalization classification, acoustically related categories may produce overlapping embeddings when the model is trained only with a standard classification objective. ArcFace reduces this overlap by pulling embeddings of the same vocalization class toward a compact angular region and pushing different classes apart in the normalized feature space.
Figure 7. Metric-learning feature alignment using ArcFace angular-margin supervision.
For an input spectrogram x i , the backbone produces an embedding h i ∈ R d . ArcFace first normalizes both the embedding and class weight vectors:
h ¯ i = h i ∥ h i ∥ 2 , w ¯ j = w j ∥ w j ∥ 2 , cos θ j = w ¯ j ⊤ h ¯ i ,
where h ¯ i is the normalized feature, w ¯ j is the normalized prototype weight for class j, and θ j is the angle between sample i and class j. For the ground-truth class y i , an additive angular margin m is imposed before the softmax operation:
L ArcFace = − 1 B ∑ i = 1 B log exp s cos ( θ y i + m ) exp s cos ( θ y i + m ) + ∑ j ≠ y i exp s cos θ j .
Here, B denotes the batch size and s is a scale factor that stabilizes optimization after feature normalization. The margin m makes the correct-class decision stricter in angular space, encouraging more compact within-class clusters and clearer separation between pig vocalization classes.
The final training objective combines conventional class-label supervision with metric-learning feature alignment:
L = L CE + λ arc L ArcFace ,
where L CE is the cross-entropy loss computed from the classification logits, and λ arc controls the contribution of the ArcFace branch. Cross-entropy preserves stable supervised classification, whereas ArcFace aligns the embedding space so that few-shot pig vocalization features become more class compact and less mutually confused.

3. Results

3.1. Experimental Settings

All experiments followed the same few-shot evaluation protocol. For each method, the training subset was sampled at the wav-file level from the training pool using K ∈ { 5 , 10 , 15 , 20 , 25 , 30 } labelled wav files per class and five random seeds. Each selected wav file was converted into one 1.0 s log-Mel spectrogram for model training. The fixed test set contained 100 held-out wav files, with 20 wav files per class, and each test wav file was converted into one deterministic 1.0 s log-Mel spectrogram for model evaluation. For neural-network methods, training was run for 100 epochs without early stopping. The last checkpoint from the final epoch was used as the final evaluation model in all reported results. This policy avoids selecting models by the fixed-test trajectory and reflects the performance of the completed training schedule. The main experimental settings are summarized in Table 2.
Table 2. Experimental settings used for few-shot pig vocalization classification.
Let N te denote the number of test samples, C = 5 the number of classes, y i the true label of sample i, and y ^ i the predicted label. The overall accuracy is defined as
Accuracy = 1 N te ∑ i = 1 N te I ( y ^ i = y i ) ,
where I ( · ) is the indicator function. For class c, the per-class accuracy is
Acc c = 1 N c ∑ i : y i = c I ( y ^ i = y i ) ,
where N c is the number of test samples belonging to class c. Precision, recall, and F1-score for class c are computed as
P c = TP c TP c + FP c , R c = TP c TP c + FN c , F 1 c = 2 P c R c P c + R c ,
where TP c , FP c , and FN c denote true positives, false positives, and false negatives for class c, respectively. Macro-F1 and unweighted average recall (UAR) are then given by
Macro - F 1 = 1 C ∑ c = 1 C F 1 c , UAR = 1 C ∑ c = 1 C R c .
Because the fixed wav-file-level test set is class-balanced with 20 wav files per class, Accuracy and UAR can have the same numerical value in this study. Nevertheless, UAR is retained to explicitly report class-balanced recall and to facilitate comparison with studies using imbalanced test sets.

3.2. Comparison Models

Five methods were compared in the main experiment, and only their abbreviations are used hereafter. Raw denotes the baseline ResNet18 architecture trained from random initialization on the K-shot log-Mel spectrograms [26]. MFCC-SVM denotes a traditional acoustic machine-learning baseline that summarizes each recording using mel-frequency cepstral coefficients [6] and trains a support vector machine classifier [7]. Small-CNN denotes a compact convolutional neural network trained from scratch on log-Mel spectrograms, following the common CNN-based environmental-sound classification paradigm [27]. EAT-FL denotes an external frozen Efficient Audio Transformer representation with only a linear classifier fitted to the K-shot pig vocalization subset [20]. PSA-AP denotes the proposed pig-sound adaptation pipeline, which combines pig vocalization spectrogram augmentation, ImageNet-pretrained ResNet18 knowledge transfer, and ArcFace angular-margin prototype/feature alignment [26,28,29].

3.3. Recognition Performance of Different Models

Figure 8 compares the Accuracy, Macro-F1, and UAR curves of the five recognition methods as the number of labelled wav files per class increased from K = 5 to K = 30 , and the numerical values corresponding to the figure are formally reported in Table 3. All values are based on the last checkpoint of each training run and were computed on the fixed 100-wav-file test set. MFCC-SVM consistently produced the lowest performance, with accuracy increasing from 45.00% to 62.60%. Small-CNN improved over MFCC-SVM at every K-shot setting and reached 71.40% accuracy at K = 30 , indicating that log-Mel spectrogram learning was more effective than handcrafted cepstral summaries. Raw further improved the results, rising from 59.80% to 82.80%, which shows that the residual architecture extracted more discriminative time-frequency features even without external pretraining.
Figure 8. Recognition performance across K-shot settings using the last checkpoint. Subfigures show (a) Accuracy, (b) Macro-F1, and (c) UAR for the five comparison methods. Each point represents the mean result over five random seeds at the corresponding value of K.
Table 3. Main recognition performance across K-shot settings. Values are percentages and are reported as mean ± standard deviation over five random seeds using the last checkpoint. The best value for each metric and K-shot setting is shown in bold.
PSA-AP achieved the highest mean performance across all six K-shot settings for the three metrics. At K = 5 , PSA-AP reached 84.80% accuracy, 84.58% Macro-F1, and 84.80% UAR, exceeding EAT-FL by 9.00, 8.83, and 9.00 percentage points, respectively. At K = 30 , PSA-AP reached 90.60% accuracy, 90.49% Macro-F1, and 90.60% UAR, exceeding Raw by 7.80, 7.82, and 7.80 percentage points, respectively. The consistent advantage across Accuracy, Macro-F1, and UAR indicates that the proposed combination of pig vocalization spectrogram augmentation, knowledge transfer, and angular-margin feature alignment improved both overall correctness and class-balanced recognition performance. These results support the feasibility of PSA-AP as a task-adapted supervised framework for few-shot pig vocalization recognition.

3.4. Discrimination Analysis of Feature Extraction Ability

To further examine the feature extraction ability of different recognition models, t-SNE visualizations were generated from the K = 30 , seed 42 test-set features using the last checkpoint. As shown in Figure 9, the panels are ordered as Raw, MFCC-SVM, Small-CNN, EAT-FL, and PSA-AP (Ours). Raw and MFCC-SVM produced mixed distributions with limited class-discriminative structure. Small-CNN showed partial separation, but several categories still overlapped in the projected space. EAT-FL formed a clearer global structure than the traditional and small-network baselines, which is consistent with the benefit of transferable audio representations under limited labels.
Figure 9. t-SNE visualization of feature extraction ability for different recognition models at K = 30 and seed 42 using last-checkpoint features. Panels are ordered as Raw, MFCC-SVM, Small-CNN, EAT-FL, and PSA-AP (Ours). Each point denotes one fixed test-set wav-file sample and colours indicate the true vocalization class.
PSA-AP generated the most compact and clearly separated clusters among the five methods. This pattern indicates that pig vocalization spectrogram augmentation, ImageNet-based knowledge transfer, and ArcFace angular-margin alignment jointly enhanced the discriminative structure of the embedding space. The visual separation in the last-checkpoint feature space provides direct evidence that the proposed method is feasible for learning task-adapted features, rather than merely improving the scalar performance metrics.

3.5. Stability Analysis

Stability across random few-shot sampling is important for evaluating whether a recognition method can be reliably used when only a small number of labelled pig vocalization samples are available. Therefore, the accuracy distributions over five random seeds were visualized for all six K-shot settings. As shown in Figure 10, the 5-shot, 10-shot, and 15-shot settings are placed in the upper row, and the 20-shot, 25-shot, and 30-shot settings are placed in the lower row. MFCC-SVM and Small-CNN remained at relatively low accuracy levels, and Raw showed seed-dependent variation despite its higher mean accuracy, indicating that directly training supervised models from limited pig vocalization samples can lead to unstable performance when the selected K-shot subset changes.
Figure 10. Accuracy stability analysis under all six K-shot settings using the last checkpoint. Violin plots show the distribution across five random seeds for each recognition method; white diamonds denote mean accuracy. The upper row contains 5-shot, 10-shot, and 15-shot settings, and the lower row contains 20-shot, 25-shot, and 30-shot settings.
The proposed PSA-AP method showed a more desirable stability pattern across the full label range. PSA-AP obtained the highest mean accuracy in every K-shot setting and became more concentrated as the number of labelled samples increased. In the 30-shot setting, PSA-AP achieved 90.60 ± 1.14% accuracy, while EAT-FL reached 89.20 ± 1.30%. This compact distribution, together with the highest mean accuracy, indicates that PSA-AP not only improves recognition performance but also reduces sensitivity to few-shot sampling variation. The stability advantage further supports the feasibility of combining pig vocalization spectrogram augmentation, knowledge transfer, and angular-margin feature alignment for robust few-shot pig vocalization recognition.

3.6. Ablation Experiment

The ablation experiment was used to examine the contribution of the three components in PSA-AP: knowledge transfer (KT), SpecAugment-based domain expansion (DE), and ArcFace-based feature alignment (FA). Raw denotes ResNet18 trained from scratch without these components. KT denotes ImageNet-pretrained ResNet18 fine-tuning. KT+DE and KT+FA denote adding SpecAugment or ArcFace to the KT backbone, respectively. PSA-AP combines all three components. Table 4 reports Accuracy, Macro-F1, and UAR for all six K-shot settings using the last checkpoint. Across the full range from 5 to shot to 30-shot, KT improved substantially over Raw, and adding DE or FA generally provided further gains over KT. The full PSA-AP achieved the best value for every metric and every K-shot setting, reaching 90.60% Accuracy, 90.49% Macro-F1, and 90.60% UAR at K = 30 .
Table 4. Ablation results across all K-shot settings using the last checkpoint. Values are percentages, mean ± standard deviation over five seeds. KT, DE, and FA denote knowledge transfer, domain expansion, and feature alignment, respectively. Check marks indicate included components, and crosses indicate omitted components. The best value for each metric and K-shot setting is shown in bold.
The row-normalized confusion matrices in Figure 11 further compare the class-wise behaviour of the five recognition models under the 30-shot, seed 42 setting using the last checkpoint. Raw, MFCC-SVM, and Small-CNN showed more off-diagonal errors, indicating that conventional handcrafted features or purely scratch-trained compact networks had difficulty separating all five pig vocalization categories. EAT-FL improved the diagonal structure through external audio representations, but some class confusion remained. PSA-AP preserved the strongest diagonal-dominant pattern among the five models, supporting the feasibility of integrating spectrogram-domain expansion, transferred representation learning, and angular-margin feature alignment for discriminative few-shot pig vocalization recognition.
Figure 11. Row-normalized confusion matrices of the five recognition models at K = 30 and seed 42 using the last checkpoint. Panels are ordered as Raw, MFCC-SVM, Small-CNN, EAT-FL, and PSA-AP (Ours). Values indicate class-wise recognition accuracy in percentages.

4. Discussion

This study shows that the proposed PSA-AP framework is feasible for few-shot pig vocalization classification when the last checkpoint is used as the final evaluation model. As shown in Figure 8 and Table 3, PSA-AP achieved the highest mean Accuracy, Macro-F1, and UAR across all six K-shot settings. The advantage was already evident at 5-shot and remained stable through 30-shot, where PSA-AP reached 90.60% Accuracy, 90.49% Macro-F1, and 90.60% UAR. The central finding is therefore that combining domain expansion, knowledge transfer, and feature alignment can produce reliable task-adapted supervised learning even under limited labelled pig-sound data [30,31,32,33,34,35,36,37,38,39,40,41].
The comparison among MFCC-SVM, Small-CNN, Raw, EAT-FL, and PSA-AP further clarifies why task-adapted representation learning is important for few-shot pig vocalization recognition. MFCC-SVM produced the lowest performance, suggesting that handcrafted cepstral summaries were insufficient to describe the complex time-frequency differences among the five pig vocalization categories. Small-CNN improved over MFCC-SVM, indicating that local structures in log-Mel spectrograms contain useful discriminative information. Raw achieved stronger results than Small-CNN, but its remaining gap to PSA-AP suggests that training a deeper residual network from limited pig-specific samples still faces representation learning and overfitting challenges. EAT-FL demonstrated the benefit of external audio representations, whereas PSA-AP showed that supervised pig-specific adaptation can further organize the representation space when paired with augmentation and angular-margin alignment [42,43].
The expanded ablation results in Table 4 support the complementary roles of the three PSA-AP components across all label budgets. ImageNet-based knowledge transfer provides ResNet18 with a more stable low-level initialization, reducing the burden of learning all filters from a small pig vocalization subset. SpecAugment-based domain expansion introduces time and frequency masking in the log-Mel input space, which may reduce dependence on narrow local spectral regions and improve robustness to temporal and spectral variation. ArcFace-based feature alignment encourages more compact within-class embeddings and larger angular separation between classes, helping form clearer decision boundaries under few-shot supervision. The fact that PSA-AP achieved the best values across all K-shot settings indicates that these components contribute through different but compatible mechanisms rather than acting as redundant modifications.
The feature visualization, stability analysis, and confusion matrices provide additional support for this interpretation. In Figure 9, PSA-AP produced more compact and better separated class clusters than the comparison methods at 30-shot seed 42, indicating stronger feature extraction ability for the five pig vocalization categories. In Figure 10, PSA-AP showed the highest mean accuracy across the 5-shot to 30-shot settings and a compact distribution at higher K values, suggesting reduced sensitivity to the random selection of few-shot training samples. In Figure 11, PSA-AP also showed the clearest diagonal-dominant class-wise recognition pattern. Together, these results indicate that PSA-AP is not only numerically stronger but also more discriminative and stable under the current last-checkpoint evaluation protocol.
The class-wise average accuracy results in Figure 12 further show how the overall performance advantage was distributed among the five pig vocalization categories. PSA-AP maintained high accuracy for estrous and farrowing sounds across most K-shot settings and reached 98.0% and 100.0%, respectively, at 30-shot. It also remained competitive for howl and oink, although EAT-FL or Small-CNN occasionally achieved higher accuracy for individual classes such as eat or oink. This class-level pattern indicates that the improvement of PSA-AP was not caused by a single dominant category alone. Instead, the proposed combination of spectrogram-domain expansion, transferred representation learning, and angular-margin alignment provided a more balanced class-wise recognition profile under limited labelled pig-sound data, which is important for practical monitoring scenarios where rare physiological or behavioural vocalizations should not be missed.
Figure 12. Class-wise average accuracy comparison across the six K-shot settings using the last checkpoint. Panels show (a) 5-shot, (b) 10-shot, (c) 15-shot, (d) 20-shot, (e) 25-shot, and (f) 30-shot results. Bars are ordered as Raw, MFCC-SVM, Small-CNN, EAT-FL, and PSA-AP (Ours) for each pig vocalization class.
Several limitations should be considered when interpreting these results. The dataset is still small, containing recordings from 10 adult Landrace pigs and five predefined vocalization categories collected from a single farm with a specific recording system. Therefore, generalization across farms, microphones, pig breeds, age groups, and complex noise conditions remains to be verified. In addition, although using the last checkpoint avoids fixed-test checkpoint selection, the current test set is still fixed; future work should introduce an independent validation set and external test set for model selection and generalization assessment. Although the pigs were described as adult Landrace pigs, more detailed demographic information, such as sex, body weight, and recording period, should be reported in future multi-farm studies to support more detailed biological interpretation. Future studies should extend the dataset to more diverse production scenarios and investigate the relationships between vocalization categories, behaviour, physiological state, and animal-welfare indicators [44,45].

5. Conclusions

This study proposed PSA-AP for few-shot pig vocalization recognition, integrating SpecAugment-based domain expansion, ImageNet-pretrained ResNet18 knowledge transfer, and ArcFace-based feature alignment on log-Mel spectrograms. Under a fixed five-class protocol with six K values and five random seeds, where K denotes labelled wav files per class and evaluation uses a fixed 100-wav-file test set, PSA-AP achieved the highest mean Accuracy, Macro-F1, and UAR across all K-shot settings. It reached 90.60% Accuracy, 90.49% Macro-F1, and 90.60% UAR at K = 30 , and the t-SNE visualization, stability analysis, expanded ablation table, and confusion matrices consistently supported its feasibility for discriminative and stable limited-label pig vocalization recognition. Overall, PSA-AP provides a practical supervised adaptation strategy for few-shot pig vocalization recognition. Future work should validate its generalization using data from multiple farms, recording devices, animals, and independent external test sets.

Author Contributions

Conceptualization, G.L.; methodology, G.L.; software, G.L.; validation, G.L.; formal analysis, G.L.; investigation, G.L. and W.L.; resources, G.L. and W.L.; data curation, W.L. and G.L.; writing—original draft preparation, G.L.; writing—review and editing, G.L. and W.L.; visualization, G.L.; supervision, G.L.; project administration, W.L. and G.L.; funding acquisition, G.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research and the APC were funded by the Major Project for Natural Science Research of the Department of Education of Anhui Province, grant number 2024AH040217; the General Project for Teaching and Research on Quality Engineering in Anhui Province, grant numbers 2023jyxm1009, 2023xjzlts117, and 2023sdxx145; and the Open Project of the Key Laboratory of Smart Agriculture Technology and Equipment in Anhui Province, grant numbers AEC2026016 and AEC2025009.

Institutional Review Board Statement

The animal study was conducted with permission from Jinghuimeng Pig Farm. Only non-invasive audio recordings were collected under routine farm management conditions, without experimental treatment, invasive procedures, or additional animal handling. Jinghuimeng Pig Farm confirmed that the data collection raised no animal ethics concerns. Formal animal ethics approval was not required for this observational acoustic study.

Data Availability Statement

The audio data and source code are available from the corresponding author upon reasonable request. The data are not publicly available due to privacy and confidentiality.

Acknowledgments

The author gratefully acknowledges support from the Open Project of the Key Laboratory of Smart Agriculture Technology and Equipment in Anhui Province.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
CNNConvolutional neural network
EATEfficient Audio Transformer
MFCCMel-frequency cepstral coefficient
PSA-APPig-sound spectrogram augmentation and angular-margin prototype alignment
SVMSupport vector machine
UARUnweighted average recall

References

  1. Manteuffel, G.; Puppe, B.; Schön, P.C. Vocalization of farm animals as a measure of welfare. Appl. Anim. Behav. Sci. 2004, 88, 163–182. [Google Scholar] [CrossRef] [Scilit]
  2. Laurijs, K.A.; Briefer, E.F.; Reimert, I.; Webb, L.E. Vocalisations in farm animals: A step towards positive welfare assessment. Appl. Anim. Behav. Sci. 2021, 236, 105264. [Google Scholar] [CrossRef] [Scilit]
  3. Olczak, K.; Penar, W.; Nowicki, J.; Magiera, A.; Klocek, C. The role of sound in livestock farming—Selected aspects. Animals 2023, 13, 2307. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  4. Gómez, Y.; Stygar, A.H.; Boumans, I.J.M.M.; Bokkers, E.A.M.; Pedersen, L.J.; Niemi, J.; Pastell, M.; Manteca, X.; Llonch, P. A systematic review on validated precision livestock farming technologies for pig production and its potential to assess animal welfare. Front. Vet. Sci. 2021, 8, 660565. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  5. Reza, M.N.; Ali, M.R.; Haque, M.A.; Jin, H.; Kyoung, H.; Choi, Y.K.; Kim, G.; Chung, S.-O. A review of sound-based pig monitoring for enhanced precision production. J. Anim. Sci. Technol. 2025, 67, 277–302. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  6. Davis, S.; Mermelstein, P. Comparison of parametric representations for monosyllabic word recognition in continuously spoken sentences. IEEE Trans. Acoust. Speech Signal Process. 1980, 28, 357–366. [Google Scholar] [CrossRef] [Scilit]
  7. Cortes, C.; Vapnik, V. Support-vector networks. Mach. Learn. 1995, 20, 273–297. [Google Scholar] [CrossRef] [Scilit]
  8. Hou, Y.; Li, Q.; Wang, Z.; Liu, T.; He, Y.; Li, H.; Ren, Z.; Guo, X.; Yang, G.; Liu, Y.; et al. Study on a pig vocalization classification method based on multi-feature fusion. Sensors 2024, 24, 313. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  9. Briefer, E.F.; Sypherd, C.C.-R.; Linhart, P.; Leliveld, L.M.C.; Padilla de la Torre, M.; Read, E.R.; Guérin, C.; Deiss, V.; Monestier, C.; Rasmussen, J.H.; et al. Classification of pig calls produced from birth to slaughter according to their emotional valence and context of production. Sci. Rep. 2022, 12, 3409. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  10. Liao, J.; Li, H.; Feng, A.; Wu, X.; Luo, Y.; Duan, X.; Ni, M.; Li, J. Domestic pig sound classification based on TransformerCNN. Appl. Intell. 2023, 53, 4907–4923. [Google Scholar] [CrossRef] [Scilit]
  11. Pan, W.; Li, H.; Zhou, X.; Jiao, J.; Zhu, C.; Zhang, Q. Research on pig sound recognition based on deep neural network and hidden Markov models. Sensors 2024, 24, 1269. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  12. Pann, V.; Kwon, K.-S.; Kim, B.; Jang, D.-H.; Kim, J.-B. DCNN for pig vocalization and non-vocalization classification: Evaluate model robustness with new data. Animals 2024, 14, 2029. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  13. Jung, D.H.; Kim, N.Y.; Moon, S.H.; Jhin, C.; Kim, H.J.; Yang, J.S.; Kim, H.S.; Lee, T.S.; Lee, J.Y.; Park, S.H. Deep learning-based cattle vocal classification model and real-time livestock monitoring system with noise filtering. Animals 2021, 11, 357. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  14. Gavojdian, D.; Mincu, M.; Lazebnik, T.; Oren, A.; Nicolae, I.; Zamansky, A. BovineTalk: Machine learning for vocalization analysis of dairy cattle under the negative affective state of isolation. Front. Vet. Sci. 2024, 11, 1357109. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  15. Kate, M.; Neethirajan, S. Big data approaches to bovine bioacoustics: A FAIR-compliant dataset and scalable ML framework for precision livestock welfare. arXiv 2025, arXiv:2510.14443. [Google Scholar] [CrossRef] [Scilit]
  16. Nolasco, I.; Singh, S.; Morfi, V.; Lostanlen, V.; Strandburg-Peshkin, A.; Vidaña-Vila, E.; Gill, L.; Pamuła, H.; Whitehead, H.; Kiskin, I.; et al. Learning to detect an animal sound from five examples. Ecol. Inform. 2023, 77, 102258. [Google Scholar] [CrossRef] [Scilit]
  17. Wei, S.; Xu, K.; Wang, D.; Liao, F.; Wang, H.; Kong, Q. Sample mixed-based data augmentation for domestic audio tagging. arXiv 2018, arXiv:1808.03883. [Google Scholar] [CrossRef] [Scilit]
  18. Zhang, Z.; Xu, S.; Cao, S.; Zhang, S. Deep convolutional neural network with mixup for environmental sound classification. In Pattern Recognition and Computer Vision; Lecture Notes in Computer Science; Springer: Cham, Switzerland, 2018; Volume 11257, pp. 356–367. [Google Scholar] [CrossRef] [Scilit]
  19. Kong, Q.; Cao, Y.; Iqbal, T.; Wang, Y.; Wang, W.; Plumbley, M.D. PANNs: Large-scale pretrained audio neural networks for audio pattern recognition. IEEE/ACM Trans. Audio Speech Lang. Process. 2020, 28, 2880–2894. [Google Scholar] [CrossRef] [Scilit]
  20. Chen, W.; Liang, Y.; Ma, Z.; Zheng, Z.; Chen, X. EAT: Self-supervised pre-training with efficient audio transformer. arXiv 2024, arXiv:2401.03497. [Google Scholar] [CrossRef] [Scilit]
  21. Snell, J.; Swersky, K.; Zemel, R.S. Prototypical networks for few-shot learning. In Advances in Neural Information Processing Systems 30; Curran Associates, Inc.: Red Hook, NY, USA, 2017; pp. 4077–4087. [Google Scholar]
  22. Sung, F.; Yang, Y.; Zhang, L.; Xiang, T.; Torr, P.H.S.; Hospedales, T.M. Learning to compare: Relation network for few-shot learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Salt Lake City, UT, USA, 18–22 June 2018; pp. 1199–1208. [Google Scholar] [CrossRef] [Scilit]
  23. Nolasco, I.; Singh, S.; Vidaña-Vila, E.; Grout, E.; Morford, J.; Emmerson, M.; Jensen, F.; Whitehead, H.; Kiskin, I.; Strandburg-Peshkin, A.; et al. Few-shot bioacoustic event detection at the DCASE 2022 challenge. arXiv 2022, arXiv:2207.07911. [Google Scholar] [CrossRef] [Scilit]
  24. Liu, H.; Liu, X.; Mei, X.; Kong, Q.; Wang, W.; Plumbley, M.D. Segment-level metric learning for few-shot bioacoustic event detection. arXiv 2022, arXiv:2207.07773. [Google Scholar] [CrossRef] [Scilit]
  25. Vapnik, V.N. Statistical Learning Theory; Wiley: New York, NY, USA, 1998; ISBN 978-0-471-03003-4. [Google Scholar]
  26. He, K.; Zhang, X.; Ren, S.; Sun, J. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 27–30 June 2016; pp. 770–778. [Google Scholar] [CrossRef] [Scilit]
  27. Piczak, K.J. Environmental sound classification with convolutional neural networks. In Proceedings of the IEEE 25th International Workshop on Machine Learning for Signal Processing (MLSP), Boston, MA, USA, 17–20 September 2015; pp. 1–6. [Google Scholar] [CrossRef] [Scilit]
  28. Park, D.S.; Chan, W.; Zhang, Y.; Chiu, C.-C.; Zoph, B.; Cubuk, E.D.; Le, Q.V. SpecAugment: A simple data augmentation method for automatic speech recognition. In Proceedings of the Interspeech 2019, Graz, Austria, 15–19 September 2019; pp. 2613–2617. [Google Scholar] [CrossRef] [Scilit]
  29. Deng, J.; Guo, J.; Xue, N.; Zafeiriou, S. ArcFace: Additive angular margin loss for deep face recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA, 15–20 June 2019; pp. 4690–4699. [Google Scholar] [CrossRef] [Scilit]
  30. Schön, P.C.; Puppe, B.; Manteuffel, G. Automated recording of stress vocalisations as a tool to document impaired welfare in pigs. Anim. Welf. 2004, 13, 105–110. [Google Scholar] [CrossRef] [Scilit]
  31. Berckmans, D. General introduction to precision livestock farming. Anim. Front. 2017, 7, 6–11. [Google Scholar] [CrossRef] [Scilit]
  32. Wathes, C.M.; Kristensen, H.H.; Aerts, J.-M.; Berckmans, D. Is precision livestock farming an engineer’s daydream or nightmare, an animal’s friend or foe, and a farmer’s panacea or pitfall? Comput. Electron. Agric. 2008, 64, 2–10. [Google Scholar] [CrossRef] [Scilit]
  33. Banhazi, T.M.; Lehr, H.; Black, J.L.; Crabtree, H.; Schofield, P.; Tscharke, M.; Berckmans, D. Precision livestock farming: An international review of scientific and commercial aspects. Int. J. Agric. Biol. Eng. 2012, 5, 1–9. [Google Scholar] [CrossRef]
  34. Benjamin, M.; Yik, S. Precision livestock farming in swine welfare: A review for swine practitioners. Animals 2019, 9, 133. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  35. Fernández, M.D.; Besteiro, R.; Arango, T.; Rodríguez, M.R. Modelling of animal activity, illuminance, and noise on a weaned piglet farm. Animals 2023, 13, 3257. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  36. Tallet, C.; Linhart, P.; Policht, R.; Hammerschmidt, K.; Šimeček, P.; Kratinova, P.; Špinka, M. Encoding of situations in the vocal repertoire of piglets (Sus scrofa): A comparison of discrete and graded classifications. PLoS ONE 2013, 8, e71841. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  37. Nicolaisen, T.J.; Bollmann, K.E.; Hennig-Pauka, I.; Fischer, S.C.L. Framework for classification of fattening pig vocalizations in a conventional farm with high relevance for practical application. Animals 2025, 15, 2572. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  38. Exadaktylos, V.; Silva, M.; Aerts, J.-M.; Taylor, C.J.; Berckmans, D. Real-time recognition of sick pig cough sounds. Comput. Electron. Agric. 2008, 63, 207–214. [Google Scholar] [CrossRef] [Scilit]
  39. Nolasco, I.; Ghani, B.; Singh, S.; Vidaña-Vila, E.; Whitehead, H.; Grout, E.; Emmerson, M.; Jensen, F.; Kiskin, I.; Morford, J.; et al. Few-shot bioacoustic event detection at the DCASE 2023 challenge. In Proceedings of the Detection and Classification of Acoustic Scenes and Events Workshop (DCASE 2023), Tampere, Finland, 20–21 September 2023; pp. 146–150. [Google Scholar]
  40. Stowell, D. Computational bioacoustics with deep learning: A review and roadmap. PeerJ 2022, 10, e13152. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  41. Cordeiro, A.F.D.S.; Nääs, I.D.A.; da Silva Leitão, F.; de Almeida, A.C.; de Moura, D.J. Use of vocalisation to identify sex, age, and distress in pig production. Biosyst. Eng. 2018, 173, 57–63. [Google Scholar] [CrossRef] [Scilit]
  42. Gemmeke, J.F.; Ellis, D.P.W.; Freedman, D.; Jansen, A.; Lawrence, W.; Moore, R.C.; Plakal, M.; Ritter, M. Audio Set: An ontology and human-labeled dataset for audio events. In Proceedings of the IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), New Orleans, LA, USA, 5–9 March 2017; pp. 776–780. [Google Scholar] [CrossRef] [Scilit]
  43. Hershey, S.; Chaudhuri, S.; Ellis, D.P.W.; Gemmeke, J.F.; Jansen, A.; Moore, R.C.; Plakal, M.; Platt, D.; Saurous, R.A.; Seybold, B.; et al. CNN architectures for large-scale audio classification. In Proceedings of the IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), New Orleans, LA, USA, 5–9 March 2017; pp. 131–135. [Google Scholar] [CrossRef] [Scilit]
  44. Hong, M.; Ahn, H.; Atif, O.; Lee, J.; Park, D.; Chung, Y. Field-applicable pig anomaly detection system using vocalization for embedded board implementations. Appl. Sci. 2020, 10, 6991. [Google Scholar] [CrossRef] [Scilit]
  45. Xie, Y.; Wang, J.; Chen, C.; Yin, T.; Yang, S.; Li, Z.; Zhang, Y.; Ke, J.; Song, L.; Gan, L. Sound identification of abnormal pig vocalizations: Enhancing livestock welfare monitoring on smart farms. Inf. Process. Manag. 2024, 61, 103770. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.