Next Article in Journal
Impact of a Local Government Funded Free Cat Sterilization Program for Owned and Semi-Owned Cats
Previous Article in Journal
Global Overview of Environmental Enrichment Studies: What Has Been Done and Future Directions
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Improving Efficiency: Automatic Intelligent Weighing System as a Replacement for Manual Pig Weighing

1
CAS Key Laboratory of Agro-Ecological Processes in Subtropical Region, Hunan Provincial Key Laboratory of Animal Nutritional Physiology and Metabolic Process, Hunan Research Center of Livestock and Poultry Sciences, South Central Experimental Station of Animal Nutrition and Feed Science in the Ministry of Agriculture, National Engineering Laboratory for Poultry Breeding Pollution Control and Resource Technology, Institute of Subtropical Agriculture, Chinese Academy of Sciences, Changsha 410125, China
2
College of Computer Science and Technology, Heilongjiang Institute of Technology, Harbin 150050, China
3
Beijing Focused Loong Technology Co., Ltd., Beijing 100086, China
4
Key Laboratory of Visual Perception and Artificial Intelligence of Hunan Province, College of Electrical and Information Engineering, Hunan University, Changsha 410082, China
5
College of Information and Communication, Harbin Engineering University, Harbin 150001, China
*
Authors to whom correspondence should be addressed.
Animals 2024, 14(11), 1614; https://doi.org/10.3390/ani14111614
Submission received: 30 April 2024 / Revised: 27 May 2024 / Accepted: 27 May 2024 / Published: 29 May 2024
(This article belongs to the Section Pigs)

Abstract

:

Simple Summary

The manual pig weighing method is time-consuming, labor-intensive, and stressful for pigs, and can even cause pig death. Efficiently and accurately obtaining live pig weights has always been the goal of pig producers. With the development of science and technology, using 3D depth images and artificial intelligence technology to estimate pig weight has gradually become a research hotspot. However, this technology is mostly in the research and development stage, with few practical applications. Therefore, our study verified the accuracy of a patrol automatic intelligent weighing system in practical production and explored its application effect in determining pig growth curves. The results indicated that the intelligent weighing system still has high accuracy in large-scale farming, and compared with the manual weighing method, the intelligent weighing method has a better goodness of fit. Automatic intelligent weighing systems (AIWS) can save manpower, improve production efficiency, and improve pig welfare. It is expected to replace manual weighing as the main weighing method in the future.

Abstract

To verify the accuracy of AIWS, we weighed 106 pen growing-finishing pigs’ weights using both the manual and AIWS methods, respectively. Accuracy was evaluated based on the values of MAE, MAPE, and RMSE. In the growth experiment, manual weighing was conducted every two weeks and AIWS predicted weight data was recorded daily, followed by fitting the growth curves. The results showed that MAE, MAPE, and RMSE values for 60 to 120 kg pigs were 3.48 kg, 3.71%, and 4.43 kg, respectively. The correlation coefficient r between the AIWS and manual method was 0.9410, and R2 was 0.8854. The two were extremely significant correlations (p < 0.001). In growth curve fitting, the AIWS method has lower AIC and BIC values than the manual method. The Logistic model by AIWS was the best-fit model. The age and body weight at the inflection point of the best-fit model were 164.46 d and 93.45 kg, respectively. The maximum growth rate was 831.66 g/d. In summary, AIWS can accurately predict pigs’ body weights in actual production and has a better fitting effect on the growth curves of growing-finishing pigs. This study suggested that it was feasible for AIWS to replace manual weighing to measure the weight of 50 to 120 kg live pigs in large-scale farming.

1. Introduction

Body weight is an extremely important indicator in pig production and scientific research. Accurately obtaining the weight of pigs guides scientific breeding and improves economic benefits [1]. Direct weight measurement using a weighbridge is the most common manual method. This method can provide the most accurate weight, but it is time-consuming and labor-intensive, especially when the pig population is large. Besides, this method is difficult to achieve and is very stressful for pigs, affecting their growth and even causing pig death [2,3,4,5]. With the development of technologies such as image processing, image analysis, machine learning, deep learning, and computer vision, weighing methods have transformed from contact to noncontact [5]. Noncontact measurement is based on computer vision technology and collects animal image data by 2D and 3D cameras for weighing [6]. Combined with convolutional neural networks (CNN) [7] or recurrent convolutional neural networks (RNN) [8], it can extract pig body shape features quickly and estimate pig weight accurately [9]. For example, Jun et al. [10] developed an estimation model based on 2D images and accurately measured the weights of 70 to 120 kg pigs. Fernandes et al. [11] successfully predicted the body weight of nursery and finishing pigs via 3D computer vision. In addition, noncontact measurement can also achieve automatic, continuous, and real-time monitoring of live pigs through smart equipment, promote the development of precision livestock farming, and improve pig production efficiency [1,12].
In recent years, noncontact measurement has been a rising weight-measuring tool in precision livestock farming. To achieve efficient live pig weight measurement in large-scale farming, we introduce an automatic intelligent weighing system (AIWS). This system can measure the weight of large groups of pigs and may become one of the weight measurement tools in precision livestock farming. However, there is no report on the application of this AIWS in practical production. Therefore, to examine the accuracy of AIWS and its application in the growth curve fitting of pigs, two experiments were conducted on large-scale pig farming. We hope to promote AIWS application in large-scale farming and provide a reference method for weight measurement in precision livestock farming.

2. Materials and Methods

2.1. Animal Ethics

All animal care and handling followed protocols approved by the Animal Care and Use Committee of the Institute of Subtropical Agriculture, Chinese Academy of Sciences, under permit number IACUC # 201302 (Changsha, China).

2.2. Automatic Intelligent Weighing System (AIWS)

