Intelligent pig frozen semen management method and system
By acquiring the image and odor data of pig frozen semen, combined with the quality data of the pig group, a comprehensive analysis is performed, which solves the problems of low efficiency and poor accuracy of sperm quality judgment in the existing technology, and achieves efficient and accurate judgment of sperm quality.
Patent Information
- Application Number
- CN202410834520.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-06-26
AI Technical Summary
Existing technology cannot effectively and comprehensively analyze the quality of pig semen and sperm through multi-source data fusion, resulting in a slow sperm classification and selection process with a high error rate, and cannot take into account the pig's own physical condition and semen condition.
The image data and odor data of pig frozen semen are obtained, combined with the physical data of the pig group, and the sperm quality is comprehensively analyzed through image abnormality analysis, odor abnormality analysis and physical abnormality analysis models, and sperm classification and selection are carried out.
It improves the efficiency and accuracy of sperm quality judgment, and reduces the error rate by judging semen quality through multi-source data fusion.
Smart Images

Figure CN118396998B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of data management, and in particular to an intelligent pig frozen semen management method and system. Background Art
[0002] The management of porcine frozen semen is a complex biotechnological process involving the collection, processing, freezing, storage, thawing and application of semen. The following are the key steps and considerations for the management of porcine frozen semen: Aseptic operating procedures must be strictly followed during the collection process to avoid contamination. The collected semen needs to be diluted to optimize sperm survival and freezing effect. When freezing semen, liquid nitrogen (-196°C) or dry ice (-79°C) is used as a cooling source. Frozen semen needs to be stored in a dark, constant temperature (usually at -196°C) and dry environment. Through the above management measures, the quality and effectiveness of porcine frozen semen can be ensured, providing strong support for pig reproduction and genetic improvement.
[0003] The management and utilization of pig semen are of great significance to pig reproduction and breeding. Traditional pig semen management methods usually require manual operation, which is prone to errors. At the same time, it is difficult to effectively monitor the quality and demand forecast of large-scale semen. Therefore, the development of an intelligent pig frozen semen management method and system can improve management efficiency and improve semen quality, thus having broad application prospects in animal husbandry.
[0004] The prior art cannot conduct an effective comprehensive analysis of the sperm quality of pig semen through multi-source data fusion in advance when managing pig semen collection. The prior art usually analyzes the sperm quality through a single variable, and cannot take into account the physical condition of the pig itself and the condition of the semen itself before and after semen collection. As a result, the process of sperm classification and selection based on sperm quality is relatively slow, and the error rate is high. The above problems exist in the prior art (for example, in the invention patents with authorization publication numbers CN117114749B and CN116952797A);
[0005] In order to solve these problems, the present application designs an intelligent pig frozen semen management method and system. Summary of the invention
[0006] In view of the deficiencies in the prior art, the present invention proposes an intelligent pig frozen semen management method and system, which obtains image data and odor data of pig frozen semen that needs to be evaluated, and simultaneously obtains physical data of pigs in a pig herd, imports the image data of the pig frozen semen that needs to be evaluated into an image abnormality analysis model for image abnormality analysis, imports the odor data of the pig frozen semen that needs to be evaluated into an odor abnormality analysis model for odor abnormality analysis, imports the acquired physical data of the pigs in the pig herd into a physical abnormality analysis model for pig physical abnormality analysis, comprehensively analyzes sperm quality based on the image abnormality analysis results, the odor abnormality analysis results and the pig physical abnormality analysis results, classifies and selects sperm according to sperm quality, judges the quality of pig frozen semen through multi-source data fusion, comprehensively and accurately analyzes sperm quality, and improves the efficiency and accuracy of sperm quality judgment.
[0007] To achieve the above object, the present invention provides the following technical solution: an intelligent pig frozen semen management method, comprising the following specific steps:
[0008] Obtain image data and odor data of frozen semen of pigs that need to be evaluated, and simultaneously obtain physical data of pigs in the herd;
[0009] Importing image data of frozen pig semen to be evaluated into an image abnormality analysis model for image abnormality analysis;
[0010] Importing the odor data of the frozen semen of the pigs to be evaluated into the odor abnormality analysis model to perform odor abnormality analysis;
[0011] Importing the acquired physical fitness data of the pigs in the pig herd into the physical fitness abnormality analysis model to perform physical fitness abnormality analysis on the pigs;
[0012] The sperm quality is comprehensively analyzed based on the results of image abnormality analysis, odor abnormality analysis and pig physique abnormality analysis, and sperm is classified and selected based on sperm quality.
[0013] As a preferred technical solution for an intelligent pig frozen semen management method, the method of obtaining the image data and odor data of the pig frozen semen to be evaluated and simultaneously obtaining the physical data of the pigs in the herd includes the following specific steps:
[0014] S11, acquiring image data of frozen pig semen to be evaluated through an image acquisition terminal, importing the image data into an image analysis software to obtain pixel value data of each pixel point of the image data, and storing the data in an image storage module;
[0015] S12. Obtain the emission data of various gases in the gas emitted by the frozen semen of the pig that needs to be evaluated through the gas collection terminal, and store it in the odor storage module
[0016] S13. Collect the data of physical changes of the pig during the semen collection process through the physical information collection terminal, wherein the physical change data includes physical temperature data, physical respiratory rate data, blood oxygen saturation data and blood pressure data, and store them in a physical change storage module.
[0017] As a preferred technical solution for an intelligent pig frozen semen management method, the method of importing the image data of the pig frozen semen to be evaluated into an image abnormality analysis model for image abnormality analysis includes the following specific contents:
[0018] S21, obtaining pixel value data of each pixel point of the image data of the pig frozen semen to be evaluated, and extracting pixel average value range data of the normal pig frozen semen;
[0019] S22, the pixel value data of each pixel point of the image data of the pig frozen semen to be evaluated and the pixel average value range data of the normal pig frozen semen are introduced into the pixel abnormality analysis formula to calculate the pixel abnormality analysis value, wherein the pixel abnormality analysis value calculation formula is: , where n is the number of pixels of the image data of the pig frozen semen that needs to be evaluated, xi is the pixel value data of the i-th pixel of the image data of the pig frozen semen that needs to be evaluated, xc is the median value of the pixel average value range data of normal pig frozen semen, xmax is the maximum value of the pixel average value range data of normal pig frozen semen, and xmin is the minimum value of the pixel average value range data of normal pig frozen semen;
[0020] S23, obtaining two microscopic images of pig semen within the first set time, obtaining the movement distance of each sperm on the two microscopic photos, and simultaneously obtaining the standard distance of normal sperm movement within the first set time, and importing the movement distance of each sperm on the two microscopic photos and the standard distance of normal sperm movement within the first set time into the sperm motility abnormal value calculation formula to calculate the sperm motility abnormal value, wherein the sperm motility abnormal value calculation formula is: , where m is the number of sperm in the microscopic image, yj is the moving distance of the jth sperm in the first set time, and yk is the standard distance of normal sperm movement in the first set time;
[0021] As a preferred technical solution for an intelligent pig frozen semen management method, the first set time here is flexibly set according to the sperm collection time, preferably 1 second to 3 seconds;
[0022] As a preferred technical solution for an intelligent pig frozen semen management method, the method of importing the odor data of the pig frozen semen to be evaluated into the odor abnormality analysis model for odor abnormality analysis includes the following specific steps:
[0023] S31, obtaining emission data of various gases in the gas emitted within a first set time from the frozen semen of pigs to be evaluated;
[0024] S32, obtaining the emission range of various gases in the gas emitted within the first set time of normal semen, substituting the emission data of various gases in the gas emitted within the first set time of the frozen semen of the pig to be evaluated and the emission range of various gases in the gas emitted within the first set time of normal semen into the calculation formula of the odor abnormality analysis value to calculate the odor abnormality analysis value, wherein the calculation formula of the odor abnormality analysis value is: ,in, is the proportion coefficient of the cth abnormal gas, s is the type of abnormal gas, pcmax is the maximum value of the emission range of the cth gas in the gas emitted during the first set time of normal semen, and pc is the emission data of the cth gas in the gas emitted during the first set time of the frozen semen of pigs to be evaluated, where: .
[0025] As a preferred technical solution for an intelligent pig frozen semen management method, the physical data of the pigs in the herd are imported into a physical abnormality analysis model to perform physical abnormality analysis on the pigs, which includes the following specific steps:
[0026] S41, obtaining the data of the physical changes of the pigs within a second set time before and after the semen collection process, and obtaining the physical changes of normal pigs within a safe range;
[0027] S42, importing the data of the pig's physical condition change within the second set time before and after the semen collection process and the physical condition change safety range data of normal pigs into the physical condition abnormality analysis value calculation formula to calculate the physical condition abnormality analysis value, wherein the physical condition abnormality analysis value calculation formula is:
[0028] ,in, is the proportion coefficient of the zth constitution type, T is the duration of the second set time, is the specific value of the zth physical type at time t, The closest to the safe range of the zth physical type The value of , dt is the integral of time, It is the maximum value minus the minimum value of the safety range for the zth individual constitution type.
[0029] It should be noted that the second set time here is preferably one to two days;
[0030] As a preferred technical solution for an intelligent pig frozen semen management method, the specific steps of comprehensively analyzing the sperm quality based on the image abnormality analysis results, the odor abnormality analysis results and the pig physical abnormality analysis results, and classifying and selecting sperm according to the sperm quality are as follows:
[0031] Obtain the calculated pixel abnormality analysis value, sperm motility abnormality value, odor abnormality analysis value, and physical abnormality analysis value, and substitute the obtained pixel abnormality analysis value, sperm motility abnormality value, odor abnormality analysis value, and physical abnormality analysis value into the sperm quality analysis value calculation formula to calculate the sperm quality analysis value, wherein the sperm quality analysis value calculation formula is: ,in, is the pixel abnormality ratio, is the percentage of abnormal sperm motility, is the proportion of abnormal smell, is the proportion of physical abnormalities, exp() is the power of e, where, , compare the calculated sperm quality analysis value with the set sperm quality analysis threshold. If the sperm quality analysis value is greater than or equal to the set sperm quality analysis threshold, the pig frozen semen that needs to be evaluated will be set as normal semen and stored for future use. If the sperm quality analysis value is less than the set sperm quality analysis threshold, the pig frozen semen that needs to be evaluated will be set as abnormal semen and will not be stored.
[0032] An intelligent pig frozen semen management system is implemented based on the above-mentioned intelligent pig frozen semen management method, which specifically includes:
[0033] A data acquisition module, used to acquire image data and odor data of frozen semen of pigs to be evaluated, and simultaneously acquire physical data of pigs in the herd;
[0034] An image abnormality analysis module, used for importing the image data of the frozen semen of the pig to be evaluated into the image abnormality analysis model for image abnormality analysis;
[0035] An odor abnormality analysis module is used to import the odor data of the frozen semen of the pig to be evaluated into the odor abnormality analysis model to perform odor abnormality analysis;
[0036] A pig physical abnormality analysis module is used to import the acquired physical data of pigs in a pig group into a physical abnormality analysis model to perform physical abnormality analysis on pigs;
[0037] The classification and selection module is used to comprehensively analyze the sperm quality based on the results of image abnormality analysis, odor abnormality analysis and pig physical abnormality analysis, and classify and select sperm according to sperm quality;
[0038] The control module is used to control the operation of the data acquisition module, the image abnormality analysis module, the odor abnormality analysis module, the pig physical abnormality analysis module and the classification and selection module.
[0039] An electronic device comprises: a processor and a memory, wherein the memory stores a computer program that can be called by the processor;
[0040] The processor executes the above-mentioned intelligent pig frozen semen management method by calling the computer program stored in the memory.
[0041] A computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned intelligent pig frozen semen management method.
[0042] Compared with the prior art, the present invention has the following beneficial effects:
[0043] The present invention obtains image data and odor data of frozen semen of pigs that need to be evaluated, and simultaneously obtains physical fitness data of pigs in a pig herd, imports the image data of frozen semen of pigs that need to be evaluated into an image abnormality analysis model for image abnormality analysis, imports the odor data of frozen semen of pigs that need to be evaluated into an odor abnormality analysis model for odor abnormality analysis, imports the physical fitness data of the pigs in the acquired pig herd into the physical fitness abnormality analysis model for pig physical fitness abnormality analysis, comprehensively analyzes sperm quality based on the image abnormality analysis results, the odor abnormality analysis results and the pig physical fitness abnormality analysis results, classifies and selects sperm according to sperm quality, judges the quality of frozen semen of pigs through multi-source data fusion, comprehensively and accurately analyzes sperm quality, and improves sperm quality judgment efficiency and judgment accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0045] Figure 1 This is a schematic diagram of the overall process of Example 2 of an intelligent pig frozen semen management method of the present invention;
[0046] Figure 2 This is a schematic diagram of the overall process of Example 1 of an intelligent pig frozen semen management method of the present invention;
[0047] Figure 3 It is a schematic diagram of the overall process of the prior art corresponding to the present invention;
[0048] Figure 4 This is a schematic diagram of the overall framework of an intelligent pig frozen semen management system of the present invention. DETAILED DESCRIPTION
[0049] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the embodiments of the specification.
[0050] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0051] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
[0052] Example 1
[0053] First see Figure 3 The technical solution in the prior art (CN116952797A) is roughly as follows: obtaining the image data and odor data of the frozen semen of the pigs to be evaluated, and obtaining the physical data of the pigs in the pig herd at the same time, importing the image data of the frozen semen of the pigs to be evaluated into the image abnormality analysis model for image abnormality analysis, comprehensively analyzing the sperm quality based on the image abnormality analysis results, and classifying and selecting sperm according to the sperm quality;
[0054] The problem solved by this embodiment relative to the prior art is that the prior art cannot perform effective comprehensive analysis of the sperm quality of the pig semen by multi-source data fusion in advance when managing the collection of pig semen. The prior art usually analyzes the sperm quality by a single variable, and cannot take into account the physical condition of the pig itself before and after the semen collection and the condition of the semen itself, resulting in a relatively slow process of sperm classification and selection based on sperm quality, and a high error rate.
[0055] See also Figure 2 In order to solve the above problems, the specific implementation of this embodiment is: an intelligent pig frozen semen management method, including the following specific steps:
[0056] Obtain image data and odor data of frozen semen of pigs that need to be evaluated, and simultaneously obtain physical data of pigs in the herd;
[0057] Importing image data of frozen pig semen to be evaluated into an image abnormality analysis model for image abnormality analysis;
[0058] Importing the acquired physical fitness data of the pigs in the pig herd into the physical fitness abnormality analysis model to perform physical fitness abnormality analysis on the pigs;
[0059] Comprehensively analyze the sperm quality based on the abnormal image analysis results, odor analysis results, and pig physical abnormality analysis results, and classify and select sperm according to sperm quality;
[0060] In this embodiment, obtaining image data and odor data of frozen semen of pigs to be evaluated and simultaneously obtaining physical data of pigs in a herd includes the following specific steps:
[0061] S11, acquiring image data of frozen pig semen to be evaluated through an image acquisition terminal, importing the image data into an image analysis software to obtain pixel value data of each pixel point of the image data, and storing the data in an image storage module;
[0062] The following is a C language code example for obtaining image data of frozen pig semen that needs to be evaluated and importing the image data into image analysis software to obtain the pixel value of each pixel point:
[0063] #include<stdio.h>
[0064] #include<stdlib.h>
[0065] #include<string.h>
[0066] #define IMAGE_WIDTH 640 / / Image width
[0067] #define IMAGE_HEIGHT 480 / / Image height
[0068] / / Image data structure
[0069] typedef struct {
[0070] unsigned char* pixels; / / pixel data array
[0071] int width; / / Image width
[0072] int height; / / Image height
[0073] } ImageData;
[0074] / / Read the image file and return the image data structure pointer
[0075] ImageData* readImageFile(const char* filename) {
[0076] ImageData* imageData = (ImageData*)malloc(sizeof(ImageData));
[0077] imageData->pixels = (unsigned char*)malloc(IMAGE_WIDTH * IMAGE_HEIGHT);
[0078] FILE* fp = fopen(filename, "rb");
[0079] if (fp == NULL) {
[0080] printf("Failed to open image file.\n");
[0081] free(imageData->pixels);
[0082] free(imageData);
[0083] return NULL;
[0084] }
[0085] fread(imageData->pixels, sizeof(unsigned char), IMAGE_WIDTH *IMAGE_HEIGHT, fp);
[0086] fclose(fp);
[0087] imageData->width = IMAGE_WIDTH;
[0088] imageData->height = IMAGE_HEIGHT;
[0089] return imageData;
[0090] }
[0091] / / Convert the image data structure pointer to an array of pointers to pixel data
[0092] void* imageToPixels(ImageData* imageData) {
[0093] void* pixels = malloc(sizeof(unsigned char*) * imageData->height);
[0094] for (int i = 0; i <imagedata->height; i++) {
[0095] pixels[i] = imageData->pixels + i * imageData->width * sizeof(unsigned char);
[0096] }
[0097] return pixels;
[0098] }
[0099] / / Get the pixel value of each pixel in the image analysis software
[0100] int getPixelValue(void* pixels, int x, int y) {
[0101] return *((unsigned char*)pixels[y] + x);
[0102] }
[0103] In the above code, an image data structure ImageData is first defined, which contains information such as pixel data array, image width and height. Then a readImageFile function is defined to read the image file and return the image data structure pointer. In this function, it is necessary to allocate the pixel data array and the corresponding memory space, and open the image file for reading. If the read fails, the allocated memory is released and NULL is returned. Then an imageToPixels function is defined to convert the image data structure pointer into an array of pointers to pixel data. Finally, a getPixelValue function is defined to obtain the pixel value at a specified position in the image analysis software. When calling the getPixelValue function, you need to pass in a pointer to the pixel data, the row index and column index of the pixel in the array;
[0104] S13, collecting the physical change data of the pig during the semen collection process through the physical information collection terminal, wherein the physical change data includes physical temperature data, physical respiratory rate data, blood oxygen saturation data and blood pressure data, and storing them in the physical change storage module;
[0105] The physical condition information collection terminal is used to collect data on physical changes of pigs during the semen collection process; physical temperature data, physical respiratory rate data, blood oxygen saturation data and blood pressure data are important indicators for measuring the physical condition of pigs;
[0106] The physical information collection terminal needs to be installed during the semen collection process to ensure that the physical change data of the pig can be accurately obtained. At the same time, the physical change storage module needs to be correctly connected and the storage parameters set;
[0107] During the semen collection process, the physical information collection terminal will collect the pig's physical change data in real time, including body temperature, respiratory rate, blood oxygen saturation and blood pressure; the collected data will be transmitted to the server or database via the Internet or mobile network for subsequent analysis and processing;
[0108] The physical fitness change data will be stored in the physical fitness change storage module for subsequent analysis and processing;
[0109] The collected data is processed and analyzed to understand the physical changes of the pigs during the semen collection process, such as changes in body temperature that may reflect the pigs' body heat, changes in breathing rate that may reflect their physical fatigue, and changes in blood oxygen saturation and blood pressure that may reflect their body's oxygen supply and vascular health, etc.;
[0110] In this embodiment, the image data of frozen pig semen to be evaluated is imported into the image abnormality analysis model for image abnormality analysis, which includes the following specific contents:
[0111] S21, obtaining pixel value data of each pixel point of the image data of the pig frozen semen to be evaluated, and extracting pixel average value range data of the normal pig frozen semen;
[0112] S22, the pixel value data of each pixel point of the image data of the pig frozen semen to be evaluated and the pixel average value range data of the normal pig frozen semen are introduced into the pixel abnormality analysis formula to calculate the pixel abnormality analysis value, wherein the pixel abnormality analysis value calculation formula is: , where n is the number of pixels of the image data of the pig frozen semen that needs to be evaluated, xi is the pixel value data of the i-th pixel of the image data of the pig frozen semen that needs to be evaluated, xc is the median value of the pixel average value range data of normal pig frozen semen, xmax is the maximum value of the pixel average value range data of normal pig frozen semen, and xmin is the minimum value of the pixel average value range data of normal pig frozen semen;
[0113] S23, obtaining two microscopic images of pig semen within the first set time, obtaining the movement distance of each sperm on the two microscopic photos, and simultaneously obtaining the standard distance of normal sperm movement within the first set time, and importing the movement distance of each sperm on the two microscopic photos and the standard distance of normal sperm movement within the first set time into the sperm motility abnormal value calculation formula to calculate the sperm motility abnormal value, wherein the sperm motility abnormal value calculation formula is: , where m is the number of sperm in the microscopic image, yj is the moving distance of the jth sperm in the first set time, and yk is the standard distance of normal sperm movement in the first set time;
[0114] In this embodiment, the first set time here is flexibly set according to the sperm collection time, preferably 1 second to 3 seconds;
[0115] In this embodiment, the physical fitness data of the pigs in the herd are imported into the physical fitness abnormality analysis model to perform physical fitness abnormality analysis on the pigs, including the following specific steps:
[0116] S41, obtaining the data of the physical changes of the pigs within a second set time before and after the semen collection process, and obtaining the physical changes of normal pigs within a safe range;
[0117] S42, importing the data of the pig's physical condition change within the second set time before and after the semen collection process and the physical condition change safety range data of normal pigs into the physical condition abnormality analysis value calculation formula to calculate the physical condition abnormality analysis value, wherein the physical condition abnormality analysis value calculation formula is: ,in, is the proportion coefficient of the zth constitution type, T is the duration of the second set time, is the specific value of the zth physical type at time t, The closest to the safe range of the zth physical type The value of , dt is the integral of time, The maximum value minus the minimum value of the safety range of the zth individual constitution type;
[0118] In this embodiment, the second set time here is preferably one to two days;
[0119] In this embodiment, the results of image abnormality analysis, odor abnormality analysis and pig physical abnormality analysis are used to comprehensively analyze the sperm quality, and the specific steps of sperm classification and selection according to sperm quality are as follows:
[0120] Obtain the calculated pixel abnormality analysis value, sperm motility abnormality value, odor abnormality analysis value, and physical abnormality analysis value, and substitute the obtained pixel abnormality analysis value, sperm motility abnormality value, odor abnormality analysis value, and physical abnormality analysis value into the sperm quality analysis value calculation formula to calculate the sperm quality analysis value, wherein the sperm quality analysis value calculation formula is: ,in, is the pixel abnormality ratio, The percentage of abnormal sperm motility, is the proportion of physical abnormalities, exp() is the power of e, where, , compare the calculated sperm quality analysis value with the set sperm quality analysis threshold. If the sperm quality analysis value is greater than or equal to the set sperm quality analysis threshold, the pig frozen semen that needs to be evaluated will be set as normal semen and stored for future use. If the sperm quality analysis value is less than the set sperm quality analysis threshold, the pig frozen semen that needs to be evaluated will be set as abnormal semen and will not be stored.
[0121] It should be noted that the pixel abnormality ratio, sperm motility abnormality ratio, physical abnormality ratio, sperm quality analysis threshold and the ratio coefficient of the zth physical type are obtained in the following manner: at least five thousand sets of image data and odor data of frozen semen of pigs that need to be evaluated are obtained, and the physical data of pigs in the pig herd are obtained at the same time, 50 experts in this field are hired to analyze and judge the sperm quality, and the image data and odor data of frozen semen of pigs that need to be evaluated and the physical data of pigs in the pig herd are substituted into the sperm quality analysis value calculation formula to calculate the sperm quality analysis value, and the calculated quality analysis value and the results of the expert's analysis and judgment of sperm quality are imported into the fitting software, and the pixel abnormality ratio, sperm motility abnormality ratio, physical abnormality ratio, sperm quality analysis threshold and the ratio coefficient of the zth physical type that meet the highest judgment accuracy are output;
[0122] It should be noted here that the advantages of this embodiment over the prior art are: obtaining image data and odor data of pig frozen semen that needs to be evaluated, and at the same time obtaining physical data of pigs in the herd, importing the image data of pig frozen semen that needs to be evaluated into the image abnormality analysis model for image abnormality analysis, importing the acquired physical data of the pigs in the herd into the physical abnormality analysis model for physical abnormality analysis of pigs, comprehensively analyzing the sperm quality based on the image abnormality analysis results and the physical abnormality analysis results of the pigs, classifying and selecting sperm according to the sperm quality, judging the quality of pig frozen semen through multi-source data fusion, and comprehensively and accurately analyzing the sperm quality, thereby improving the efficiency and accuracy of sperm quality judgment.
[0123] Example 2
[0124] like Figure 1 As shown, this embodiment adds an implementation method of importing the odor data of frozen pig semen to be evaluated into the odor abnormality analysis model to perform odor abnormality analysis on the basis of Example 1, which further improves the efficiency and accuracy of sperm quality judgment. The specific implementation method is as follows:
[0125] An intelligent pig frozen semen management method comprises the following specific steps:
[0126] Obtain image data and odor data of frozen semen of pigs that need to be evaluated, and simultaneously obtain physical data of pigs in the herd;
[0127] Importing image data of frozen pig semen to be evaluated into an image abnormality analysis model for image abnormality analysis;
[0128] Importing the odor data of the frozen semen of the pigs to be evaluated into the odor abnormality analysis model to perform odor abnormality analysis;
[0129] Importing the acquired physical fitness data of the pigs in the pig herd into the physical fitness abnormality analysis model to perform physical fitness abnormality analysis on the pigs;
[0130] The sperm quality is comprehensively analyzed based on the results of image abnormality analysis, odor abnormality analysis and pig physique abnormality analysis, and sperm is classified and selected based on sperm quality.
[0131] In this embodiment, obtaining image data and odor data of frozen semen of pigs to be evaluated and simultaneously obtaining physical data of pigs in a herd includes the following specific steps:
[0132] S11, acquiring image data of frozen pig semen to be evaluated through an image acquisition terminal, importing the image data into an image analysis software to obtain pixel value data of each pixel point of the image data, and storing the data in an image storage module;
[0133] S12. The emission data of various gases in the gas emitted from the frozen semen of pigs to be evaluated are obtained through the gas collection terminal and stored in the odor storage module. The odor of semen is composed of a variety of chemical substances, including volatile organic compounds (VOCs), sulfides (such as hydrogen sulfide) and ammonia. The odor in semen mainly comes from the following gases and chemicals:
[0134] 1. Ammonia: Ammonia is a gas with a pungent odor. It is produced by the decomposition of urea in semen. Urea is a product of protein metabolism. Bacteria can decompose urea into ammonia and carbon dioxide.
[0135] 2. Hydrogen sulfide: Hydrogen sulfide is a gas with a rotten egg smell that may be produced by bacteria breaking down sulfate in semen;
[0136] 3. Methane: Methane is a colorless, odorless gas, but in some cases, it may also be present in semen;
[0137] 4. Volatile organic compounds (VOCs): These compounds include a variety of gases, such as acetaldehyde, acetone, benzene, etc., which may be produced by the decomposition of organic matter in semen;
[0138] The smell of semen may vary depending on individual differences, diet, health status and environmental factors;
[0139] S13. Collect the data of physical changes of the pig during the semen collection process through the physical information collection terminal, wherein the physical change data includes physical temperature data, physical respiratory rate data, blood oxygen saturation data and blood pressure data, and store them in a physical change storage module.
[0140] In this embodiment, the image data of frozen pig semen to be evaluated is imported into the image abnormality analysis model for image abnormality analysis, which includes the following specific contents:
[0141] S21, obtaining pixel value data of each pixel point of the image data of the pig frozen semen to be evaluated, and extracting pixel average value range data of the normal pig frozen semen;
[0142] S22, the pixel value data of each pixel point of the image data of the pig frozen semen to be evaluated and the pixel average value range data of the normal pig frozen semen are introduced into the pixel abnormality analysis formula to calculate the pixel abnormality analysis value, wherein the pixel abnormality analysis value calculation formula is: , where n is the number of pixels of the image data of the pig frozen semen that needs to be evaluated, xi is the pixel value data of the i-th pixel of the image data of the pig frozen semen that needs to be evaluated, xc is the median value of the pixel average value range data of normal pig frozen semen, xmax is the maximum value of the pixel average value range data of normal pig frozen semen, and xmin is the minimum value of the pixel average value range data of normal pig frozen semen;
[0143] S23, obtaining two microscopic images of pig semen within the first set time, obtaining the movement distance of each sperm on the two microscopic photos, and simultaneously obtaining the standard distance of normal sperm movement within the first set time, and importing the movement distance of each sperm on the two microscopic photos and the standard distance of normal sperm movement within the first set time into the sperm motility abnormal value calculation formula to calculate the sperm motility abnormal value, wherein the sperm motility abnormal value calculation formula is: , where m is the number of sperm in the microscopic image, yj is the moving distance of the jth sperm in the first set time, and yk is the standard distance of normal sperm movement in the first set time;
[0144] In this embodiment, the first set time here is flexibly set according to the sperm collection time, preferably 1 second to 3 seconds;
[0145] In this embodiment, the odor data of frozen pig semen to be evaluated is imported into the odor abnormality analysis model for odor abnormality analysis, which includes the following specific steps:
[0146] S31, obtaining emission data of various gases in the gas emitted within a first set time from the frozen semen of the pig to be evaluated;
[0147] S32, obtaining the emission range of various gases in the gas emitted within the first set time of normal semen, substituting the emission data of various gases in the gas emitted within the first set time of the frozen semen of the pig to be evaluated and the emission range of various gases in the gas emitted within the first set time of normal semen into the calculation formula of the odor abnormality analysis value to calculate the odor abnormality analysis value, wherein the calculation formula of the odor abnormality analysis value is: ,in, is the proportion coefficient of the cth abnormal gas, s is the type of abnormal gas, pcmax is the maximum value of the emission range of the cth gas in the gas emitted during the first set time of normal semen, and pc is the emission data of the cth gas in the gas emitted during the first set time of the frozen semen of pigs to be evaluated, where: .
[0148] In this embodiment, the physical fitness data of the pigs in the herd are imported into the physical fitness abnormality analysis model to perform physical fitness abnormality analysis on the pigs, including the following specific steps:
[0149] S41, obtaining the data of the physical changes of the pigs within a second set time before and after the semen collection process, and obtaining the physical changes of normal pigs within a safe range;
[0150] S42, importing the data of the pig's physical condition change within the second set time before and after the semen collection process and the physical condition change safety range data of normal pigs into the physical condition abnormality analysis value calculation formula to calculate the physical condition abnormality analysis value, wherein the physical condition abnormality analysis value calculation formula is: ,in, is the proportion coefficient of the zth constitution type, T is the duration of the second set time, is the specific value of the zth physical type at time t, The closest to the safe range of the zth physical type The value of , dt is the integral of time, It is the maximum value minus the minimum value of the safety range for the zth individual constitution type.
[0151] In this embodiment, the second set time here is preferably one to two days;
[0152] In this embodiment, the results of image abnormality analysis, odor abnormality analysis and pig physical abnormality analysis are used to comprehensively analyze the sperm quality, and the specific steps of sperm classification and selection according to sperm quality are as follows:
[0153] Obtain the calculated pixel abnormality analysis value, sperm motility abnormality value, odor abnormality analysis value, and physical abnormality analysis value, and substitute the obtained pixel abnormality analysis value, sperm motility abnormality value, odor abnormality analysis value, and physical abnormality analysis value into the sperm quality analysis value calculation formula to calculate the sperm quality analysis value, wherein the sperm quality analysis value calculation formula is: ,in, is the pixel abnormality ratio, The percentage of abnormal sperm motility, is the proportion of abnormal smell, is the proportion of physical abnormalities, exp() is the power of e, where, , compare the calculated sperm quality analysis value with the set sperm quality analysis threshold. If the sperm quality analysis value is greater than or equal to the set sperm quality analysis threshold, the pig frozen semen that needs to be evaluated will be set as normal semen and stored for future use. If the sperm quality analysis value is less than the set sperm quality analysis threshold, the pig frozen semen that needs to be evaluated will be set as abnormal semen and will not be stored.
[0154] In this embodiment, the pixel abnormality ratio, sperm motility abnormality ratio, odor abnormality ratio, physical abnormality ratio, sperm quality analysis threshold, c-th abnormal gas ratio coefficient and z-th physical type ratio coefficient are determined as follows: at least five thousand sets of image data and odor data of frozen semen of pigs that need to be evaluated are obtained, and at the same time, the physical data of pigs in the herd are obtained, and 50 experts in this field are hired to analyze and judge the sperm quality, and the image data and odor data of frozen semen of pigs that need to be evaluated and the physical data of pigs in the herd are substituted into the sperm quality analysis value calculation formula to calculate the sperm quality analysis value, and the calculated quality analysis value and the results of the expert analysis and judgment on the sperm quality are imported into the fitting software, and the pixel abnormality ratio, sperm motility abnormality ratio, odor abnormality ratio, physical abnormality ratio, sperm quality analysis threshold, c-th abnormal gas ratio coefficient and z-th physical type ratio coefficient that meet the highest judgment accuracy are output.
[0155] It should be noted here that the advantages of this embodiment over the prior art are: obtaining image data and odor data of pig frozen semen that needs to be evaluated, and simultaneously obtaining physical data of pigs in the herd, importing the image data of pig frozen semen that needs to be evaluated into the image abnormality analysis model for image abnormality analysis, importing the odor data of pig frozen semen that needs to be evaluated into the odor abnormality analysis model for odor abnormality analysis, importing the acquired physical data of the pigs in the herd into the physical abnormality analysis model for pig physical abnormality analysis, comprehensively analyzing the sperm quality based on the image abnormality analysis results, the odor abnormality analysis results and the pig physical abnormality analysis results, classifying and selecting sperm according to sperm quality, judging the quality of pig frozen semen through multi-source data fusion, comprehensively and accurately analyzing the sperm quality, and improving the efficiency and accuracy of sperm quality judgment.
[0156] Example 3
[0157] like Figure 4 As shown, an intelligent pig frozen semen management system is implemented based on the above-mentioned intelligent pig frozen semen management method, which specifically includes: a data acquisition module, used to obtain image data and odor data of pig frozen semen that needs to be evaluated, and at the same time obtain physical data of pigs in the pig herd;
[0158] An image abnormality analysis module, used for importing the image data of the frozen semen of the pig to be evaluated into the image abnormality analysis model for image abnormality analysis;
[0159] An odor abnormality analysis module is used to import the odor data of the frozen semen of the pig to be evaluated into the odor abnormality analysis model to perform odor abnormality analysis;
[0160] A pig physical abnormality analysis module is used to import the acquired physical data of pigs in a pig group into a physical abnormality analysis model to perform physical abnormality analysis on pigs;
[0161] The classification and selection module is used to comprehensively analyze the sperm quality based on the results of image abnormality analysis, odor abnormality analysis and pig physical abnormality analysis, and classify and select sperm according to sperm quality;
[0162] The control module is used to control the operation of the data acquisition module, the image abnormality analysis module, the odor abnormality analysis module, the pig physical abnormality analysis module and the classification and selection module.
[0163] Example 4
[0164] This embodiment provides an electronic device, including: a processor and a memory, wherein the memory stores a computer program that can be called by the processor;
[0165] The processor executes the above-mentioned intelligent pig frozen semen management method by calling the computer program stored in the memory.
[0166] The electronic device may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) and one or more memories, wherein the memory stores at least one computer program, which is loaded and executed by the processor to implement an intelligent pig frozen semen management method provided by the above method embodiment.
[0167] Example 5
[0168] This embodiment provides a computer-readable storage medium having a rewritable computer program stored thereon;
[0169] When the computer program runs on a computer device, the computer device executes the above-mentioned intelligent pig frozen semen management method.
[0170] For example, the computer readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.
[0171] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention is described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. An intelligent pig frozen semen management method, characterized in that: The specific steps include: Obtain image data and odor data of frozen semen of pigs that need to be evaluated, and simultaneously obtain physical data of pigs in the herd; Importing image data of frozen pig semen to be evaluated into an image abnormality analysis model for image abnormality analysis; Importing the odor data of the frozen semen of the pigs to be evaluated into the odor abnormality analysis model to perform odor abnormality analysis; Importing the acquired physical fitness data of the pigs in the pig herd into the physical fitness abnormality analysis model to perform physical fitness abnormality analysis on the pigs; Comprehensively analyze the sperm quality based on the abnormal image analysis results, odor analysis results, and pig physical abnormality analysis results, and classify and select sperm according to sperm quality; The step of importing the image data of frozen pig semen to be evaluated into the image abnormality analysis model for image abnormality analysis includes the following specific contents: S21, obtaining pixel value data of each pixel point of the image data of the pig frozen semen to be evaluated, and extracting pixel average value range data of the normal pig frozen semen; S22, the pixel value data of each pixel point of the image data of the pig frozen semen to be evaluated and the pixel average value range data of the normal pig frozen semen are introduced into the pixel abnormality analysis formula to calculate the pixel abnormality analysis value, wherein the pixel abnormality analysis value calculation formula is: , where n is the number of pixels of the image data of the pig frozen semen that needs to be evaluated, xi is the pixel value data of the i-th pixel of the image data of the pig frozen semen that needs to be evaluated, xc is the median value of the pixel average value range data of normal pig frozen semen, xmax is the maximum value of the pixel average value range data of normal pig frozen semen, and xmin is the minimum value of the pixel average value range data of normal pig frozen semen; S23, obtaining two microscopic images of pig semen within the first set time, obtaining the movement distance of each sperm on the two microscopic photos, and simultaneously obtaining the standard distance of normal sperm movement within the first set time, and importing the movement distance of each sperm on the two microscopic photos and the standard distance of normal sperm movement within the first set time into the sperm motility abnormal value calculation formula to calculate the sperm motility abnormal value, wherein the sperm motility abnormal value calculation formula is: , where m is the number of sperm in the microscopic image, yj is the moving distance of the jth sperm in the first set time, and yk is the standard distance of normal sperm movement in the first set time; The step of importing the odor data of the frozen semen of the pig to be evaluated into the odor abnormality analysis model for odor abnormality analysis comprises the following specific steps: S31, obtaining emission data of various gases in the gas emitted within a first set time from the frozen semen of the pig to be evaluated; S32, obtaining the emission range of various gases in the gas emitted within the first set time of normal semen, substituting the emission data of various gases in the gas emitted within the first set time of the frozen semen of the pig to be evaluated and the emission range of various gases in the gas emitted within the first set time of normal semen into the calculation formula of the odor abnormality analysis value to calculate the odor abnormality analysis value, wherein the calculation formula of the odor abnormality analysis value is: ,in, is the proportion coefficient of the cth abnormal gas, s is the type of abnormal gas, pcmax is the maximum value of the emission range of the cth gas in the gas emitted during the first set time of normal semen, and pc is the emission data of the cth gas in the gas emitted during the first set time of the frozen semen of pigs to be evaluated, where: .
2. An intelligent pig frozen semen management method according to claim 1, characterized in that: The method of obtaining the image data and odor data of the frozen semen of the pigs to be evaluated and simultaneously obtaining the physical data of the pigs in the herd comprises the following specific steps: S11, acquiring image data of frozen pig semen to be evaluated through an image acquisition terminal, importing the image data into an image analysis software to obtain pixel value data of each pixel point of the image data, and storing the data in an image storage module; S12, obtaining emission data of various gases in the gas emitted from the frozen semen of pigs that need to be evaluated through the gas collection terminal, and storing the data in the odor storage module; S13. Collect the data of physical changes of the pig during the semen collection process through the physical information collection terminal, wherein the physical change data includes physical temperature data, physical respiratory rate data, blood oxygen saturation data and blood pressure data, and store them in a physical change storage module.
3. An intelligent pig frozen semen management method according to claim 1, characterized in that: Importing the acquired physical fitness data of the pigs in the pig herd into the physical fitness abnormality analysis model to perform physical fitness abnormality analysis on the pigs includes the following specific steps: S41, obtaining the data of the physical changes of the pigs within a second set time before and after the semen collection process, and obtaining the physical changes of normal pigs within a safe range; S42, importing the data of the pig's physical condition change within the second set time before and after the semen collection process and the physical condition change safety range data of normal pigs into the physical condition abnormality analysis value calculation formula to calculate the physical condition abnormality analysis value, wherein the physical condition abnormality analysis value calculation formula is: ,in, is the proportion coefficient of the zth constitution type, T is the duration of the second set time, is the specific value of the zth physical type at time t, The closest to the safe range of the zth physical type The value of , dt is the integral of time, It is the maximum value minus the minimum value of the safety range for the zth individual constitution type.
4. An intelligent pig frozen semen management method as claimed in claim 3, characterized in that: The specific steps of comprehensively analyzing the sperm quality based on the image abnormality analysis results, the odor abnormality analysis results and the pig physical abnormality analysis results, and classifying and selecting sperm according to the sperm quality are as follows: Obtain the calculated pixel abnormality analysis value, sperm motility abnormality value, odor abnormality analysis value, and physical abnormality analysis value, and substitute the obtained pixel abnormality analysis value, sperm motility abnormality value, odor abnormality analysis value, and physical abnormality analysis value into the sperm quality analysis value calculation formula to calculate the sperm quality analysis value, wherein the sperm quality analysis value calculation formula is: ,in, is the pixel abnormality ratio, The percentage of abnormal sperm motility, is the proportion of abnormal smell, is the proportion of physical abnormalities, exp() is the power of e, where, , compare the calculated sperm quality analysis value with the set sperm quality analysis threshold. If the sperm quality analysis value is greater than or equal to the set sperm quality analysis threshold, the pig frozen semen that needs to be evaluated will be set as normal semen and stored for future use. If the sperm quality analysis value is less than the set sperm quality analysis threshold, the pig frozen semen that needs to be evaluated will be set as abnormal semen and will not be stored.
5. An intelligent pig frozen semen management system, which is implemented based on the intelligent pig frozen semen management method according to any one of claims 1 to 4, characterized in that: Specifically include: A data acquisition module, used to acquire image data and odor data of frozen semen of pigs to be evaluated, and simultaneously acquire physical data of pigs in the herd; An image abnormality analysis module, used for importing the image data of the frozen semen of the pig to be evaluated into the image abnormality analysis model for image abnormality analysis; An odor abnormality analysis module is used to import the odor data of the frozen semen of the pig that needs to be evaluated into the odor abnormality analysis model to perform odor abnormality analysis; A pig physical abnormality analysis module is used to import the acquired physical data of pigs in a pig group into a physical abnormality analysis model to perform physical abnormality analysis on pigs; The classification and selection module is used to comprehensively analyze the sperm quality based on the results of image abnormality analysis, odor abnormality analysis and pig physical abnormality analysis, and to classify and select sperm according to sperm quality; The control module is used to control the operation of the data acquisition module, the image abnormality analysis module, the odor abnormality analysis module, the pig physical abnormality analysis module and the classification and selection module.
Citation Information
Patent Citations
Semen quality evaluation method and device, electronic equipment and storage medium
CN116952797A
Intelligent pig frozen semen management method and system
CN117114749B
Method for freezing-storing, diluting and freezing boar semen particles
CN102986651A
Sheep frozen semen production technology
CN109258621A
Animal oestrus monitoring device and method
CN112586391A
