An interactive pig breeding and mating method and computer program product

By using an interactive pig breeding and mating method, which automatically generates mating plans using computer programs, the problem of low efficiency in existing technologies has been solved, and efficient transmission of superior genes and genetic progress have been achieved.

CN122139696APending Publication Date: 2026-06-05GUANGZHOU AIPEC BREEDING TECH CONSULTING CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GUANGZHOU AIPEC BREEDING TECH CONSULTING CO LTD
Filing Date
2026-03-27
Publication Date
2026-06-05

AI Technical Summary

Technical Problem

Existing pig breeding and mating systems rely on human experience, which is inefficient and prone to errors, and cannot efficiently achieve the transmission of superior genes and genetic progress.

Method used

An interactive pig breeding and mating method is adopted. A mating plan is generated by a computer program, a comprehensive breeding value is calculated based on a multi-trait BLUP model, and a pairing tag is automatically generated by combining the kinship coefficient and preset mating rules. User interaction is supported to generate the final mating plan.

Benefits of technology

It has improved the efficiency and accuracy of breeding and selection, reduced human error, and achieved efficient transmission of superior genes and genetic progress.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122139696A_ABST
    Figure CN122139696A_ABST
Patent Text Reader

Abstract

The application discloses an interactive pig breeding and mating method and a computer program product. The mating method is as follows: pedigree data, trait data and genotype data of multiple mating female pigs and multiple mating male pigs are acquired; comprehensive breeding values of each pig are calculated; the coefficient of kinship between each mating female pig and each mating male pig is calculated; all mating combinations are determined according to each mating female pig and each mating male pig, and mating labels corresponding to each mating combination are determined according to the comprehensive breeding value and the coefficient of kinship of each mating combination, wherein the mating labels include mating avoidance, mating suitability and mating optimization; an interactive list is generated according to each mating female pig and each mating male pig, and the mating label corresponding to the mating combination is displayed in a cell; and a mating plan is automatically generated according to the cell selected by a user in the interactive list. The application supports the user to interact with the list and automatically generates the mating plan based on the interactive process, which is very convenient and fast.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of pig breeding technology, and in particular to an interactive pig breeding selection method and computer program product. Background Technology

[0002] In the modern swine breeding industry, scientific mating is crucial for the efficient transmission of superior genes and accelerated genetic progress. Traditional mating methods rely primarily on manual experience and pedigree and performance records, which is inefficient and prone to errors. The industry has developed several swine breeding mating systems that utilize computer software to assist users in the process. However, existing systems determine the suitability of mating combinations based on a single indicator and provide a list of all possible combinations to the user. Users then manually copy down the selected combinations and formulate a breeding plan accordingly. Summary of the Invention

[0003] The purpose of this invention is to provide an interactive method for selecting and mating pigs and a corresponding computer program product. This method can support users to interact with lists and automatically generate mating plans based on the interaction process.

[0004] To achieve the above objectives, the present invention provides an interactive method for selecting and breeding pigs, comprising the following steps: S1. Obtain pedigree data, trait data, and genotype data for multiple-breeding sows and multiple-breeding boars; S2. Based on the pedigree data, trait data, and genotype data of each broodable sow and each broodable boar, calculate the comprehensive breeding value of each pig; S3. Based on the pedigree data of each broodable sow and each broodable boar, calculate the kinship coefficient between each broodable sow and each broodable boar; S4. Determine all mating combinations based on each broodable sow and each broodable boar. Based on the combined breeding value and kinship coefficient of the sows and boars in each mating combination, determine the mating tag corresponding to each mating combination. The mating tags include incompatible mating, suitable mating, and superior mating. S5. Generate an interactive list based on each mateable sow and each mateable boar. In the horizontal and vertical headers of the table, one is for each mateable sow and the other is for each mateable boar. The pairing labels corresponding to each mateable sow and mateable boar are displayed in the cells at the intersection of the rows and columns in the table. S6. Accept user clicks to select cells in the interactive list, and automatically generate a mating plan based on the pairing combinations corresponding to each cell selected by the user.