In this study, the AIWS uses an Intel RealSense D430 deep camera to collect 3D pig image data based on machine deep learning and the BotNet regression network to predict pig weight [13]. The input image resolution for the algorithm is 640 × 480, and the format is a 16-bit single channel. In the image, the value of each pixel represents the distance from that point to the camera. The image is captured using a depth camera and is processed through methods such as spatial three-dimensional point cloud denoising and filling before being converted into a two-dimensional format. This equipment consists of four main parts: a cloud service system, an artificial intelligence computing system, a data collection terminal, and an application side. The cloud service system is an essential part of the AIWS. Its main functions include setting up patrol robot running programs, monitoring patrol robot operation status, storing image and video data, etc. The artificial intelligence computing system is the core part of the AIWS and consists of pre-procession of the front and cloud platforms. The raw depth images are preprocessed by a series of preprocessing algorithms which include instance segmentation, distance independence, noise reduction, and rotation correction. Then, processed images are input into the algorithm model to predict the weight of the pig. A data collection terminal (depth camera), also called the patrol robot, is installed on an “I”-shaped track above the pig herd and 2010 ± 20 mm above the ground. It collects the back-depth images of free-moving pigs in the top-view automatically and moves them back and forth on the track (Figure 1). The system uploads the depth image data to the artificial intelligence computing system through the wireless network and estimates the weight of every pig. Then, the average weight per pen is calculated. Finally, the weight data are output to the mobile phone or computer application through the Internet for querying.

2.3. Animal and Experimental Design

2.3.1. Exp.1. Accuracy Validation of AIWS

One hundred and six pen growing-finishing pigs (Duroc × Landrace × Large White) with body weights between 60 to 120 kg were selected, with 18 to 30 pigs per pen and 2794 pigs in total. During the experiment, we used a weighbridge to measure the weights of the pigs. The total body weight and total number of pigs per pen were recorded and then the average body weight per pen was calculated. Simultaneously, we recorded the corresponding predicted per-pen average weight of AIWS. Before the experiment began, the equipment was debugged, and the weight data recording started after the equipment ran stably. The patrols of the robot can be adjusted according to actual requirements. In this study, the robot patrolled every two hours and stopped to collect the back-depth image data of pigs in each pen for 2 min.

2.3.2. Exp.2. Determination of Pig Growth Curve

A total of 360 growing-finishing pigs (Duroc × Landrace × Large White) with an average initial body weight of 49.72 ± 3.00 kg were randomly divided into six replicates with 60 pigs per replicate. All the trial pigs were manually weighed using a traditional weighbridge at the beginning of the experiment; subsequently, all pigs were weighed every two weeks. Body weights were recorded after every measurement. At the same time, the AIWS predicted weight of each replicate was recorded daily until the end of the experiment.
All the experimental pigs were uniformly fed and managed according to the large-scale farming farms.

2.4. Accuracy Evaluation Indicators

During the test, each pen pig was weighed individually in batches using a weighbridge, and the actual average weight of pigs was calculated. Additionally, we recorded the corresponding predicted average weight for each pen of the AIWS. The mean absolute error (MAE), mean absolute percentage error (MAPE), and root mean squared error (RMSE) were used to compare the actual average weight and predict average weight with reference to Ositanwosu et al. [14]. The calculation formula is as follows:
M A E = 1 N i = 1 N | A c t u a l i P r e d i c t e d i |
M A P E = 1 N i = 1 N | A c t u a l i P r e d i c t e d i A c t u a l i |
R M S E = 1 N i = 1 N ( A c t u a l i P r e d i c t e d i ) 2

2.5. Growth Models and Goodness of Fit

Logistic and Gompertz models were used to fit the growth curve of growing-finishing pigs. The parameters of the two models are shown in Table 1. The absolute growth rate was obtained by the first derivative of the model [15]. Two models were compared using the Akaike information criterion (AIC), Bayesian information criterion (BIC), coefficient of determination R2, and adjusted coefficient of determination R2aj [15,16], and the model with low AIC and BIC values was considered the best-fit model [17]. The equations of AIC and BIC were as follows:
A I C = n × ln ( R S S n ) + 2 k
B I C = n × ln ( R S S n ) + k ln ( n )
In Equations (4) and (5), n denotes the number of samples, k is the number of parameters, and RSS is the residual sum of squares of the model [18,19].

2.6. Statistical Analysis

Excel 2016 software was used to calculate the MAE, MAPE, and RMSE. GraphPad Prism 8.2 software was used to analyze the correlation of two weight measurement methods. Origin 2022 was used for descriptive statistics first, and then Logistic and Gompertz models were used to fit the growth curve. According to the fitting results, the AIC and BIC values were calculated using Excel 2016. p < 0.05 was regarded as statistically significant, and p < 0.01 was regarded as extremely significant.

3. Results

3.1. Assessment of Weight Measurement Accuracy

The detailed data of the two weight measurement methods for 60 to 120 kg growing-finishing pigs are available in Table A1. As shown in Table 2, the MAE value was 3.48 kg, the MAPE value was 3.71%, and the RMSE value was 4.43 kg.

3.2. Correlation Analysis

The results of the correlation analysis of the two weight measurement methods are provided in Figure 2. The correlation coefficient of the two weight measurement methods for 60 to 120 kg growing-finishing pigs was r = 0.9410, and the determination coefficient was R2 = 0.8854. An extremely significant correlation (p < 0.001) was observed between the two weighing methods.

3.3. Growth Curve Fitting

The detailed data of days and weight of pigs by different measurement methods are shown in Table A2. The fitting results of the two models are listed in Table 3. In both weighing methods, the A values were 153.23 kg and 186.89 kg in the Logistic model, the B values were 21.28 and 18.68, and the k values were 0.0218 and 0.0178, respectively. The A values were 200.90 kg and 345.33 kg for the Gompertz model, the tc values were 137.08 and 203.63, and the k values were 0.0111 and 0.0069, respectively. The growth curves of 50 to 110 kg growing-finishing pigs are presented in Figure 3. At this stage, the growth curves of pigs showed tilted right J-shaped increases. All curves showed the same increasing trend. The curves of the absolute growth rate are shown in Figure 4. According to Figure 4, the growth rate of growing-finishing pigs first increased and then decreased.

3.4. Goodness of Fit

