The prevalence and magnitude of extensive domestic pig breeding in China are rising, and behavioral assessment of these pigs is essential for enhancing production efficiency. The existing behavior identification technique for domestic pigs is computationally intensive, making it challenging to use on edge devices. This study introduces a lightweight method for identifying domestic pig behavior, YOLOv8-PigLite, derived from YOLOv8. Initially, a novel two-branch bottleneck module is developed within the C2f module, incorporating average pooling and deep convolution (DWConv) in one branch, while the other branch utilizes maximum pooling and DWConv to augment multi-scale feature representation. Subsequently, a Grouped Convolution module is integrated into the convolution framework, followed by incorporating the SE module to diminish the recognition error rate further. Ultimately, we implement BiFPN in the neck network to replace the original FPN, which streamlines the neck network and enhances its feature-processing capabilities. The test findings indicated that, in comparison to the original YOLOv8n model, the precision, recall, and mean average precision at 50% remain constant, while the parameters and floating-point computations are diminished by 59.80% and 39.50%, respectively. Additionally, the FPS has increased by 32.61%, and the model’s generalizability has been validated on public datasets.
Bayes' theorem is one of the most famous theories in probabilistic models, which is adept to be combined in machine learning, especially in classification applications. IRIS set is the classical dataset of machine learning. Firstly, naive and Gaussian Bayes classifier are provided including their relationship. Secondly, preprocess IRIS dataset, use CSV Format or read dataset into a Pandans DataFrame, perform prior, divide them into training and test datasets in proportion. And then, perform train and test work according to corresponding data with Gaussian Bayes classifier. Finally, carry out cross validation and analyze the accuracy of the verification results. The emphasis is on the working of naive Bayes model with Gause principle and the improvement on the method of dataset feature extraction.
25 August 2026 in Signal, Image and Video Processing