[0005] Furthermore, in step S2, the comprehensive breeding value of each pig is calculated using the multi-trait BLUP model.

[0006] Further, step S4 specifically determines the pairing label corresponding to each pairing combination according to the preset selection rules. The selection rules include: (1) if the kinship coefficient is higher than the preset kinship coefficient threshold, the pairing label is "unsuitable pairing"; (2) if the kinship coefficient is lower than the preset kinship coefficient threshold but the average comprehensive breeding value is lower than the preset comprehensive breeding value threshold, the pairing label is "suitable pairing"; (3) if the average comprehensive breeding value is higher than the preset comprehensive breeding value threshold and the kinship coefficient is lower than the preset kinship coefficient threshold, the pairing label is "excellent pairing".

[0007] Further, step S5 specifically involves: using color coding to display pairing labels in cells, with red for unsuitable pairings, black for suitable pairings, and green for superior pairings; and displaying the kinship coefficient values ​​and the average comprehensive breeding value of the two pairs in the cells.

[0008] Furthermore, in step S5, once the mouse cursor is detected to be inside a cell, the expected offspring breeding value of the pairing combination corresponding to that cell is displayed through a floating window.

[0009] Furthermore, in step S6, the rationality of the pairing combinations corresponding to each cell selected by the user is first verified according to the preset verification rules, and the mating plan is generated only after the verification is passed.

[0010] Furthermore, in step S6, the preset verification rules include: (1) a sow is mated only once; (2) a boar is mated no more than twice.

[0011] Further, before S1, execute S0 to receive information on multiple mateable sows and multiple mateable boars selected by the user.

[0012] The present invention also provides a computer program product, including a computer program that, when executed, implements the interactive pig breeding and mating method described above.

[0013] The interactive pig breeding and mating method described above, in step S4, determines whether each pairing combination is unsuitable, suitable, or superior based on multiple indicators (comprehensive breeding value, kinship coefficient), and can screen out pairing combinations with better overall performance; in step S5, a mateable sow and a mateable boar are displayed as pairing labels in the intersecting cells of the table, and step S6 automatically generates a mating plan based on the pairing combinations corresponding to each cell selected by the user. It supports user interaction with the list and automatically generates the mating plan based on the interaction process, eliminating the need for users to manually copy and specify the mating plan, which is very convenient and fast. Attached Figure Description

[0014] Figure 1 This is a flowchart illustrating the interactive pig breeding and mating method provided in this invention.

[0015] Figure 2 This is a schematic diagram of an interactive list generated according to the interactive pig breeding and mating method provided in this invention. Detailed Implementation

[0016] The present invention will be further described in detail below with reference to specific embodiments.

[0017] In this embodiment, a computer program product is obtained by technicians using computer code programming. This computer program product includes a computer program (denoted as the shared breeding and mating platform client). The shared breeding and mating platform client is installed on a computer, and the computer processor executes the client to achieve the following: Figure 1 The interactive pig breeding and mating method is shown below. The steps of this method are described in detail below.

[0018] S1. Obtain pedigree data, trait data, and genotype data for multiple-breeding sows and multiple-breeding boars.

[0019] Users run the shared breeding and mating platform client on their computers and access the platform's homepage. The platform connects to a shared breeding database that stores breeding data from various pig farms. This data includes pedigree data for sows and boars (covering ancestral information for three generations or more), trait data (birth weight, weaning weight, growth rate, backfat thickness, litter size, etc.), and genotype data (molecular marker information related to important economic traits). On the platform's mating page, users input sow selection criteria such as breed and farm name. The platform then lists a herd of sows, from which the user selects a target herd for mating. Similarly, users input boar selection criteria, and the platform lists a herd of boars, from which the user selects a target herd for mating. After receiving information on multiple broodable sows and multiple broodable boars selected by the user, the shared breeding and mating platform retrieves the pedigree data, trait data, and genotype data of these multiple broodable sows and boars from the shared breeding database.