From Table 4, in the Logistic model, the R2 values were 0.9989 and 0.9970 for the manual and AIWS weighing methods, and the R2aj values were 0.9981 and 0.9969, respectively. The AIC and BIC values of the AIWS were much lower than the manual method. In the Gompertz model, R2 = 0.9990, R2 = 0.9967, R2aj = 0.9984, and R2aj = 0.9966 for the manual and AIWS weighing methods, respectively. Similarly, the AIC and BIC values of the AIWS were much lower than those of the manual method.
Comparing the four fitting results, the best-fit model was the Logistic model by AIWS. The expression of the best-fit model is shown in Table 5, achieving a maximum growth rate at an inflection point of 164.46 d, and the maximum growth rate was 831.66 g/d.

4. Discussion

The camera is a direct factor affecting the accuracy of noncontact weight measurement. Noncontact weight measurement usually uses pig images collected by 2D and 3D cameras for weighing [4,19]. Although the accuracy was high, there were some problems with the use of 2D image data and camera systems in large-scale farming. For example, the data quality of a 2D camera system depends largely on the illumination conditions [20]. Suboptimal lighting conditions can significantly reduce estimation accuracy [21]. The data extracted from images captured in different environments may interfere with image processing and analysis, leading to incorrect results [22]. Compared to 2D camera systems, the 3D camera has more advantages. Current 3D camera systems have their own light sources or use infrared, making them robust in different lighting environments [20]. Three-dimensional images (depth images) are not affected by light [19], and 3D imaging also reduces the influence of light on the weight estimation accuracy [23]. One of the greatest factors affecting the estimation model accuracy for pig body weight is the depth camera accuracy [24]. The depth camera accuracy is influenced by three factors: distance from the camera to the target, temperature, and target color [25,26]. Therefore, understanding the depth camera accuracy used and the effects of different environmental conditions on its accuracy is crucial for accurate body weight estimation. In this experiment, the distance from the camera to the target was the optimal distance obtained through extensive experiments which was fixed and unchanged, so it had little impact on weight measurement. However, a few larger absolute percentage errors may be related to the color of the pigs’ bodies. If a pig’s body is dark-colored or the surface is dirty, the measurement values will deviate [25], which in turn affects the weight estimation accuracy. In addition, the posture of pigs may also affect the weight estimation accuracy. The weight estimation model in our study was established based on the back image of standing pigs. The back posture changed when the pig lay on its stomach or side, resulting in differences between the collected depth image data and the model dataset, ultimately leading to larger absolute percentage errors.
In addition to depth cameras, predictive networks are also crucial for the accuracy of estimation results. ANNs and convolutional neural networks (CNNs) in conjunction with image processing improved prediction accuracy [12]. As machine-learning algorithms, ANNs have achieved enormous success in a wide variety of fields [27]. CNN is a special type of ANN that has been optimized for input data with grid patterns such as images or videos and has excellent performance in image analysis data [12,28]. It can extract body shape features and estimate pig weight and body size quickly and accurately with simple automated preprocessing of 3D images [12]. Previous studies reported that CNNs trained once can function in real time and accurately identify pigs with an accuracy of approximately 96.7% [29]. In addition, Meckbach et al. [30] reported that providing only depth images and the related weight to the CNN was sufficient to accurately predict the body weight of 20 to 133 kg pigs (R2 > 0.97). In this weight measurement system, a regression network was built based on BotNet to predict the weight precisely. It was designed so that a dual branch of 3 × 3 convolution and MHSA replaces a single 3 × 3 convolution of the fourth block in ResNet, using 3D images as input. A high-accuracy and strong universality weight measurement model was obtained based on deep learning and considerable dataset training [13]. Then, cascading deconvolution layers and atrous convolution layers were used to improve the mask generation branch and solve the problem of low-resolution feature maps in the mask branch [31]. In the weight measurement of live pigs, this method optimized the Track R-CNN to output more accurate masks than the original network. In this experiment, the MAE, MAPE, and RMSE were 3.48 kg, 3.71%, and 4.43 kg, respectively. This result was close to the research (R2 = 0.65, MAE = 1.85 kg, MAPE = 1.68%, RMSE = 5.74 kg) of Chen et al. [1] who constructed a multilayer RBF neural network (deep neural network) model that automatically predicts the weight of live pigs. The RMSE was lower than the optimal prediction model of the multilayer perceptron neural network (MLP-NN) that was developed by Ositanwosu et al. [14]. This indicated that our prediction model is more precise and that the prediction results are more accurate. Furthermore, the correlation coefficient r of the two weight measurement methods was 0.9410, R2 was 0.8854, and there was a highly significant correlation between the two methods (p < 0.001). These results suggested that this AIWS could replace manual measurement to measure the weight of 60 to 120 kg pigs in large-scale farming.
A pig’s weight and growth rate are important factors in its production [32]. Fitting growth curves of pigs can predict pig growth, frame proper feeding plans, maximize utilization of the meat growth potential, and estimate the optimal slaughter weight for higher production and economic benefits [33,34]. Logistic and Gompertz are two commonly used and classical models in animal growth curve fitting, and they have a better fitting effect. Shen et al. [35] used three nonlinear growth models (Logistic, Gompertz, and Von Bertalanffy) to describe the growth characteristics of Liangshan pigs, established a growth curve model for Liangshan pigs, and estimated the maximum growth rate of Liangshan pigs. Studies have reported that the logistic model was the best-fitting model for longitudinal testicular volume in Nellore bulls [15]. The Gompertz model has a better-fit effect on the growth curve of partridges and has a higher R2 and R2aj and a lower AIC and BIC [33]. Hoang et al. [36] showed that the Gompertz model was the most suitable model for describing the growth curve of Mia chickens. However, unlike these reports, Mata Estrada et al. [37] compared four nonlinear growth models and found that the Von Bertalanffy growth model had the best-fitting effect on Creole chickens in Mexico. It can be concluded that different varieties and different animals are suitable for different growth models. Finally, with the previous studies, we chose the Logistic and Gompertz models to fit the growth curve of 50 to 110 kg three-crossbred pigs (Duroc × Landrace × Large White). The results of our study revealed that the AIC and BIC of the AIWS weighting method were much lower than the manual method, and a better fit was indicated by a lower AIC and BIC [38,39], suggesting that the AIWS weight estimation method is superior to manual weight measurement in growth curve fitting. In AIWS weight estimation, both R2 and R2aj of the Logistic and Gompertz models were 0.997, and the AIC and BIC of the Logistic model were lower than those of the Gompertz model. Therefore, we considered that the logistic model obtained by the machine weighing method was the best-fitting model. In this experiment, the age at the inflection point of 50 to 110 kg three-crossbred pigs was 164.46 d and the body weight at the inflection point was 93.45 kg.
In this study, the growth curve for 50 to 110 kg pigs showed a tilted right J-shaped increase because the growth rate of pigs gradually decreased after reaching the inflection point, and the curve tended to flatten. In addition, the farms began to sell and slaughter pigs after 180 days when their body weight reached approximately 110 kg to achieve maximum breeding benefits. Our experiment also ended with the sale and slaughter of pigs. Consequently, the growth curve of pigs did not reach a stable period and was not S-shaped. The maximum growth rate was estimated using growth curves [40] and calculated using the first derivative of the growth curve absolute growth rate (AGR) [41]. We took the first-order derivative of two models using two weighing methods to obtain the absolute growth rate, as shown in Figure 4. With aging, the AGR first increased and then decreased, reaching its maximum growth rate at the inflection point. The maximum growth rate of the best-fit model was close to the method of manual weighing. It was 831.66 g/d. This result is higher than that of Liangshan pigs (455.43 g/d) [42], and it also confirmed that three-crossbred pigs grew faster than local pigs. The growth rate and the daily gain decreased after the inflection point, and the feed conversion ratio also decreased accordingly. It is also the main reason that the farms sell and slaughter pigs after 180 days of age when their body weight reaches around 110 kg. Therefore, the logistic model built by the AIWS weighing method not only conformed to the growth and development rules of pigs but also conformed to practical production. For these reasons, it is feasible for AIWS to replace manual weighing in fitting pig growth curves, and continuous weight data on pigs had a better fitting effect.

