Pig variety identification method, device and computer readable storage medium
A recognition method and a technology of a recognition device, which are applied in the field of image recognition, can solve problems such as low recognition accuracy of pig breeds, and achieve the effect of solving low accuracy and improving accuracy
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0054] The present invention provides a first embodiment of a pig breed identification method, comprising:
[0055] Step 101, acquire the image of the pig to be identified.
[0056] The pig image to be identified can be obtained in real time by installing a camera in the pig living environment, and the obtained pig image needs to be screened to leave an effective image containing the pig's front face and side face.
[0057] Step 102, input the image of the pig to be identified into the preset n objective functions as Feature extraction is performed in the convolutional neural network model, and n groups of feature vectors are output;
[0058] Among them, loss cross is the cross entropy loss function, w i is the i-th weight, N is the total number of samples, α is the coefficient of the regularization term, and r is the two regularization terms with The proportion of r takes n different values between [0,1], corresponding to n different models.
[0059] In this example,...
no. 2 example
[0068] The present invention provides a second embodiment of a pig breed identification method, comprising:
[0069] Step 201, acquiring images of pigs to be trained, and marking the images of pigs to be trained.
[0070] Obtaining the image of the pig to be trained is the same as the content of step 101 in the first embodiment. For specific description, please refer to the content of step 101 in the first embodiment, which will not be repeated here.
[0071] Classify and label the collected images of pigs to be trained to obtain a dataset of images of pigs to be trained.
[0072] Step 202, preprocessing the marked pig images to be trained to obtain preprocessed pig images to be trained, and dividing the preprocessed pig images to be trained to obtain n sub-training sets.
[0073] The preprocessing operation includes flipping and / or filling and / or translation operations on the pig image to be trained, so as to expand the training data set. If the training data set is too smal...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com