[0020] S2. Calculate the comprehensive breeding value of each pig based on the pedigree data, trait data, and genotype data of each broodable sow and each broodable boar.

[0021] The shared breeding and mating platform calculates the comprehensive breeding value for each pig using a multi-trait BLUP model based on the pedigree, phenotypic, and genotypic data of each available sow and boar. If some pig farms do not provide genotypic data for sows and boars, the comprehensive breeding value can be calculated solely based on the pedigree and phenotypic data of each available sow and boar. Although the accuracy decreases slightly (error increases by ±0.03), it still meets basic mating requirements and achieves compatibility even without genotypic data.

[0022] In other embodiments, the comprehensive breeding values ​​of all broodstock sows and boars from all pig farms can be pre-calculated and saved to a shared breeding database. In this way, when a user performs a mating operation, after selecting the target sow herd (available sows for this mating) and the target boar herd (available boars for this mating), the shared breeding mating platform does not need to calculate the comprehensive breeding values; it can directly obtain the comprehensive breeding values ​​of the target sow herd and target boar herd from the shared breeding database.

[0023] S3. Based on the pedigree data of each broodable sow and each broodable boar, calculate the kinship coefficient between each broodable sow and each broodable boar.

[0024] The shared breeding and mating platform first sorts all individuals in the pedigree data of mating sows and boars using a topological sorting algorithm; then, for each individual in the sorted pedigree data, it calculates the kinship coefficient between each individual and generates a kinship matrix of mating sows and boars.

[0025] The pedigree data consists of multiple individual data points, each in the format: individual id + parent id + mother id. If the parents are unknown, they are marked as null. The process of sorting all individuals in the pedigree data using the topological sorting algorithm is as follows: A) Construct a directed graph: Convert the pedigree data into a directed acyclic graph, where edges point from parents to offspring. For example, if the parents of individual i are p and q, then there exist edges p → i and q → i.

[0026] B) Calculate the in-degree: For each individual in the directed graph, calculate its in-degree (the number of edges pointing to that individual, i.e., the number of other individuals acting as parents pointing to that individual). The in-degree of the basic individual (without parents) is 0.

[0027] C) Initialize the queue: Add all individuals with an in-degree of 0 to the queue.

[0028] D) Topological sorting: Individuals in the queue are dequeued one by one in sequence. The dequeued individuals are added to the sorted list and the in-degree of their descendants is decremented by 1. If the in-degree of a descendant becomes 0, the descendant is added to the queue. This process continues until all individuals in the queue have been dequeued.

[0029] This allows for the sorting of all individuals in the pedigree data, resulting in a set of unique pedigree data with a kinship order, which is recorded in the sorted list mentioned above.