5. Conclusions

In conclusion, our results suggest that the automatic intelligent weighing system (AIWS) has high weight measurement accuracy and good stability. AIWS can replace manual weighing to accurately measure the weight of 50 to 120 kg live pigs in large-scale farming. In addition, it also had a good application effect in fitting the growth curve of live pigs. The AIC and BIC values were both the lowest at −174.1373 and −167.2659, respectively. Therefore, against the background of big data, the real-time, continuous, and automatic intelligent weight estimation system has broad development prospects, and it is a very promising weight measurement tool for precision farming in the future.

Author Contributions

Conceptualization, G.H., R.L. and Y.Y.; methodology, G.H., R.H. and Y.Y.; software, X.Z. and C.C.; validation, G.H. and R.L.; formal analysis, G.H.; investigation, G.H., M.T. and J.D.; resources, Y.Y. and R.H.; data curation, G.H., M.T. and J.D.; writing—original draft preparation, G.H. and X.Z.; writing—review and editing, R.L., B.Y. and C.C.; supervision, Y.Y.; project administration, R.H.; funding acquisition, R.H. and G.H. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Key R&D Program of China, grant number 2021YFD1300403, and the Open Fund of Key Laboratory of Agro-ecological Processes in Subtropical Region, Chinese Academy of Sciences, grant number ISA2023201.

Institutional Review Board Statement

All animal care and handling followed protocols approved by the Animal Care and Use Committee of the Institute of Subtropical Agriculture, Chinese Academy of Sciences, under permit number IACUC # 201302 (Changsha, China).

Informed Consent Statement

Not applicable.

Data Availability Statement

All data are included in the article.

Acknowledgments

The authors thank Hunan Longhua Agriculture and Animal Husbandry Development Co., Ltd., for providing the experimental animals and sites, and the staff of the pig farm that participated in this study.

Conflicts of Interest

The authors declare no conflicts of in Author Xingfu Zhang was employed by the company Beijing Focused Loong Technology Co., Ltd. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Appendix A

