تعداد نشریات | 418 |
تعداد شمارهها | 9,997 |
تعداد مقالات | 83,550 |
تعداد مشاهده مقاله | 77,482,168 |
تعداد دریافت فایل اصل مقاله | 54,509,946 |
Feasibility of Body Weight Estimation of Kalkoohi Camels Using Digital Image Processing | ||
Iranian Journal of Applied Animal Science | ||
مقاله 16، دوره 10، شماره 2، شهریور 2020، صفحه 333-340 اصل مقاله (489.98 K) | ||
نویسندگان | ||
M. Khojastehkey* 1؛ M. Kalantar Neyestanaki2؛ Z. Roudbari3؛ H. Sadeghipanah4؛ H. Javaheri5؛ A.R. Aghashahi5 | ||
1Department of Animal Science, Qom Agricultural and Natural Resources Research and Education Center, Agricultural Research, Education and Extension Organization (AREEO), Qom, Iran | ||
2Education Center, Agricultural Research, Education and Extension Organization (AREEO), Qom, Iran | ||
3Department of Animal Science, Faculty of Agriculture, University of Jiroft, Jiroft, Iran | ||
4Department of Animal Science, Animal Science Research Institute of Iran (ASRI), Agricultural Research Education and Extension Organization (AREEO), Karaj, Iran | ||
5Animal Science Research Institute of Iran (ASRI), Agricultural Research Education and Extension Organization (AREEO), Karaj, Iran | ||
چکیده | ||
The aim of this study was to investigate the possibility of estimating the weight of Kalkoohi camels using digital image processing. For this purpose, Kalkoohi camels were weighed monthly on a private farm for one year. On the day of weighing, digital images were taken from all camels from their lateral side. These digital images were processed in MATLAB software environment and the required numerical features of each image including different morphological features were extracted. Among all extracted features, major axis length, minor axis length, the number of non-zero elements (NNZ) and equivalent diameter had a significant and high correlation with the weight of camels (p <0.01) and were considered as effective features in developing neural network. The multi-layer artificial neural network, which was trained by back propagation algorithm, was used to estimate the weight of camels based on their digital images. The accuracy of the final model in estimating the weight of Kalkoohi camels based on their image features was 99%. The correlation coefficient between the estimated weights by artificial neural network model and the actual weights of the camels was 98%, and the deviation of estimated weights from the measured weight of camels was 2.21 kg. The results of this study revealed that digital image processing technology has a good potential to estimate the weight of Kalkoohi camels, and this method could be a good alternative to weigh camels using a scale. | ||
کلیدواژهها | ||
image processing؛ Kalkoohi camels؛ weight estimation | ||
اصل مقاله | ||
INTRODUCTION In order to breed domestic animals, it is inevitable to record their productive traits. Increasing the accuracy in keeping records from domestic animals will increase the accuracy of the final assessment and, ultimately, will increase the genetic progress of breeding herds (Miller, 2010). Camel breeding is more difficult than other domestic animals due to the forceful nature of the animal and its breeding system. It is usually difficult and time consuming to approach a camel and keep the animal in good order to record its traits (Kuria et al. 2007). For example, weighing camels is difficult because of their large size and lack of proper handling. Presently, camels are mostly weighed through truck loading and in groups. In order to weigh camels individually, we need cranes to put camels on the scale and unload them after weighing; therefore, providing such facilities in the natural habitat of camels is a difficult task. In addition, the animal’s movements might reduce the speed and accuracy of weighing which might be dangerous and risk-taking for both livestock and the humans (Kuria et al. 2007). Recent advancements in modern technologies such as machine vision, which is used to measure the body weight and body size in both small and large scales and even to diagnose veterinary diseases, have facilitated the livestock recording process (Cihan et al. 2017; Wangchuk et al. 2017). The machine vision is one of the sub-branches of artificial intelligence technology, whereby the image different features can be used to examine changes in objects, individuals or plants and animals (Cihan et al. 2017). In animal breeding, the image processing technology has a good potential to identify and to estimate the weight and size of different animals, and yet several studies have been carried out to use this technology to estimate livestock growth changes (Burke et al. 2004). In this method, the livestock body weight and its body size were estimated by analyzing the changes in the number and the volume of the image pixels and the image intensity. These measures were then used to determine different levels of fat storage, body size and body weight of the livestock (Alvarez et al. 2017). Estimation of the weight and dimension of animals using image processing technology are based on using a linear relationship between the changes in animal size in the image and the weight variation in different period of its growth. Today, a numbers of mathematical equations are available to predict the live weight of the livestock through changes in their body size (Atta et al. 2004; Afolayan et al. 2006). For instance, Stajnko et al. (2008) estimated the live weight of cattle by measurement of body dimensions with thermographs and thermal image analysis. They found a statistically significant relationship (P<0.05) among wither height and hip height of cattle with their weight at different ages. They estimated the cattle weights with accuracy of 15 to 74% using the features extracted from thermal images. Wang et al. (2008) have investigated and predicted the pig's weight using image processing and artificial neural network. Besides, they could estimate the weight of the pigs with 3% error without using weighing scale and only by analyzing the top view images of pigs. Ozkaya and Bozkurt (2016) predicted body weight and estimated body measurements of Limousin cattle using digital image analysis. As their finding, the accuracy of models to determine the wither height, hip height, chest depth and body length were 98, 97, 94 and 90.6%, respectively. They developed an equation to estimate bodyweight using body dimensions with accuracy of 61.5%. Gomes et al. (2016) studied and developed equations to predict body and carcass weight and body fat content of young bulls using digital images. They found that chest width had significant correlation (0.85) with cattle weight (P<0.05). The accuracy of developed model for estimating the weight of Angus and Nelore cattle was 0.69 to 0.84, respectively. The prediction of body weight of beef cattle using traditional methods and digital image analysis system was compared by Bozkurt et al. (2006). The accuracy of models varied from 43.1 to 63.6% for different body size prediction. Their finding revealed that the prediction of digital image analysis system was very promising to predict body weight of beef cattle. According to our knowledge, no study has ever been conducted in Iran to estimate the camel's weight using digital image processing. Therefore, the present study aimed to investigate and introduce a method for estimating Kalkoohi camel weight using digital image processing method on a private farm in Qom province.
MATERIALS AND METHODS In this study, Kalkoohi camels were studied on a camel breeding farm in Qom province, Iran. Kalkoohi tribe is rearing the Kalkoohi camels mainly for meat production in the deserts of Qom province and part of Varamin plain. The breeding conditions of the camels in the herd were ranch-farm based, so part of the daily feed of the camels was obtained from grazing on pasture around the farm and another part of the feed needs of camels was provided by forage supplied by the farmer. The studied herd consisted of one male and 25 female camels with their calves. During one year, the young and adult camels in the herd were weighed monthly using livestock weighing scales (digital weighing scales manufactured by PAND corp) and their weight was recorded. At the same time, for each weighing step, digital images were taken using canon SX 150 IS camera; photos were taken from a fixed distance (2 meters) of each camel. At the end of the experiment, 427 images of the camels in the herd were collected at different periods. Figure 1 shows how the weights of camels were recorded. Of the 427 photographs taken from camels, 351 images were selected and used in image processing.
Image processing steps The purpose of image processing is to extract a series of numerical features from the images and use them for identification, estimation and categorization. In the first step of image processing, each photo was transferred to the computer’s memory and if necessary, it was edited and pre-processed to improve the picture’s quality. Some steps of image pre-processing were as follows: noise removal, removing shadows, contrast adjustment, image cropping, and converting color scale to gray scale image, resolution adjustment and image segmentation (Figure 2).
Figure 1 Sample frame used for weighing camels
Figure 2 Various images processing steps: (a) an image of camel in the RGB format; (b) an image of camel in the binary format and (c) an image of camel in the edge format
After pre-processing of each image, feature extraction performed using Graphical Unite Interference (GUI) of MATLAB software. Relatively, we have tried to extract the maximum possible features from an image. Accordingly, 22 different morphological features were extracted from the camel's images. These morphological features included the mean, standard deviation, distances, angles, the area and perimeter, major axis length, minor axis length, equivalent diameter, eccentricity and solidity. In order to estimate the body weight of the camels, all extracted features were not needed, and only some of them which were more relevant to body size and camel weight were selected as effective features. This was done by analyzing Pearson correlation coefficient in SPSS (2011) software.
Data mining In this study, the purpose of data mining was to explore the mathematical relationship between the extracted features of an image with the features related to the camel weights. Data mining steps were performed by means of neural network fitting tools (nf-tool) in MATLAB software. The "feed-forward neural network", trained via "back propagation" algorithm, was used for camel weight estimation. This kind of artificial neural network could be a good estimator for most linear and non-linear models (Menhaj, 2012). In the training process of the artificial neural network, the characteristics extracted from the images and the weights of the camels were used as input and output of the artificial neural network, respectively. The ANNs model with the highest accuracy (R2) and lowest error (MSE) was used as the final model to estimate the weight of camels. In the final artificial neural network, a total of 9 neurons, equal to 9 relevant features, were considered in the input layer; one neuron, equal to one output (estimated weight of camels), was considered in the output layer, and via trial and error procedure, 20 neurons were considered in the hidden layer assuming to obtain the highest accuracy of prediction (Figure 3). The transfer function in the hidden layer was a tangent-sigmoid function, and in the output layer was linear as shown in Figure 2. Out of 351 selected images in estimating the weight of the camels, 287 images were used for initial design (including training, validation and testing), and 64 images were used for final testing of the artificial neural network.
RESULTS AND DISCUSSION Selecting effective features In Table 1, the extracted features along with their coefficient correlation with the camel weights are presented. The 22 presented features in Table 1 were extracted from binary and edge images, separately. Nineteen out of 22 features extracted from the digital images had a significant correlation with the camel weights (P<0.05). The correlations between the weight of camels and extracted features, according to the nature of the studied features, varied from -0.91 to 0.97. The solidity and the convex area, among all extracted features from digital images, had the lowest and highest correlations with the camel weights, respectively. For estimating the body weight of camels, 9 features which had higher correlation with the camel weights were used as effective features and neural network inputs. The area, perimeter, equivalent diameter, major axis length, minor axis length, the number of non-zero elements and Euclidean distance were the major features used to estimate the weight of the camels. Morphological features of digital images are usually correlated with the size and dimension of the subjects in the images, on the other hand, weight gain of camels at different ages results in increasing the volume and dimensions of them; therefore, we could predict the positive and high correlation between the 9 extracted morphological features and body weight of the camels in different ages. As a result, changing the size and volume of the body of camels in different ages is a good measure for estimating their body weight. Estimating the weight of camels using artificial neural network (ANN) The results of this study showed that digital image processing and artificial neural network had a satisfactory performance in estimating the weight of Kalkoohi camels. The performance curve and accuracy of artificial neural network are presented in Figures 3 and 4, respectively. As shown in Figure 3, the best validation performance of neural network was obtained in epoch 6. This shows that neural network had a good performance because validation and test curves have similar and identical variations and there is no interaction between these curves at the point where the best performance is achieved. Based on Figure 4, the accuracy of artificial neural network during the training, validation, testing phases and in total were 0.991, 0.986, 0.989 and 0.989, respectively. These results indicated that developed ANN on the basis of using digital image features had the acceptable accuracy in estimating the weight of Kalkoohi camels.
Comparison of accurate weights of camels with the estimated weights using image analysis In Table 2, the deviations of accurate weight of camels from the estimated weights using the image analysis and artificial neural network are presented. Introducing the 64 separate images as test to the final ANN model showed that the developed model can accurately estimate the weight of camels using morphological features extracted from digital images. Derived from the results of this study, the developed ANN model had the higher accuracy in estimating the weight of medium-sized camels (weighing from 130 to 230 kg) in comparison with heavy and small ones. As shown in Table 2, by increasing the average of camel weights more than 230 kg, the absolute and relative error of the model also significantly increases. For example, the mean deviation of camels weighing less than 130 kg was 1.6 kg, while the mean deviation of camels weighing over 230 kg was 9 kg. The correlation between the actual weight (scale measured) of camels and the estimated weights using the ANN model were 99%. In average, the total error of ANN model was 1.04%, and the weight of camels was estimated 2.21 kg less than their actual weight by artificial neural network model. The results of numerous studies in estimating the weight of different livestock, poultry and agricultural products show that the morphological features, in most cases, have a significant correlation with the changes in the size and weight of the subject. For example, Forbes (2000) investigates the feasibility of using the same digital profile images of fruit that are used in commercial packing houses for color sorting and blemish detection purposes to estimate the volumes of the corresponding individual pieces of fruit.
Figure 3 The neural network structure for weight estimation of camels based on digital images features
Table 1 Correlations between the camel weights and the extracted features from digital images
NNZ: non zero elements.
They reported that morphological feature such as the area; perimeter, curvature and Euclidean distance could be used as effective features to estimate the fruits weight. In a study by Tasdemir et al. (2011) the possibility of detecting body dimension of Holstein cows with image analysis was investigated. They used this measure to estimate the live weight of cows, and as their reports, the correlation coefficient between actual and estimated weights of Holstein cows was 99%. Negretti et al. (2007b) used image processing and regression equations to estimate the live weight of rabbits. According to their results, observed individual differences between meter and image analysis measurements were small, and a consequence correlation coefficients between these measurements was very high (0.92; P<0.01). Khojastehkey et al. (2015) investigated the possibility of using image analysis and ANN to estimate some pelt characteristics of new born lambs in Zandi sheep. They used successfully the morphological features of digital images such as area, perimeter, major axis length, minor axis length and Euclidean distance to estimate the pelt area of newborn lambs. They confirmed that morphological features extracted via image analysis are efficient to estimate the dimensions and size of new born lambs, too. All these reports are confirmed the results of present study in effectiveness of morphological features to estimate the live weight of Kalkoohi camels using image processing and ANN. In the present study, the accuracy of the ANN model in estimating the weight of Kalkoohi camels using the extracted features from digital images is in the range reported in other studies. In a study by Negretti et al. (2007a) the live weight of buffaloes was estimated based on the lateral area of animals obtained from image processing with an accuracy of 90%. As their finding, the estimated buffalo's weight via image processing was 1.08% higher than accurate buffalo's weights which measured using scale. In addition, Zhang et al. (2018) estimated the sheep body size parameters using image analysis tools with accuracy of 97%. The results of their study showed that the dimensions of a sheep could be accurately estimated via digital image analysis.. In the other study, Gomes et al. (2016) tried to develop equations to predict body and carcass weight and fat content of young bulls using digital images processing. The results revealed that chest circumference is highly correlated with the cattle weight (0.85) and the accuracy of the developed models for weight estimation of Angus and Nelore cattle was 0.69 and 0.84, respectively.
Figure 4 Performance curves of Artificial Neural Network for estimating the weight of camels
Figure 5 The accuracy of artificial neural network for estimating the weight of camels using extracted features from digital image: (a): training; (b): validation, (c): testing and (d): total
Table 2 Deviation of estimated weights based on the image analysis vs. scale-measured live weights of camels
H, the accuracy of the models designed by them was less than the accuracy of proposed model to predict the camel weight in the present study. Anglart (2010) used image processing and linear regression model to automatic estimation of body weight and body condition score in dairy cows. The correlation between the estimated live weight of cattle using image processing and their actual weights was 0.87, which was slightly lower than the correlations found between the accurate and estimated weights of Kalkoohi camels using image processing and ANN at present study. Norouzian and Vakili (2016) used artificial neural network to predict the lamb fat tail weight. They could estimate the fat tail weight by artificial neural network model with a precision of 85%. Seo et al. (2011) estimated the cattle weights using image processing technique with an error of 5% to 11.7%, and an average deviation of 21.8 kilograms. Additionally, Khojastehkey et al. (2016) could estimate the weight of newborn lambs through image processing and artificial neural network with an accuracy of 95%. Of course, in the accuracy of the model, there are many aspects such as image quality, the type of statistical model, number of records, nature of the trait and choosing the type of data mining tool is decisive. The image quality and process of camera calibration to get the actual value of animal's body dimension and body weight is very fundamental to the success of the analysis of this image, because the pixel values of the animal's image that captured greatly affects the actual value of the body weight and body length of the animals (Lasfeto and DaudLetik, 2017). These reports show that image processing and artificial neural network have the proper ability to estimate the weight and size of domestic animals. Comparison of these results with the results of the present study in estimating the camel weight shows that the proposed model to estimate the weight of Kalkoohi camels has an acceptable accuracy, and in comparison with other reports, in some cases even the precision of predicting model of present study is higher than others.
CONCLUSION The results of this study demonstrated that digital image processing technology has good potential to estimating the weight of Kalkoohi camels. Due to the difficulty of weighing large livestock, such as camels, the use of recent weight estimation methods such as artificial intelligence, can facilitate the livestock weighing and reduce the damages to both livestock and humans during the process.
ACKNOWLEDGEMENT We would like to thank Mr Abdoli, the livestock breeder, for his cooperation during this project. | ||
مراجع | ||
Afolayan R.A., Adeyinka I.A. and Lakpini C.A.M. (2006). The estimation of live weight from body measurements in Yankasa sheep. Czech J. Anim. Sci. 51(8), 343-348.
Alvarez J.R., Arroqui M., Manqude P. and Toloz J. (2017). Advances in automatic detection of body condition score of cows: A mini review. J. Dairy. Vet. Anim. Res. 5(4), 131-133.
Anglart D. (2010). Automatic estimation of body weight and body condition score in dairy cows using 3 d imaging technique, MS Thesis. Swedish University of Agricultural Sciences, Uppsala, Sweden.
Atta M. and el-Khidir O.A. (2004). Use of heart girth wither height and scapuloischial length for prediction of live weight of Nilotic sheep. Small Rumin. Res. 55(1), 233-237.
Bozkurt Y., Aktan S. and Ozkaya S. (2006). Body weight prediction using digital image analysis for slaughtering beef cattle. Pp. 313 in Proc. 57th EAAP Conf, Antalya, Turkey.
Burke J., Nuthall P. and McKinnon A. (2004). An Analysis of the Feasibility of Using Image Processing to Estimate the Live Weight of Sheep. FHMG Research Report 02/2004. Applied Management and Computing Division, Lincoln University, Canterbury, New Zealand.
Cihan P., Gokce E. and Kalipsiz O. (2017). A review of machine learning application in veterinary field. Kafkas Univ. Vet. Fak. Derg. 23(4), 673-680.
Forbes K. (2000). Calibration, recognition, and shape from silhouettes of stones. MS Thesis. University of Cape Tow, South Africa.
Gomes R.A., Monterio G.R., Assis G.J., Busato K.C., Ladeira M.M. and Chizzotti M.L. (2016). Technical note: Estimating body weight and body composition of beef cattle through digital image analysis. J. Anim. Sci. 94(12), 5414-5422.
Khojastehkey M., Abbasi M.A., Akbari Sharif A. and Hassani A.M. (2016). Estimating the weight of new born lambs using digital images processing. Anim. Sci. J. (Pajouhesh and Zazandegi). 29(112), 99-104.
Khojastehkey M., Aslaminejad A.A., Shariati M.M. and Dianat R. (2015). Body size estimation of new born lambs using image processing and its effect on the genetic gain of a simulated population. J. Appl. Anim. Res. 44(1), 326-330
Kuria S.G., Wahome R.G., Gachuiri C., Wanyoike M. and Mwangi J.N. (2007). Use of linear body measurements in estimating live weight of camel (Camelus dromedarius) calves in Kenya. J. Camel Pract. Res. 14, 21-25.
Lasfeto D.B. and DaudLetik M. (2017). A measuring weight model of Timor's beef cattle based on image. Int. J. Eng. Technol. 9(2), 677-688.
Menhaj M.B. (2012). Computational Intelligence Fundamentals of Neural Networks. Amir Kabir University of Technology Publishing Center, Tehran, Iran.
Miller S. (2010). Genetic improvement of beef cattle through opportunities in genomics. Rev. Bras. Zootec. 39, 247-255.
Negretti P., Bianconi G., Bartocci S. and Terramoccia S. (2007a). Lateral trunk surface as a new parameter to estimate live body weight by visual image analysis. Italian J. Anim. Sci. 6, 1223-1225.
Negretti P., Bianconi G. and Finzi A. (2007b). Visual image analysis to estimate the morphological and weight measurement in Rabbits. World Rabbit Sci. 15, 37-41.
Norouzian M.A. and Vakili M. (2016). Comparison of artificial neural network and multiple regression to estimate fat tail weight of sheep. Iranian J. Appl. Anim. Sci. 4(6), 895-900.
Ozkaya S. and Bozkurt Y. (2008). The relationship of parameters of body measures and body weight by using digital image analysis in pre-slaughter cattle. Arch. Tierz. Dummerstorf. 2, 120-128.
Seo K.W., Kim H.T., Lee D.W. and Yoon Y.C. (2011). Image processing algorithms for weight estimation of dairy cattle. J. Biosyst. Eng. 36(1), 48-57.
SPSS Inc. (2011). Statistical Package for Social Sciences Study. SPSS for Windows, Version 20. Chicago SPSS Inc., USA.
Stajnko D., Vindiš P., Janžekovič M. and Brus M. (2008). Estimation of bull live weight through thermographically measured body dimensions. Comput. Electr. Agric. 61(2), 233-240 .
Tasdemir S., Urkmez A. and Inal S. (2011). A fuzzy rule-based system for predicting the live weight of Holstein cows whose body dimensions were determined by image analysis. Turkish J. Elec. Eng. Comput. Sci. 19(4), 689-703.
Wang Y., Yang W., Winter P. and Walker L. (2008). Walk-through weighing of pigs using machine vision and an artificial neural network. J. Biosyst. Eng. 100, 117-125.
Wangchuk K., Wangdi J. and Mindu M. (2017). Comparison and reliability of techniques to estimate live cattle body weight. J. Appl. Anim. Res. 46, 349-352.
Zhang L.N., Pei Wu B., Hua Jiang C.X., Xuan C.Z., Hua Ma E.Y., and An Zhang F.Y. (2018). Development and validation of a visual image analysis for monitoring the body size of sheep. J. Appl. Anim. Res. 46(1), 1004-1015. | ||
آمار تعداد مشاهده مقاله: 616 تعداد دریافت فایل اصل مقاله: 399 |