[0030] After obtaining the sorted pedigree data, the shared breeding and mating platform calculates the kinship coefficient between each individual in the sorted pedigree data and every other individual, as follows: Individuals in the sorted list are dequeued in order. For each dequeued individual i, the kinship coefficient between it and every other individual is calculated: If i (the pig's id) has no parents (basic individual): A[i, i] = 1, A[i, j] = 0; If i has parents p and q (p and q are known): A[i, i] = 1 + 0.5 A[p, q]; if j is after i in the topological sort, then A[i, j] = 0; if j is before i in the topological sort, then A[i, j] = 0.5 (A[j, p] + A[j, q]).

[0031] The shared breeding and mating platform constructs a kinship matrix based on the kinship coefficients between individuals as follows (1, 2, ..., n represent the ID of each pig, i.e., each individual):

[0032] S4. Determine all mating combinations based on each broodable sow and each broodable boar. Based on the combined breeding value and kinship coefficient of the sows and boars in each mating combination, determine the mating tag corresponding to each mating combination. The mating tags include incompatible mating, suitable mating, and superior mating.

[0033] The shared breeding and mating platform determines all mating combinations based on each breedable sow and boar. A mating combination refers to pairing a sow with a boar. For example, if there are M breedable sows and N breedable boars, then the mating combination is M. N. The shared breeding and mating platform then determines the mating label corresponding to each mating combination according to the comprehensive breeding value, kinship coefficient, and inbreeding coefficient of the offspring of the sows and boars in each mating combination, in accordance with the preset mating rules. The mating labels include unsuitable mating, suitable mating, and superior mating. The mating rules include: (1) if the kinship coefficient is higher than the preset kinship coefficient threshold, the mating label is "unsuitable mating"; (2) if the kinship coefficient is lower than the preset kinship coefficient threshold but the average comprehensive breeding value is lower than the preset comprehensive breeding value threshold, the mating label is "suitable mating"; (3) if the average comprehensive breeding value is higher than the preset comprehensive breeding value threshold and the kinship coefficient is lower than the preset kinship coefficient threshold, the mating label is "superior mating". In this embodiment, the kinship coefficient threshold is 0.0625, and the comprehensive breeding value threshold is the population mean plus 1 standard deviation.

[0034] S5. Generate an interactive list based on each mateable sow and each mateable boar. The table's horizontal and vertical headers each contain an individual mateable sow and an individual mateable boar. The matching labels for each mateable sow and boar are displayed in the cells at the intersection of the rows and columns in the table.

[0035] like Figure 2 As shown, the shared breeding and mating platform uses the individual numbers of breedable sows as the vertical column header and the individual numbers of breedable boars as the horizontal column header to generate an interactive list. In this list, the cells at the intersection of the rows and columns of a breedable sow and a breedable boar display information about their mating combination. Specifically, the cells display the kinship coefficient and the average comprehensive breeding value of the sow and boar in the corresponding mating combination (the values ​​in parentheses in the cells are the average comprehensive breeding values). The mating label corresponding to the mating combination in the cell is displayed by color-coding the text within the cell. In this embodiment, unsuitable matings are marked in red, and suitable and superior matings are marked in black. Preferably, in other embodiments, unsuitable matings can be marked in red, suitable matings in black, and superior matings in green.

[0036] In addition to the horizontal and vertical headers, each cell in this interactive list is associated with the expected genetic effects of the corresponding pair, such as the expected offspring breeding value. If a user needs to view detailed indicator values ​​for a pair, they can move the mouse cursor into the corresponding cell. Once the shared breeding and mating platform detects the mouse cursor in a cell, it will display the expected offspring breeding value of the corresponding pair in a floating window.

[0037] The shared breeding and mating platform provides filtering functions for the interactive list, with options including "Show only superior combinations" and "Exclude boars from xxx farm". It also provides sorting functions, with options including "Comprehensive breeding value in descending order". If the user selects "Show only superior combinations", the platform clears the cells corresponding to non-superior combinations (including suitable and unsuitable combinations), displaying only the kinship coefficient and the average comprehensive breeding value in the cells corresponding to superior combinations. If the user selects "Exclude boars from xxx farm", the platform deletes the column containing boars from xxx farm from the original interactive list and generates a new interactive list for the user to view. If the user selects "Comprehensive breeding value in descending order", the platform sorts the sows by comprehensive breeding value from highest to lowest and displays them in the vertical header, and sorts the boars by comprehensive breeding value from highest to lowest and displays them in the horizontal header, thus regenerating the interactive list.

[0038] S6. Accept user clicks to select cells in the interactive list, and automatically generate a mating plan based on the pairing combinations corresponding to each cell selected by the user.

[0039] Users select multiple desired pairing combinations based on the kinship coefficient, average comprehensive breeding value, and corresponding color markings (red indicates unsuitable pairings) of each pairing combination displayed in the interactive list. After selection, users click to select the corresponding cells. The shared breeding and mating platform responds to the user's click selection operation on the interactive list by adding the "sow-boar" pairing combination corresponding to the user's selected cell to the mating list, and then performs a rationality check on each pairing combination in the mating list according to the preset verification rules. The preset verification rules include: (1) a sow is mated only once; (2) a boar is mated no more than twice. After the verification is passed, the shared breeding and mating platform generates a mating plan based on the mating list. The mating plan includes the sow pen, boar number, suggested mating time, and expected genetic effects such as expected offspring breeding values.

[0040] This embodiment determines whether each pairing combination is unsuitable, suitable, or optimal based on multiple indicators (comprehensive breeding value, kinship coefficient); and generates an interactive list based on each breedable sow and boar, which allows users to interact with the list and automatically generate a mating plan based on the user's interaction process, eliminating the need for users to manually copy and specify the mating plan, making it very convenient and fast.

[0041] The above description is merely an embodiment of the present invention and does not limit the scope of patent protection. Any non-substantial changes or substitutions made by those skilled in the art based on the present invention will still fall within the scope of patent protection.

Claims

1. An interactive method for selecting and mating pigs, characterized in that, Includes the following steps: S1. Obtain pedigree data, trait data, and genotype data for multiple-breeding sows and multiple-breeding boars; S2. Based on the pedigree data, trait data, and genotype data of each broodable sow and each broodable boar, calculate the comprehensive breeding value of each pig; S3. Based on the pedigree data of each broodable sow and each broodable boar, calculate the kinship coefficient between each broodable sow and each broodable boar; S4. Determine all mating combinations based on each broodable sow and each broodable boar. Based on the combined breeding value and kinship coefficient of the sows and boars in each mating combination, determine the mating tag corresponding to each mating combination. The mating tags include incompatible mating, suitable mating, and superior mating. S5. Generate an interactive list based on each mateable sow and each mateable boar. In the horizontal and vertical headers of the table, one is for each mateable sow and the other is for each mateable boar. The pairing labels corresponding to each mateable sow and mateable boar are displayed in the cells at the intersection of the rows and columns in the table. S6. Accept user clicks to select cells in the interactive list, and automatically generate a mating plan based on the pairing combinations corresponding to each cell selected by the user.

2. The interactive pig breeding and mating method as described in claim 1, characterized in that, In step S2, the multi-trait BLUP model is used to calculate the comprehensive breeding value of each pig.

3. The interactive pig breeding and mating method as described in claim 1, characterized in that, Step S4 specifically determines the pairing label corresponding to each pairing combination according to the preset selection rules. The selection rules include: (1) if the kinship coefficient is higher than the preset kinship coefficient threshold, the pairing label is "unsuitable pairing"; (2) if the kinship coefficient is lower than the preset kinship coefficient threshold but the average comprehensive breeding value is lower than the preset comprehensive breeding value threshold, the pairing label is "suitable pairing"; (3) if the average comprehensive breeding value is higher than the preset comprehensive breeding value threshold and the kinship coefficient is lower than the preset kinship coefficient threshold, the pairing label is "excellent pairing".

4. The interactive pig breeding and mating method as described in claim 1, characterized in that, Step S5 specifically involves: using color coding to display pairing labels in cells, with red for unsuitable pairings, black for suitable pairings, and green for superior pairings; and displaying the kinship coefficient and the average comprehensive breeding value of the two pairs in the cells.

5. The interactive pig breeding and mating method as described in claim 4, characterized in that, In step S5, once the mouse cursor is detected to be inside a cell, the expected offspring breeding value of the pairing combination corresponding to that cell is displayed in a floating window.

6. The interactive pig breeding and mating method as described in claim 1, characterized in that, In step S6, the rationality of the pairing combinations corresponding to each cell selected by the user is first verified according to the preset verification rules. Only after the verification is passed will the mating plan be generated.

7. The interactive pig breeding and mating method as described in claim 6, characterized in that, In step S6, the preset verification rules include: (1) a sow is mated only once; (2) a boar is mated no more than twice.

8. The interactive pig breeding and mating method as described in claim 1, characterized in that, Before S1, execute S0. Receive information on multiple mateable sows and multiple mateable boars selected by the user.

9. A computer program product comprising a computer program, characterized in that, When the computer program is executed, it implements the interactive pig breeding and mating method as described in any one of claims 1 to 8.