Table A1. Detailed data of two weight measurement methods for 60–120 kg growing-finishing pigs.
Table A1. Detailed data of two weight measurement methods for 60–120 kg growing-finishing pigs.
NumberTotal Weight (kg)Pig’s NumberActual Average Weight (kg)Predicted Average Weight (kg)Absolute Error (kg)Absolute Percentage Error (%)
1267826103.0097.505.505.34
224102596.4092.903.503.63
3291829100.6291.708.928.87
426892799.5994.704.894.91
525942892.6489.003.643.93
625202696.9293.803.123.22
7270226103.92103.900.020.02
820702198.5793.904.674.74
923302593.2093.400.200.21
1021082487.8385.802.032.31
11289428103.36101.002.362.28
1227162897.0099.302.302.37
1323892595.5692.902.662.78
1420322484.6783.601.071.26
1523552690.5886.304.284.72
1625202793.3395.902.572.75
1725152793.1590.402.752.95
1821132391.8787.903.974.32
1922222492.5891.101.481.60
2027773092.5785.407.177.74
2127072896.6891.305.385.56
2226412894.3290.304.024.26
2325053278.2876.901.381.76
2424813082.7082.100.600.73
2523893274.6671.503.164.23
2621583169.6169.800.190.27
2721682490.3389.600.730.81
2824182983.3881.901.481.77
2922972882.0479.502.543.09
3025983378.7375.403.334.23
3122422977.3172.205.116.61
3224913375.4869.006.488.59
3320942487.2584.602.653.04
3420152195.9597.301.351.40
3518292091.4593.401.952.13
3624272597.0890.706.386.57
3720072195.5792.602.973.11
3824323081.0780.400.670.82
3922672783.9684.200.240.28
4018573159.9061.301.402.33
4122662590.6491.901.261.39
4228503191.9492.200.260.29
4326232990.4586.803.654.03
4426322894.0094.400.400.43
45272327100.8598.602.252.23
4625812699.27101.702.432.45
47303030101.0098.102.902.87
48283324118.04118.900.860.73
49306828109.57105.803.773.44
50325329112.17109.003.172.83
51295726113.73109.404.333.81
52266524111.04108.102.942.65
53191418106.33107.701.371.29
54295326113.58113.600.020.02
55261925104.76102.702.061.97
56290627107.63109.101.471.37
57280527103.8994.609.298.94
58231421110.19104.905.294.80
59329129113.48115.301.821.60
60294127108.93108.300.630.57
61262025104.80104.300.500.48
62266625106.64102.903.743.51
63273126105.04104.100.940.89
64279625111.84111.900.060.05
65276925110.76114.904.143.74
66283326108.9698.4010.569.69
6727093187.3978.109.2910.63
6828823290.0684.705.365.95
69232223100.96104.403.443.41
7019992099.9595.904.054.05
7123112882.5481.600.941.13
7224202983.4581.901.551.86
7315281980.4276.404.025.00
7415152268.8658.8010.0614.61
7516212081.0579.002.052.53
7618252476.0470.405.647.42
7722622590.4887.902.582.85
7822432397.5295.202.322.38
7918352091.7585.406.356.92
8021942395.3997.502.112.21
8123072785.4493.908.469.90
8225102792.9683.809.169.86
83269726103.73100.603.133.02
84251525100.6090.2010.4010.34
8527132896.8991.105.795.98
8630553198.5592.406.156.24
87293028104.6497.007.647.30
8824982792.5292.400.120.13
8927472898.11100.602.492.54
9025292697.2797.100.170.17
91256925102.76109.506.746.56
9218852575.4072.902.503.32
9325812795.5996.601.011.05
9424902792.2293.200.981.06
95276227102.30109.807.507.34
96319029110.00113.303.303.00
9729833099.4396.103.333.35
98273226105.08107.102.021.93
99282528100.89110.809.919.82
100310629107.10110.603.503.26
101307428109.79110.200.410.38
102282727104.70108.503.803.63
10325072696.4297.601.181.22
10416001984.2187.503.293.91
10521462585.8496.4010.5612.30
10627193090.6397.106.477.13
Table A2. Detailed data of days and weights of pigs by different measurement methods.
Table A2. Detailed data of days and weights of pigs by different measurement methods.
DaysManual (kg)AIWS (kg)
ABCDEFABCDEF
10749.4550.5054.9847.9049.4046.0849.5552.1053.2048.9548.0747.40
108 51.1852.5054.9051.5749.6747.60
109 52.1653.9056.0552.6751.7748.10
110 52.8555.0555.7052.8052.6147.60
111 52.8754.1555.3552.3153.2347.75
112 53.0754.2555.1552.3753.1448.55
113 53.8654.4056.4552.5852.8851.64
114 54.5355.3056.9653.6052.1453.30
115 54.7156.5057.2154.8851.4355.19
116 55.2757.3058.1655.2451.4055.84
117 55.6757.7559.1055.2951.8556.24
118 57.3357.9059.3155.5552.0556.60
119 57.6258.4559.5256.2452.8557.89
120 57.6758.6060.7356.1053.4058.58
12161.1163.8464.359.1953.7463.9357.4159.1561.6756.0553.8558.48
122 56.7459.5563.9456.9253.9057.77
123 57.6360.2063.5057.8254.0559.54
124 59.1460.2064.0658.3855.1060.50
125 59.8261.0365.1359.2155.7061.51
126 60.5061.8566.2060.0456.3062.51
127 62.8562.6966.2060.6056.6162.95
128 64.4564.2367.5061.8557.8564.22
129 65.1865.0368.4062.4858.6364.82
130 65.9065.8369.3063.1059.4065.43
131 66.6165.7869.5563.2759.5465.80
132 66.0365.8369.4063.1559.2065.49
133 68.5269.0073.6564.9961.3468.13
134 68.0671.3173.9565.5361.7869.02
135 68.5071.7974.2566.8062.3373.13
136 69.8272.1877.3068.8662.2972.88
13771.7077.0177.0471.9565.5476.7069.7972.3377.3070.1363.9771.76
138 69.7673.0777.2069.8265.1771.53
139 69.9474.1676.9570.6966.5371.84
140 71.8475.0277.9571.4366.8674.29
141 72.8176.4879.3573.2568.7477.40
142 74.1376.5480.8572.5369.7278.76
143 74.0076.8081.5572.7669.8279.31
144 75.7077.7682.9574.2369.7480.50
145 76.1277.9482.2575.7070.3381.09
146 77.3779.0283.9076.5872.4081.68
147 79.1380.3785.4578.0573.8983.34
148 79.8581.0486.2078.6774.4484.25
14985.4286.5187.4582.3476.6691.5480.5781.7286.9579.2874.9985.15
150 82.0481.1386.6579.9274.8385.61
151 80.7281.7886.9079.4475.0485.20
152 85.7382.5586.7083.3176.4186.84
153 83.6085.2289.6582.2177.0787.31
154 85.0386.5889.1582.4777.1489.69
155 85.1287.3789.8581.9778.4490.87
156 87.6888.6389.3083.3579.5891.43
157 87.5592.1390.6590.6581.5191.71
158 89.6094.1592.1786.4182.7892.84
159 89.5394.8993.9188.2983.2295.03
160 92.5194.3595.1888.4583.5494.67
161 93.3994.9295.0590.6284.7494.86
162 93.4996.9596.1790.0586.2194.41
163 93.7497.3496.9290.5388.3294.56
16497.9794.8696.7491.6287.5599.1692.8998.4897.9589.6389.2395.14
165 94.9598.3697.8889.9889.2096.03
166 94.7598.6599.7592.0187.7497.54
167 98.71100.2798.1190.1787.3299.72
168 99.42103.1899.0091.3989.39100.14
169 101.72104.6599.2890.9290.68101.74
170 101.76101.4299.8295.9392.16102.11
171 103.24102.2299.3797.8791.29104.03
172 101.13103.00101.4498.5393.46103.58
173 100.29104.43102.2697.1193.27104.45
174 98.58103.78102.0896.3995.35103.54
175 100.17103.21100.3697.7796.04103.70
176 103.51104.12100.93100.3897.92105.88
177 103.17105.55101.67101.8598.62107.12
178 104.50107.36102.71102.5998.54107.43
179111.03109.91108.13103.7399.79112.87102.35109.50104.04102.3998.82106.01

References

  1. Chen, H.M.; Liang, Y.; Huang, H.; Huan, Q.; Gu, W.; Liang, H. Live pig-weight learning and prediction method based on a multilayer RBF network. Agriculture 2023, 13, 253. [Google Scholar] [CrossRef]
  2. Pezzuolo, A.; Guarino, M.; Sartori, L.; González, L.A.; Marinello, F. On-barn pig weight estimation based on body measurements by a Kinect v1 depth camera. Comput. Electron. Agric. 2018, 148, 29–36. [Google Scholar] [CrossRef]
  3. Schofield, C.P. Evaluation of image analysis as a means of estimating the weight of pigs. J. Agric. Eng. Res. 1990, 37, 287–296. [Google Scholar] [CrossRef]
  4. Wang, Y.; Yang, W.; Winte, P.; Walker, L.T. Non-contact sensing of hog weights by machine vision. Appl. Eng. Agric. 2006, 22, 577–582. [Google Scholar] [CrossRef]
  5. Wang, Z.; Shadpour, S.; Chan, E.; Rotondo, V.; Wood, K.M.; Tulpan, D. ASAS-NANP Symposium: Applications of machine learning for livestock body weight prediction from digital images. J. Anim. Sci. 2021, 99, 1–15. [Google Scholar] [CrossRef]
  6. Kongsro, J. Estimation of pig weight using a Microsoft Kinect prototype imaging system. Comput. Electron. Agric. 2014, 109, 32–35. [Google Scholar] [CrossRef]
  7. Fukushima, K. Neocognitron: A self-organizing neural network model for a mechanism of pattern recognition unaffected by shift in position. Biol. Cybern. 1980, 36, 193–202. [Google Scholar] [CrossRef]
  8. Spoerer, C.J.; McClure, P.; Kriegeskorte, N. Recurrent convolutional neural networks: A better model of biological object recognition. Front. Psychol. 2017, 8, 1551. [Google Scholar] [CrossRef] [PubMed]
  9. Fernandes, A.F.A.; Dórea, J.R.R.; Valente, B.D.; Fitzgerald, R.; Herring, W.; Rosa, G.J.M. Comparison of data analytics strategies in computer vision systems to predict pig body composition traits from 3D images. J. Anim. Sci. 2020, 98, skaa250. [Google Scholar] [CrossRef]
  10. Jun, K.; Kim, S.J.; Ji, H.W. Estimating pig weights from images without constraint on posture and illumination. Comput. Electron. Agric. 2018, 153, 169–176. [Google Scholar] [CrossRef]
  11. Fernandes, A.F.A.; Dórea, J.R.R.; Fitzgerald, R.; Herring, W.; Rosa, G.J.M. A novel automated system to acquire biometric and morphological measurements and predict body weight of pigs via 3D computer vision. J. Anim. Sci. 2019, 97, 496–508. [Google Scholar] [CrossRef] [PubMed]
  12. Bhoj, S.; Tarafdar, A.; Chauhan, A.; Singh, M.; Gaur, G.K. Image processing strategies for pig liveweight measurement: Updates and challenges. Comput. Electron. Agric. 2022, 193, 106693. [Google Scholar] [CrossRef]
  13. He, H.X.; Qiao, Y.L.; Li, X.M.; Chen, C.Y.; Zhang, X.F. Automatic weight measurement of pigs based on 3D images and regression network. Comput. Electron. Agric. 2021, 187, 106299. [Google Scholar] [CrossRef]
  14. Ositanwosu, O.E.; Huang, Q.; Lian, Y.; Nwokoye, C.H. Automatic measurement and prediction of Chinese Grown Pigs weight using multilayer perceptron neural networks. Sci. Rep. 2023, 13, 2573. [Google Scholar] [CrossRef] [PubMed]
  15. Penitente-Filho, J.M.; Fonseca, E.; Silva, F.; Guimaraes, S.E.F.; Neto Miranda, T.; da Costa, E.P.; Siqueira, J.B.; Waddington, B.; Guimaraes, J.D. Use of nonlinear mixed models for describing testicular volume growth curve in Nellore bulls. Theriogenology 2019, 133, 65–70. [Google Scholar] [CrossRef] [PubMed]
  16. Rodriguez, J.; Ren, G.; Day, C.R.; Zhao, K.; Chow, C.C.; Larson, D.R. Intrinsic dynamics of a human gene reveal the basis of expression heterogeneity. Cell 2019, 176, 213–226.e18. [Google Scholar] [CrossRef] [PubMed]
  17. Abate, S.M.; Basu, B.; Jemal, B.; Ahmed, S.; Mantefardo, B.; Taye, T. Pattern of disease and determinants of mortality among ICU patients on mechanical ventilator in Sub-Saharan Africa: A multilevel analysis. Crit. Care 2023, 27, 37. [Google Scholar] [CrossRef] [PubMed]
  18. Narinc, D.; Karaman, E.; Aksoy, T.; Firat, M.Z. Investigation of nonlinear models to describe long-term egg production in Japanese quail. Poult. Sci. 2013, 92, 1676–1682. [Google Scholar] [CrossRef] [PubMed]
  19. Xie, W.Y.; Pan, N.X.; Zeng, H.R.; Yan, H.C.; Wang, X.Q.; Gao, C.Q. Comparison of nonlinear models to describe the feather growth and development curve in yellow-feathered chickens. Animal 2020, 14, 1005–1013. [Google Scholar] [CrossRef]
  20. Nguyen, A.H.; Holt, J.P.; Knauer, M.T.; Abner, V.A.; Lobaton, E.J.; Young, S.N. Towards rapid weight assessment of finishing pigs using a handheld, mobile RGB-D camera. Biosyst. Eng. 2023, 226, 155–168. [Google Scholar] [CrossRef]
  21. Kashiha, M.; Bahr, C.; Ott, S.; Moons, C.P.H.; Niewold, T.A.; Ödberg, F.O.; Berckmans, D. Automatic weight estimation of individual pigs using image analysis. Comput. Electron. Agric. 2014, 107, 38–44. [Google Scholar] [CrossRef]
  22. Yang, Q.M.; Xiao, D.Q. A review of video-based pig behavior recognition. Appl. Anim. Behav. Sci. 2020, 233, 105146. [Google Scholar] [CrossRef]
  23. Zhang, J.; Zhuang, Y.; Ji, H.; Teng, G. Pig weight and body size estimation using a multiple output regression convolutional neural network: A fast and fully automatic method. Sensors 2021, 21, 3218. [Google Scholar] [CrossRef] [PubMed]
  24. Okayama, T.; Kubota, Y.; Toyoda, A.; Kohari, D.; Noguchi, G. Estimating bodyweight of pigs from posture analysis using a depth camera. Anim. Sci. J. 2021, 92, e13626. [Google Scholar] [CrossRef] [PubMed]
  25. Wasenmüller, O.; Stricker, D. Comparison of Kinect V1 and V2 depth images in terms of accuracy and precision. In Proceedings of the Computer Vision-ACCV2016 Workshops, PTII, Taipei, Taiwan, 20–24 November 2016; Volume 10117, pp. 34–45. [Google Scholar]
  26. Kim, S.; Kim, N.; Park, Y.S.; Jin, S.S. A sequential framework for improving identifiability of FE model updating using static and dynamic data. Sensors 2019, 19, 5099. [Google Scholar] [CrossRef] [PubMed]
  27. LeCun, Y.; Bengio, Y.; Hinton, G. Deep learning. Nature 2015, 521, 436–444. [Google Scholar] [CrossRef]
  28. Yamashita, R.; Nishio, M.; Do, R.; Togashi, K. Convolutional neural networks: An overview and application in radiology. Insights Imaging 2018, 9, 611–629. [Google Scholar] [CrossRef] [PubMed]
  29. Albawi, S.; Mohammed, T.A.; Al-Zawi, S. Understanding of a convolutional neural network. In Proceedings of the International Conference on Engineering and Technology (ICET), Antalya, Turkey, 21–23 August 2017; IEEE: New York, NY, USA, 2017. [Google Scholar]
  30. Meckbach, C.; Tiesmeyer, V.; Traulsen, I. A promising approach towards precise animal weight monitoring using convolutional neural networks. Comput. Electron. Agric. 2021, 183, 106056. [Google Scholar] [CrossRef]
  31. He, H.X.; Qiao, Y.L.; Li, X.M.; Chen, C.Y.; Zhang, X.F. Optimization on multi-object tracking and segmentation in pigs’ weight measurement. Comput. Electron. Agric. 2021, 186, 106190. [Google Scholar] [CrossRef]
  32. Alsahaf, A.; Azzopardi, G.; Ducro, B.; Hanenberg, E.; Veerkamp, R.F.; Petkov, N. Prediction of slaughter age in pigs and assessment of the predictive value of phenotypic and genetic information using random forest. J. Anim. Sci. 2018, 96, 4935–4943. [Google Scholar] [CrossRef]
  33. Koivula, M.; Sevon-Aimonen, M.L.; Stranden, I.; Matilainen, K.; Serenius, T.; Stalder, K.J.; Mantysaari, E.A. Genetic (co)variances and breeding value estimation of Gompertz growth curve parameters in Finnish Yorkshire boars, gilts and barrows. J. Anim. Breed. Genet. 2008, 125, 168–175. [Google Scholar] [CrossRef] [PubMed]
  34. Sariyel, V.; Aygun, A.; Keskin, I. Comparison of growth curve models in partridge. Poult. Sci. 2017, 96, 1635–1640. [Google Scholar] [CrossRef]
  35. Shen, L.; Luo, J.; Du, J.; Liu, C.; Wu, X.; Pu, Q.; Fu, Y.; Tang, Q.; Liu, Y.; Li, Q.; et al. Transcriptome analysis of Liangshan pig muscle development at the growth curve inflection point and asymptotic stages using digital gene expression profiling. PLoS ONE 2015, 10, e0135978. [Google Scholar] [CrossRef]
  36. Hoang, T.N.; Do, H.T.T.; Bui, D.H.; Pham, D.K.; Hoang, T.A.; Do, D.N. Evaluation of non-linear growth curve models in the Vietnamese indigenous Mia chicken. Anim. Sci. J. 2021, 92, e13483. [Google Scholar] [CrossRef] [PubMed]
  37. Mata-Estrada, A.; González-Cerón, F.; Pro-Martínez, A.; Torres-Hernández, G.; Bautista-Ortega, J.; Becerril-Pérez, C.M.; Vargas-Galicia, A.J.; Sosa-Montes, E. Comparison of four nonlinear growth models in Creole chickens of Mexico. Poult Sci. 2020, 99, 1995–2000. [Google Scholar] [CrossRef]
  38. Tomov, M.S.; Truong, V.Q.; Hundia, R.A.; Gershman, S.J. Dissociable neural correlates of uncertainty underlie different exploration strategies. Nat. Commun. 2020, 11, 2371. [Google Scholar] [CrossRef]
  39. Kelly, S.P.; Corbett, E.A.; O’Connell, R.G. Neurocomputational mechanisms of prior-informed perceptual decision-making in humans. Nat. Hum. Behav. 2021, 5, 467–481. [Google Scholar] [CrossRef]
  40. Papkou, A.; Hedge, J.; Kapel, N.; Young, B.; MacLean, R.C. Efflux pump activity potentiates the evolution of antibiotic resistance across S. aureus isolates. Nat. Commun. 2020, 11, 3970. [Google Scholar] [CrossRef] [PubMed]
  41. Yang, C.; Zhao, J.; Diaz, R.E.; Lyu, N. Development of sexual dimorphism in two sympatric skinks with different growth rates. Ecol. Evol. 2019, 9, 7752–7760. [Google Scholar] [CrossRef]
  42. Luo, J.; Lei, H.; Shen, L.; Yang, R.; Pu, Q.; Zhu, K.; Li, M.; Tang, G.; Li, X.; Zhang, S.; et al. Estimation of growth curves and suitable slaughter weight of the Liangshan pig. Asian-Australas J. Anim. Sci. 2015, 28, 1252–1258. [Google Scholar] [CrossRef]
Figure 1. Schematic diagram of data collection. The distance between the depth camera and the ground is 2010 ± 20 mm.
Figure 1. Schematic diagram of data collection. The distance between the depth camera and the ground is 2010 ± 20 mm.
Animals 14 01614 g001
Figure 2. Correlation analysis of two weight measurement methods.
Figure 2. Correlation analysis of two weight measurement methods.
Animals 14 01614 g002
Figure 3. The growth curves of two models for 50–110 kg pigs in different weighing methods: (a) Logistic model, (b) Gompertz model. AIWS = automatic intelligent weighing system.
Figure 3. The growth curves of two models for 50–110 kg pigs in different weighing methods: (a) Logistic model, (b) Gompertz model. AIWS = automatic intelligent weighing system.
Animals 14 01614 g003
Figure 4. The absolute growth rate curve of the first derivative. (a) Growth rate of Logistic model in manual weighing, (b) Growth rate of Logistic model in AIWS weighing, (c) Growth rate of Gompertz model in manual weighing, (d) Growth rate of Gompertz model in AIWS weighing.
Figure 4. The absolute growth rate curve of the first derivative. (a) Growth rate of Logistic model in manual weighing, (b) Growth rate of Logistic model in AIWS weighing, (c) Growth rate of Gompertz model in manual weighing, (d) Growth rate of Gompertz model in AIWS weighing.
Animals 14 01614 g004
Table 1. Growth curve models and characteristic parameters.
Table 1. Growth curve models and characteristic parameters.
ModelEquationParametersAge at IP (d)Weight of IP (kg)MGR (g/d)
LogisticWt = A/(1 + Be−kt)A, B, k(lnB)/kA/2Ak/4
GompertzWt = Aexp(−exp(−k(t − tc)))A, k, tctcA/eAk/e
Note: IP = inflection point; MGR = maximum growth rate; Wt = body weight (kg) at day t; A = asymptotic weight (in Logistic) or average weight at maturity (in Gompertz); B = integration constant; k = maturity rate; tc = inflection point age.
Table 2. The MAE, MAPE, and RMSE values for 60 to 120 kg growing-finishing pigs.
Table 2. The MAE, MAPE, and RMSE values for 60 to 120 kg growing-finishing pigs.
Weight Interval (kg)MAE (kg)MAPE (%)RMSE (kg)
60 to 1203.483.714.43
Note: MAE = mean absolute error; MAPE = absolute percentage error; RMSE = root mean squared error.
Table 3. The fitting parameter values of two models for 50 to 110 kg growing-finishing pigs.
Table 3. The fitting parameter values of two models for 50 to 110 kg growing-finishing pigs.
ModelLogisticGompertz
Weighing MethodManualAIWSManualAIWS
A153.23 ± 13.40186.89 ± 11.32200.90 ± 31.92345.33 ± 59.94
B21.28 ± 2.4518.68 ± 0.31--
tc--137.08 ± 14.94203.63 ± 23.75
k0.0218 ± 0.00210.0178 ± 0.00080.0111 ± 0.00190.0069 ± 0.0008
Age at IP (d)140.26164.46137.08203.32
W of IP (kg)76.6293.4573.91127.04
MGR (g/d)835.1831.66820.1876.57
Note: A = asymptotic weight (in Logistic) or average weight at maturity (in Gompertz); B = integration constant; tc = inflection point age; k = maturity rate; IP = inflection point; W = weight; MGR = maximum growth rate; AIWS = automatic intelligent weighing system.
Table 4. The goodness of fit criteria values of Logistic and Gompertz models in different weighing methods.
Table 4. The goodness of fit criteria values of Logistic and Gompertz models in different weighing methods.
ModelWeighing MethodAICBICR2R2aj
LogisticManual−15.3798−16.00450.99890.9981
AIWS−174.1373−167.26590.99700.9969
GompertzManual−16.2913−24.41220.99900.9984
AIWS−165.6111−158.73980.99670.9966
Abbreviations: AIC = Akaike information criterion; BIC = Bayesian information criterion; AIWS = automatic intelligent weighing system; R2 = coefficient of determination; R2aj = adjusted coefficient of determination.
Table 5. The expression of the best-fit model and growth inflection point.
Table 5. The expression of the best-fit model and growth inflection point.
Weighing MethodModelExpressionAge at IP (d)Weight of IP (kg)MGR4 (g/d)
AIWSLogisticWt = 186.89/(1 + 18.68e−0.0178t)164.4693.45831.66
Abbreviations: AIWS = automatic intelligent weighing system; Wt = body weight (kg) at day t; IP = inflection point; MGR = maximum growth rate.
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.

Share and Cite

MDPI and ACS Style

Hou, G.; Li, R.; Tian, M.; Ding, J.; Zhang, X.; Yang, B.; Chen, C.; Huang, R.; Yin, Y. Improving Efficiency: Automatic Intelligent Weighing System as a Replacement for Manual Pig Weighing. Animals 2024, 14, 1614. https://doi.org/10.3390/ani14111614

AMA Style

Hou G, Li R, Tian M, Ding J, Zhang X, Yang B, Chen C, Huang R, Yin Y. Improving Efficiency: Automatic Intelligent Weighing System as a Replacement for Manual Pig Weighing. Animals. 2024; 14(11):1614. https://doi.org/10.3390/ani14111614

Chicago/Turabian Style

Hou, Gaifeng, Rui Li, Mingzhou Tian, Jing Ding, Xingfu Zhang, Bin Yang, Chunyu Chen, Ruilin Huang, and Yulong Yin. 2024. "Improving Efficiency: Automatic Intelligent Weighing System as a Replacement for Manual Pig Weighing" Animals 14, no. 11: 1614. https://doi.org/10.3390/ani14111614

APA Style

Hou, G., Li, R., Tian, M., Ding, J., Zhang, X., Yang, B., Chen, C., Huang, R., & Yin, Y. (2024). Improving Efficiency: Automatic Intelligent Weighing System as a Replacement for Manual Pig Weighing. Animals, 14(11), 1614. https://doi.org/10.3390/ani14111614

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop