Pig group diarrhea monitoring and processing system and device and medium

Through the pig population diarrhea monitoring and processing system, the high-order linear fitting model and real-time diarrhea index calculation are used to solve the standardization of diarrhea monitoring and treatment in pig farms, achieving more accurate evaluation and timely treatment, and improving breeding efficiency.

CN119068418APending Publication Date: 2024-12-03MUYUAN FOOD GROUP CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411253315.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-09
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

The lack of standardization of monitoring and treatment of pig diarrhea in pig farms has led to the problem of misuse, unused medication and untimely treatment. Especially in the shortage of pig disease experts and veterinary grassroots personnel, it is difficult to form effective monitoring of mass infectious diarrhea. and treatment.

Method used

A pig population diarrhea monitoring and processing system was designed. By acquiring and analyzing historical diarrhea images, a diarrhea index model based on high-order linear fit was constructed, diarrhea index was calculated in real time, and treatment plans were determined based on the index, including acquisition modules, analysis modules, Model building module, index formula generation module, real-time calculation module and processing module to realize automated diarrhea monitoring and treatment decisions.

Benefits of technology

It provides a more objective and accurate assessment of diarrhea severity, improves the timeliness and effectiveness of treatment, reduces the time and energy of manual monitoring, ensures personalized treatment plans, and improves breeding efficiency and economic benefits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119068418A_ABST
    Figure CN119068418A_ABST
Patent Text Reader

Abstract

The invention discloses a pig group diarrhea monitoring and processing system and device and a medium. Relates to the field of animal husbandry, and solves the problems that mass infectious diarrhea is difficult to monitor and standardized treatment cannot be realized when workers check the diarrhea condition of pigs. Determining a real-time diarrhea index according to the real-time diarrhea site number, the real-time diarrhea column number and a diarrhea index calculation formula; and determining a corresponding diarrhea treatment scheme according to the real-time diarrhea index. According to the method, the diarrhea index model is established mainly through the historical images to obtain the diarrhea index calculation formula, and more objective and accurate diarrhea severity assessment is provided through quantification of the diarrhea index. The real-time diarrhea index quantification enables the treatment to respond quickly, and the timeliness of the treatment is improved. According to different diarrhea indexes and pig conditions, personalized treatment schemes can be formulated, and the treatment effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of animal husbandry, and in particular to a system, device and medium for monitoring and processing diarrhea in pig groups. Background Art

[0002] Pig diarrhea is a common health problem in the pig industry. It not only affects the growth and development of pigs, but can also cause serious economic losses.

[0003] With the development of large-scale and intensive pig farming, pig farms are scattered and remote, and there is a shortage of pig disease experts and grassroots veterinary personnel, resulting in the following two problems: after pigs suffer from diarrhea, due to different cognition of each person, there is a lack of standardized evaluation system for pig diarrhea, resulting in problems such as indiscriminate use of drugs and no use of drugs; there is a lack of quantitative indicators for pig diarrhea, and specific results cannot be pushed to breeders and pig farm managers, and the phenomenon of untimely treatment of pig diseases is common.

[0004] It can be seen that how to solve the problem that it is difficult for staff to conduct inspections on diarrhea in pigs, monitor group infectious diarrhea, and cannot provide standardized treatment is a technical problem that needs to be solved urgently by people in this field. Summary of the invention

[0005] The purpose of this application is to provide a system, device and medium for monitoring and processing diarrhea in pig groups, so as to solve the problem that it is difficult for staff to conduct inspections on diarrhea in pigs, and it is difficult to form monitoring of group infectious diarrhea and unable to standardize treatment.

[0006] In order to solve the above technical problems, the present application provides a system for monitoring and treating diarrhea in pig groups, comprising:

[0007] An acquisition module is used to obtain historical diarrhea images corresponding to the pathogen detection batches of pigs;

[0008] An analysis module, used for obtaining the corresponding number of diarrhea points and the number of diarrhea columns according to the historical diarrhea image;

[0009] A model building module, used for building a diarrhea index model based on high-order linear fitting according to the number of diarrhea points and the number of diarrhea columns;

[0010] An index formula generating module, used for obtaining a diarrhea index calculation formula according to the diarrhea index model;

[0011] A real-time calculation module, used to determine a real-time diarrhea index according to the real-time diarrhea point number and the real-time diarrhea column number, and the diarrhea index calculation formula;

[0012] A processing module is used to determine a corresponding diarrhea treatment plan according to the real-time diarrhea index.

[0013] As an optional solution, in the above-mentioned pig group diarrhea monitoring and processing system, the acquisition module includes:

[0014] The sample extraction unit is used to obtain the batch information table of the pathogen detection area and extract the sample data of the pig herd whose inventory is greater than the preset number;

[0015] An image acquisition unit is used to acquire the historical diarrhea image corresponding to the sample data.

[0016] As an optional solution, in the above-mentioned pig group diarrhea monitoring and processing system, the analysis module includes:

[0017] A labeling unit, used for identifying and labeling the diarrhea area in the historical diarrhea image according to the image processing technology;

[0018] A point number counting unit is used to count the number of diarrhea points in each pen where diarrhea occurs in the pig house for each of the historical diarrhea images;

[0019] A stall number counting unit, used for determining the number of diarrhea stalls in the pens where diarrhea occurs in the pig house according to the stalls where the diarrhea area is distributed;

[0020] The statistical information generating unit is used to generate the number of diarrhea points and the number of diarrhea columns corresponding to each pathogen detection batch.

[0021] As an optional solution, in the above-mentioned pig group diarrhea monitoring and processing system, the model building module includes:

[0022] A screening unit, used to screen pathogen detection batch training data that meets preset disease conditions according to the number of diarrhea points and the number of diarrhea columns corresponding to each pathogen detection batch;

[0023] A weight acquisition unit, used for acquiring a diarrhea point digit weight and a diarrhea column digit weight, wherein the diarrhea point digit weight is smaller than the diarrhea column digit weight;

[0024] A training data division unit, used for dividing the number of diarrhea points and the number of diarrhea columns of the pathogen detection batch training data into a training set and a test set;

[0025] A model training unit, used for fitting a high-order linear model according to the training set to generate a diarrhea index model;

[0026] A model validation unit is used to validate the diarrhea index model according to the test set.

[0027] As an optional solution, in the above-mentioned pig group diarrhea monitoring and processing system, the index formula generation module includes:

[0028] A conversion unit, used for converting the diarrhea index model into a diarrhea index calculation formula;

[0029] An average variance determination unit, used for obtaining the average variance of the diarrhea index model;

[0030] A judging unit, used to judge whether the average variance is less than a preset fluctuation value; if so, trigger the output unit; if not, trigger the model training unit;

[0031] The output unit is used to output the diarrhea index calculation formula.

[0032] As an optional solution, the above-mentioned pig group diarrhea monitoring and processing system also includes:

[0033] An index sequence generating module, used for generating a diarrhea index sequence according to the real-time diarrhea index of each day;

[0034] A smoothing module, used for performing smoothing filtering on the diarrhea index sequence according to a Gaussian mixture model to obtain a trend graph of the diarrhea index after filtering;

[0035] The processing module is also used to determine the current real-time diarrhea index according to the diarrhea index trend graph and determine the corresponding diarrhea treatment plan.

[0036] As an optional solution, in the above-mentioned pig group diarrhea monitoring and processing system, the processing module includes:

[0037] A first processing unit is used to determine that the diarrhea state of the current pig group has worsened and generate an emergency treatment plan if the rising rate of the real-time diarrhea index increases and the number of consecutive rising days of the real-time diarrhea index increases;

[0038] The second processing unit is used to determine that the diarrhea state of the current pig group has recovered and generate an observation and treatment plan if the decline rate of the real-time diarrhea index increases and the number of consecutive decline days of the real-time diarrhea index increases;

[0039] The third processing unit is used to determine that the diarrhea state of the current pig group continues to develop if the increase rate / decrease rate of the real-time diarrhea index fluctuates within a preset frequency range and the continuous increase / decrease days of the real-time diarrhea index fluctuate within a preset number of days, and generate a continuous treatment plan.

[0040] As an optional solution, the above-mentioned pig group diarrhea monitoring and processing system also includes:

[0041] The monitoring module is used to monitor in real time whether the current real-time diarrhea index exceeds the preset warning value; if so, the alarm module is triggered;

[0042] The alarm module is used to send alarm information to staff via SMS or email;

[0043] The historical warning recording module is used to store and analyze the alarm information.

[0044] In order to solve the above technical problems, the present application also provides a pig group diarrhea monitoring and processing device, comprising:

[0045] Memory for storing computer programs;

[0046] A processor, configured to implement the steps of the method for monitoring and treating diarrhea in a pig population when executing the computer program;

[0047] The method for monitoring and treating diarrhea in pig groups comprises:

[0048] Obtain historical diarrhea images corresponding to pathogen detection batches of pigs;

[0049] According to the historical diarrhea image, the corresponding number of diarrhea points and the number of diarrhea columns are obtained;

[0050] Constructing a diarrhea index model based on high-order linear fitting according to the number of diarrhea points and the number of diarrhea columns;

[0051] Obtaining a diarrhea index calculation formula according to the diarrhea index model;

[0052] Determine the real-time diarrhea index according to the real-time diarrhea point number and the real-time diarrhea column number, and the diarrhea index calculation formula;

[0053] A corresponding diarrhea treatment plan is determined according to the real-time diarrhea index.

[0054] In order to solve the above technical problems, the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method for monitoring and treating diarrhea in a pig group are implemented;

[0055] The method for monitoring and treating diarrhea in pig groups comprises:

[0056] Obtain historical diarrhea images corresponding to pathogen detection batches of pigs;

[0057] According to the historical diarrhea image, the corresponding number of diarrhea points and the number of diarrhea columns are obtained;

[0058] Constructing a diarrhea index model based on high-order linear fitting according to the number of diarrhea points and the number of diarrhea columns;

[0059] Obtaining a diarrhea index calculation formula according to the diarrhea index model;

[0060] Determine the real-time diarrhea index according to the real-time diarrhea point number and the real-time diarrhea column number, and the diarrhea index calculation formula;

[0061] A corresponding diarrhea treatment plan is determined according to the real-time diarrhea index.

[0062] The pig group diarrhea monitoring and processing system provided in the present application includes: an acquisition module for acquiring historical diarrhea images corresponding to the pathogen detection batches of pigs; an analysis module for obtaining the corresponding number of diarrhea points and number of diarrhea stalls according to the historical diarrhea images; a model construction module for constructing a diarrhea index model based on high-order linear fitting according to the number of diarrhea points and number of diarrhea stalls; an index formula generation module for obtaining a diarrhea index calculation formula according to the diarrhea index model; a real-time calculation module for determining the real-time diarrhea index according to the real-time number of diarrhea points and the real-time number of diarrhea stalls, and the diarrhea index calculation formula; a processing module for determining the corresponding diarrhea treatment plan according to the real-time diarrhea index. The present application mainly establishes a diarrhea index model through historical images to obtain a diarrhea index calculation formula, and provides a more objective and accurate diarrhea severity assessment through the quantification of the diarrhea index. The quantification of the real-time diarrhea index allows the treatment to respond quickly and improves the timeliness of the treatment. According to different diarrhea indexes and pig conditions, personalized treatment plans can be formulated to improve the treatment effect.

[0063] In addition, the present application also provides a device and a medium, which correspond to the above-mentioned pig group diarrhea monitoring and treatment system, and have the same effect as above. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0065] Figure 1 A schematic diagram of a system for monitoring and treating diarrhea in pig populations provided in an embodiment of the present application;

[0066] Figure 2 A schematic diagram of another device for monitoring and treating diarrhea in pig groups provided in an embodiment of the present application. DETAILED DESCRIPTION

[0067] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0068] The core of this application is to provide a system, device and medium for monitoring and treating diarrhea in pig groups.

[0069] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0070] Porcine epidemic diarrhea (PED) is an acute, highly contagious enteric disease caused by porcine epidemic diarrhea virus (PEDV). Pigs infected with the disease show symptoms such as watery diarrhea, vomiting, depression, loss of appetite or anorexia.

[0071] Escherichia coli: Pathogenic Escherichia coli refers to pathogenic bacteria that can cause a variety of intestinal and extraintestinal diseases in pigs, including diarrhea in suckling pigs, diarrhea after weaning, edema, sepsis, polyserositis, etc. Swine Escherichia coli disease is a group of intestinal infectious diseases in piglets caused by pathogenic Escherichia coli. Common ones include yellow diarrhea in piglets, white diarrhea in piglets and piglets.

[0072] At present, although many technologies of smart medical care are mature and have been applied in many fields under the support of artificial intelligence, many of them are biased towards human medicine, and the pathological system for human excreta is very complete. However, there are no corresponding technologies and applications for veterinary medicine or pig diseases.

[0073] With the development of large-scale and intensive pig farming, pig farms are scattered and remote, and there is a shortage of pig disease experts and grassroots veterinary personnel, resulting in the following two problems: after pigs suffer from diarrhea, due to different cognition of each person, there is a lack of standardized evaluation system for pig diarrhea, resulting in problems such as indiscriminate use of drugs and no use of drugs; there is a lack of quantitative indicators for pig diarrhea, and specific results cannot be pushed to breeders and pig farm managers, and the phenomenon of untimely treatment of pig diseases is common.

[0074] In order to solve the above problems, the present application provides a system for monitoring and treating diarrhea in pig groups. Figure 1 A schematic diagram of a system for monitoring and treating diarrhea in pig populations provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, including:

[0075] An acquisition module 11 is used to acquire historical diarrhea images corresponding to the pathogen detection batches of pigs;

[0076] An analysis module 12, for obtaining the corresponding number of diarrhea points and the number of diarrhea columns according to the historical diarrhea image;

[0077] A model building module 13, used to build a diarrhea index model based on high-order linear fitting according to the number of diarrhea points and the number of diarrhea columns;

[0078] An index formula generating module 14, used for obtaining a diarrhea index calculation formula according to the diarrhea index model;

[0079] A real-time calculation module 15, used to determine a real-time diarrhea index according to the real-time diarrhea point number and the real-time diarrhea column number, and the diarrhea index calculation formula;

[0080] The processing module 16 is used to determine a corresponding diarrhea treatment plan according to the real-time diarrhea index.

[0081] The acquisition module 11 acquires historical diarrhea images and collects image data related to pig diarrhea to provide a basis for subsequent analysis. The historical diarrhea images of pigs in the pathogen detection batch are collected through an automated image acquisition system, such as a camera installed in a piggery.

[0082] The analysis module 12 extracts the number of diarrhea points and the number of diarrhea pens, quantifies the distribution of diarrhea in pigs, and provides key data points for model building. Image processing techniques, such as image segmentation and target recognition algorithms, are used to automatically identify and annotate diarrhea areas in the image. Then, the number of diarrhea points in each pen and the number of pens where diarrhea occurs are counted.

[0083] The model building module 13 builds a diarrhea index model, establishes a mathematical model, and associates the number of diarrhea points and the number of diarrhea columns with the severity of diarrhea. A high-order linear fitting method is used to build a model based on the quantitative data obtained in step S12. This process may involve data normalization, feature selection, weight allocation, etc.

[0084] The index formula generating module 14 obtains the diarrhea index calculation formula and converts the model into a computable formula to facilitate rapid assessment of the severity of diarrhea. The specific formula for calculating the diarrhea index is extracted from the fitted model, which may include a weighted sum of the number of diarrhea points and the number of diarrhea columns or other mathematical operations.

[0085] The real-time calculation module 15 determines the real-time diarrhea index, monitors the diarrhea condition of the pigs in real time, and responds quickly to possible health problems. The current diarrhea index is determined using the calculation formula obtained in step S14 in combination with the real-time collected diarrhea point number and diarrhea stall number data.

[0086] For example, the diarrhea index calculation formula is fitted by the following procedure:

[0087] for value_df in detail_data:

[0088] value_df['diarrhea_index'] =\

[0089] 0.413478*value_df['diarrhea_sty_cnt']+0.274777*value_df['diarrhea_cnt'] + 1.826875

[0090] var_list = []

[0091] for value_df in detail_data:

[0092] var_list.append(np.var(value_df['diarrhea_index']))

[0093] var_series = pd.Series(var_list)

[0094] var_series.mean() 3.2281828579229

[0096] The calculation formula of the fitted diarrhea index = 0.41347769*number of diarrhea columns + 0.2747765*number of diarrhea points + 1.826875; the volatility of the model is measured by the average variance, and the average variance of 3.2 is less than 10, which meets the stability standard.

[0097] The processing module 16 determines the diarrhea treatment plan and formulates appropriate treatment measures according to the real-time diarrhea index to alleviate or treat diarrhea in pigs. According to the level of the diarrhea index, combined with the preset treatment threshold and plan, the treatment plan is selected or adjusted. The treatment plan may include drug treatment, feed adjustment, environmental improvement, etc.

[0098] The pig group diarrhea monitoring and processing system provided by the present application includes: an acquisition module for acquiring historical diarrhea images corresponding to the pathogen detection batches of pigs; an analysis module for obtaining the corresponding number of diarrhea points and number of diarrhea stalls according to the historical diarrhea images; a model construction module for constructing a diarrhea index model based on high-order linear fitting according to the number of diarrhea points and number of diarrhea stalls; an index formula generation module for obtaining a diarrhea index calculation formula according to the diarrhea index model; a real-time calculation module for determining the real-time diarrhea index according to the real-time number of diarrhea points and the real-time number of diarrhea stalls, and the diarrhea index calculation formula; a processing module for determining the corresponding diarrhea treatment plan according to the real-time diarrhea index. Automated image acquisition and processing reduces the time and effort of manual monitoring. Through the quantification of the diarrhea index, a more objective and accurate assessment of the severity of diarrhea is provided. The determination of the real-time diarrhea index allows the treatment to respond quickly and improves the timeliness of the treatment. According to different diarrhea indexes and pig conditions, personalized treatment plans can be formulated to improve the treatment effect.

[0099] In addition, preferably, the diarrhea index model is optimized and updated regularly to adapt to new data and changing environmental conditions.

[0100] Develop user-friendly interfaces that allow veterinarians and breeders to easily enter data, view reports and receive treatment recommendations.

[0101] This monitoring and treatment program improves the scientificity and effectiveness of pig diarrhea management by combining modern information technology and data analysis, and is expected to reduce economic losses caused by diarrhea and improve breeding efficiency.

[0102] In the above-mentioned pig group diarrhea monitoring and processing system, the acquisition module includes:

[0103] The sample extraction unit is used to obtain the batch information table of the pathogen detection area and extract the sample data of the pig herd whose inventory is greater than the preset number;

[0104] An image acquisition unit is used to acquire the historical diarrhea image corresponding to the sample data.

[0105] Obtain the batch information table of the pathogen detection area and collect detailed information about the pathogen detection batch to provide a basis for screening samples. Retrieve batch information related to pathogen detection from the database or data management system, which may include the number of pigs in stock, pathogen type, detection time, etc.

[0106] Extract sample data from herds with a population greater than the preset number to ensure that the selected samples can represent the diarrhea situation of the entire herd and avoid sample bias. According to the preset population threshold (for example, the population is greater than 300 heads), select eligible batches. This step is to ensure that the selected samples have sufficient statistical significance to reflect the actual diarrhea situation of the pig population.

[0107] Obtain historical diarrhea images corresponding to the sample data, collect diarrhea images corresponding to the screened sample data, and provide raw materials for subsequent image processing and data analysis. According to the screened sample data, retrieve and collect the corresponding historical diarrhea images. These images may be stored in a local server or cloud storage system.

[0108] By extracting sample data with a large inventory, the representativeness of the sample is improved, making the model more universal. The preset number of screening criteria helps to exclude batches with insufficient data or low data quality, ensuring the reliability of the data. The automated sample screening and image acquisition process reduces manual operations and improves the efficiency of data processing. In addition, when screening samples, pigs of different ages, weights, and feeding conditions can be considered to increase the diversity of the sample. For example, distinguish between piglets and fattened pigs, and establish corresponding diarrhea index models for each.

[0109] In addition, preferably, after acquiring the image, a quality check is performed to exclude blurred or unclear images caused by poor shooting conditions to ensure the accuracy of subsequent analysis.

[0110] As an optional embodiment, in the above-mentioned pig group diarrhea monitoring and processing system, the analysis module includes:

[0111] A labeling unit, used for identifying and labeling the diarrhea area in the historical diarrhea image according to the image processing technology;

[0112] A point number counting unit is used to count the number of diarrhea points in each pen where diarrhea occurs in the pig house for each of the historical diarrhea images;

[0113] A stall number counting unit, used for determining the number of diarrhea stalls in the pens where diarrhea occurs in the pig house according to the stalls where the diarrhea area is distributed;

[0114] The statistical information generating unit is used to generate the number of diarrhea points and the number of diarrhea columns corresponding to each pathogen detection batch.

[0115] In this embodiment, the diarrhea area can be identified and labeled according to the image processing technology, and the diarrhea area can be automatically identified from the image, providing a basis for quantitative analysis. The diarrhea in the image can be automatically identified and labeled using image processing technology, such as image segmentation algorithm and target detection model.

[0116] The number of diarrhea points in each historical diarrhea image was counted, and the specific number of diarrhea locations in each pen was quantified to provide data for evaluating the distribution and severity of diarrhea. For each diarrhea image that had been processed, the number of diarrhea points in each pen was counted, and these data were recorded for subsequent analysis.

[0117] Determine the number of diarrhea pens in the pens where diarrhea occurs, identify the total number of pens affected by diarrhea, and further analyze the spread of diarrhea in the pig house. Based on the diarrhea area marked in step 1, determine which pens are affected and count the number of these pens, that is, the number of diarrhea pens.

[0118] Generate the number of diarrhea points and diarrhea columns corresponding to each pathogen detection batch, create a detailed diarrhea data file for each pathogen detection batch, and provide comprehensive data support for establishing a diarrhea index model. Form a record of the number of diarrhea points and diarrhea columns for each pathogen detection batch.

[0119] Automated image processing and data analysis reduce the need for manual counting and greatly improve the efficiency of data processing. The application of image processing technology improves the accuracy of diarrhea area identification and helps to more accurately assess the severity of diarrhea. By generating detailed diarrhea point number and diarrhea column number data, a data-driven method is provided for establishing and verifying the diarrhea index model.

[0120] Preferably, the image processing algorithm is continuously optimized to improve the recognition accuracy of different types of diarrheal matter.

[0121] Through this embodiment, it can be ensured that diarrhea monitoring and processing is based on accurate and comprehensive data, thereby improving the predictive ability of the model and the effectiveness of treatment measures. This is of great significance for achieving early detection, rapid response and effective management of diarrhea in pig groups.

[0122] As an optional embodiment, in the above-mentioned pig group diarrhea monitoring and processing system, the model building module includes:

[0123] A screening unit, used to screen pathogen detection batch training data that meets preset disease conditions according to the number of diarrhea points and the number of diarrhea columns corresponding to each pathogen detection batch;

[0124] A weight acquisition unit, used for acquiring a diarrhea point digit weight and a diarrhea column digit weight, wherein the diarrhea point digit weight is smaller than the diarrhea column digit weight;

[0125] A training data division unit, used for dividing the number of diarrhea points and the number of diarrhea columns of the pathogen detection batch training data into a training set and a test set;

[0126] A model training unit, used for fitting a high-order linear model according to the training set to generate a diarrhea index model;

[0127] A model validation unit is used to validate the diarrhea index model according to the test set.

[0128] Filter the training data that meets the preset disease conditions to ensure that the selected data can represent the typical situation of diarrhea and provide high-quality input for model training. According to the number of diarrhea points and diarrhea columns corresponding to the pathogen detection batch, select data that meets specific disease conditions (such as diarrhea symptoms for multiple consecutive days) as training data.

[0129] Obtain the diarrhea point number weight and diarrhea bar number weight to quantify the importance of diarrhea point number and diarrhea bar number in the model to more accurately reflect the severity of diarrhea. Determine the weight of diarrhea point number and diarrhea bar number through expert consultation or historical data analysis. Since the bar number may reflect a wider range of affected areas, its weight may be higher than the point number weight.

[0130] Divide the training set and test set Use the training set to build the model, and use the test set to evaluate the model's predictive ability to ensure the generalization of the model. Randomly divide the selected training data into two parts, most of which is used for model training, and a small part is used to test the accuracy and reliability of the model.

[0131] The high-order linear model is fitted to establish the mathematical relationship between the number of diarrhea points and diarrhea columns and the severity of diarrhea. The training set data is used to determine the model parameters through the least squares method or other high-order linear fitting techniques to construct the diarrhea index model.

[0132] Verify the diarrhea index model to ensure the model's predictive ability on unknown data and verify the model's accuracy and stability. Use the test set data to verify the model and evaluate the model's performance indicators by comparing the model's predicted values ​​with the actual values.

[0133] By weight distribution, the contribution of the number of diarrhea points and diarrhea columns to the severity of diarrhea can be more accurately reflected. By dividing the training set and the test set, it is ensured that the model not only performs well on the training data, but also makes accurate predictions on new data. Using high-order linear fitting methods, a scientific evaluation model for diarrhea severity is established.

[0134] As an optional embodiment, in the above-mentioned pig group diarrhea monitoring and processing system, the index formula generation module includes:

[0135] A conversion unit, used for converting the diarrhea index model into a diarrhea index calculation formula;

[0136] An average variance determination unit, used for obtaining the average variance of the diarrhea index model;

[0137] A judging unit, used to judge whether the average variance is less than a preset fluctuation value; if so, trigger the output unit; if not, trigger the model training unit;

[0138] The output unit is used to output the diarrhea index calculation formula.

[0139] The diarrhea index model is converted into a diarrhea index calculation formula, and the mathematical expression of the model is simplified into a formula that is easy to understand and calculate, so as to facilitate the rapid evaluation of the diarrhea index in practical applications. Parameters are extracted from the fitted high-order linear model and expressed as a weighted sum of the number of diarrhea points and the number of diarrhea columns, or other mathematical forms, to form a calculation formula for the diarrhea index.

[0140] The average variance of the diarrhea index model was obtained to evaluate the consistency between the model prediction and the actual value, that is, the stability and reliability of the model. Using the test set data, the variance between the diarrhea index predicted by the model and the actual diarrhea index was calculated, and then the average was calculated to obtain the average variance.

[0141] Determine whether the average variance is less than the preset fluctuation value to determine whether the model is stable and suitable for practical application. Set a fluctuation threshold as the judgment standard and compare the average variance with the fluctuation threshold. If the average variance is less than this fluctuation threshold, it means that the model's predicted fluctuation is within an acceptable range.

[0142] If yes, the diarrhea index calculation formula is output to confirm the practicability of the model and provide a basis for actual monitoring and treatment. If the model passes the stability test, the diarrhea index calculation formula is used as the final output for subsequent real-time diarrhea index evaluation and treatment plan determination.

[0143] By converting the model into a calculation formula, the applicability of the model in practical work is improved. By calculating and judging the mean variance, the stability of the model is ensured, avoiding large prediction deviations in practical applications. Only when the model meets the stability standard is it output as a calculation formula, ensuring the reliability of the model.

[0144] Preferably, in the model validation phase, in addition to using the mean variance, other statistical indicators can also be considered to comprehensively evaluate the model performance.

[0145] As an optional embodiment, the above-mentioned pig group diarrhea monitoring and processing system further includes:

[0146] An index sequence generating module, used for generating a diarrhea index sequence according to the real-time diarrhea index of each day;

[0147] A smoothing module, used for performing smoothing filtering on the diarrhea index sequence according to a Gaussian mixture model to obtain a trend graph of the diarrhea index after filtering;

[0148] The processing module is also used to determine the current real-time diarrhea index according to the diarrhea index trend graph and determine the corresponding diarrhea treatment plan.

[0149] Gaussian mixture model is applied to identify and eliminate random noise and invalid fluctuations in the data, thereby improving the signal-to-noise ratio of the model. The data generated by the diarrhea index model is fitted using Gaussian mixture model (GMM). GMM can better handle multi-peak distribution data and identify different components in the data. Identify invalid fluctuations and distinguish between real signals in the data and invalid fluctuations caused by random factors. Through the fitting results of GMM, the distribution characteristics of the data are analyzed to identify the fluctuation parts that do not conform to the normal distribution or have little to do with the severity of diarrhea. Eliminate invalid fluctuations, clear or weaken invalid fluctuations in the data, making the model more stable and the prediction more accurate. According to the fitting results of GMM, the data is smoothed or filtered to remove or weaken those fluctuation parts identified as invalid.

[0150] The denoised model is converted into a concise calculation formula to facilitate rapid calculation in practical applications. After eliminating invalid fluctuations, the model parameters are re-evaluated and the model is expressed as a weighted sum of the number of diarrhea points and the number of diarrhea columns, or other mathematical forms, to form a calculation formula for the diarrhea index.

[0151] By eliminating invalid fluctuations, the accuracy of the model in predicting diarrhea index is improved. The impact of random noise on model prediction is reduced, making the model stable under different circumstances. This provides a more reliable basis for decision-making based on diarrhea index and helps to develop more effective treatment plans.

[0152] When applying GMM, you may need to adjust model parameters such as the number of components, covariance type, etc. to obtain the best denoising effect. After eliminating invalid fluctuations, the model should be re-evaluated to ensure that the denoising process has not over-simplified the data and lost important information.

[0153] As an optional embodiment, in the above-mentioned pig group diarrhea monitoring and processing system, the processing module includes:

[0154] A first processing unit is used to determine that the diarrhea state of the current pig group has worsened and generate an emergency treatment plan if the rising rate of the real-time diarrhea index increases and the number of consecutive rising days of the real-time diarrhea index increases;

[0155] The second processing unit is used to determine that the diarrhea state of the current pig group has recovered and generate an observation and treatment plan if the decline rate of the real-time diarrhea index increases and the number of consecutive decline days of the real-time diarrhea index increases;

[0156] The third processing unit is used to determine that the diarrhea state of the current pig group continues to develop if the increase rate / decrease rate of the real-time diarrhea index fluctuates within a preset frequency range and the continuous increase / decrease days of the real-time diarrhea index fluctuate within a preset number of days, and generate a continuous treatment plan.

[0157] Monitor the changes in the real-time diarrhea index and track the changing trend of the diarrhea index in real time so as to make corresponding treatment decisions in time. The real-time monitoring system collects the number of diarrhea points and diarrhea pens of the current pig group, and the diarrhea index calculation formula is used to obtain the real-time diarrhea index.

[0158] Calculate the rising and falling rates of the diarrhea index, quantitatively analyze the changing speed of the diarrhea index, and provide a basis for evaluating the diarrhea status. Perform mathematical processing on the diarrhea index obtained by continuous monitoring, calculate its rising and falling rates, and reflect the aggravation or relief speed of the diarrhea condition.

[0159] Determine the diarrhea status and generate a treatment plan. According to the change trend of the diarrhea index, judge the diarrhea status of the pig group and formulate a corresponding treatment plan. According to the change rate and continuous change days of the diarrhea index, the diarrhea status is divided into three situations: deterioration, recovery and continuous development, and a corresponding treatment plan is generated for each situation.

[0160] If the rising rate of the real-time diarrhea index increases and the number of consecutive rising days increases, it is judged that the diarrhea condition has worsened. An emergency treatment plan is generated, which may include strengthening drug treatment, adjusting feed formula, improving the feeding environment and other measures.

[0161] If the decline rate of the real-time diarrhea index increases and the number of consecutive decline days increases, it is judged that the diarrhea state has recovered. Generate an observation and treatment plan, which may include reducing the use of drugs, continuing to observe the status of pigs, and maintaining current feeding management.

[0162] If the rising / falling rate of the real-time diarrhea index fluctuates within the preset frequency range, and the number of consecutive rising / falling days fluctuates within the preset number of days, it is judged that the diarrhea state continues to develop. Generate a continuous treatment plan, which may include maintaining the current treatment measures, regularly evaluating the treatment effect, and adjusting the treatment plan in a timely manner.

[0163] Through real-time monitoring and rapid response, changes in diarrhea status can be identified in time to avoid delays in treatment. Customized treatment plans can be developed according to different diarrhea status to improve treatment effectiveness. Through dynamic evaluation of diarrhea index, treatment plans can be flexibly adjusted to adapt to changes in diarrhea status of pig groups.

[0164] In addition, it is preferred that the invention also includes:

[0165] The monitoring module is used to monitor in real time whether the current real-time diarrhea index exceeds the preset warning value; if so, the alarm module is triggered;

[0166] The alarm module is used to send alarm information to staff via SMS or email;

[0167] The historical warning recording module is used to store and analyze the alarm information.

[0168] When the diarrhea index reaches a certain threshold, an early warning is automatically triggered to remind relevant personnel to take action. When evaluating the diarrhea status, other factors such as the pig's age, weight, and feeding environment are considered for comprehensive analysis. The treatment plan is reviewed and evaluated regularly, and optimized and adjusted according to the actual treatment effect.

[0169] Figure 2 A structural diagram of another pig group diarrhea monitoring and processing device provided in an embodiment of the present application, such as Figure 2 As shown, the monitoring and processing device for pig group diarrhea includes: a memory 20 for storing a computer program;

[0170] The processor 21 is used to implement the steps of the method for obtaining user operation habit information in the above embodiment (pig group diarrhea monitoring and processing system) when executing the computer program.

[0171] The pig group diarrhea monitoring and processing device provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer or a desktop computer.

[0172] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.

[0173] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein, after the computer program is loaded and executed by the processor 21, it can implement the relevant steps of the pig group diarrhea monitoring and processing system disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. Data 203 may include but is not limited to data involved in implementing a pig group diarrhea monitoring and processing system, etc.

[0174] In some embodiments, the pig group diarrhea monitoring and processing device may also include a display screen 22 , an input and output interface 23 , a communication interface 24 , a power supply 25 , and a communication bus 26 .

[0175] Those skilled in the art will understand that Figure 2 The structure shown in the figure does not constitute a limitation on the swine group diarrhea monitoring and processing device, and may include more or fewer components than shown in the figure.

[0176] The embodiment of the present application provides a monitoring and processing device for pig group diarrhea, including a memory and a processor. When the processor executes a program stored in the memory, it can implement the following method: a monitoring and processing method for pig group diarrhea. The monitoring and processing method for pig group diarrhea includes:

[0177] Obtain historical diarrhea images corresponding to pathogen detection batches of pigs;

[0178] According to the historical diarrhea image, the corresponding number of diarrhea points and the number of diarrhea columns are obtained;

[0179] Constructing a diarrhea index model based on high-order linear fitting according to the number of diarrhea points and the number of diarrhea columns;

[0180] Obtaining a diarrhea index calculation formula according to the diarrhea index model;

[0181] Determine the real-time diarrhea index according to the real-time diarrhea point number and the real-time diarrhea column number, and the diarrhea index calculation formula;

[0182] A corresponding diarrhea treatment plan is determined according to the real-time diarrhea index.

[0183] Finally, the present application also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps described in the above embodiment of the system for monitoring and processing diarrhea in pig populations are implemented.

[0184] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0185] The computer-readable storage medium provided in this embodiment stores a computer program, and when a processor executes the program, the following method can be implemented: a method for monitoring and processing diarrhea in a pig population. The method for monitoring and processing diarrhea in a pig population includes:

[0186] Obtain historical diarrhea images corresponding to pathogen detection batches of pigs;

[0187] According to the historical diarrhea image, the corresponding number of diarrhea points and the number of diarrhea columns are obtained;

[0188] Constructing a diarrhea index model based on high-order linear fitting according to the number of diarrhea points and the number of diarrhea columns;

[0189] Obtaining a diarrhea index calculation formula according to the diarrhea index model;

[0190] Determine the real-time diarrhea index according to the real-time diarrhea point number and the real-time diarrhea column number, and the diarrhea index calculation formula;

[0191] A corresponding diarrhea treatment plan is determined according to the real-time diarrhea index.

[0192] The above is a detailed introduction to the pig group diarrhea monitoring and processing system, device and medium provided by the present application. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referenced to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

[0193] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. A system for monitoring and treating diarrhea in pig populations, characterized in that: include: An acquisition module is used to obtain historical diarrhea images corresponding to the pathogen detection batches of pigs; An analysis module, used for obtaining the corresponding number of diarrhea points and the number of diarrhea columns according to the historical diarrhea image; A model building module, used for building a diarrhea index model based on high-order linear fitting according to the number of diarrhea points and the number of diarrhea columns; An index formula generating module, used for obtaining a diarrhea index calculation formula according to the diarrhea index model; A real-time calculation module, used to determine a real-time diarrhea index according to the real-time diarrhea point number and the real-time diarrhea column number, and the diarrhea index calculation formula; A processing module is used to determine a corresponding diarrhea treatment plan according to the real-time diarrhea index.

2. The pig group diarrhea monitoring and processing system according to claim 1 is characterized in that: The acquisition module comprises: The sample extraction unit is used to obtain the batch information table of the pathogen detection area and extract the sample data of the pig herd whose inventory is greater than the preset number; An image acquisition unit is used to acquire the historical diarrhea image corresponding to the sample data.

3. The pig group diarrhea monitoring and processing system according to claim 2 is characterized in that: The analysis module comprises: A labeling unit, used for identifying and labeling the diarrhea area in the historical diarrhea image according to the image processing technology; A point number counting unit is used to count the number of diarrhea points in each pen where diarrhea occurs in the pig house for each of the historical diarrhea images; A stall number counting unit, used for determining the number of diarrhea stalls in the pens where diarrhea occurs in the pig house according to the stalls where the diarrhea area is distributed; The statistical information generating unit is used to generate the number of diarrhea points and the number of diarrhea columns corresponding to each pathogen detection batch.

4. The pig group diarrhea monitoring and processing system according to claim 3 is characterized in that: The model building module includes: A screening unit, used to screen pathogen detection batch training data that meets preset disease conditions according to the number of diarrhea points and the number of diarrhea columns corresponding to each pathogen detection batch; A weight acquisition unit, used for acquiring a diarrhea point digit weight and a diarrhea column digit weight, wherein the diarrhea point digit weight is smaller than the diarrhea column digit weight; A training data division unit, used for dividing the number of diarrhea points and the number of diarrhea columns of the pathogen detection batch training data into a training set and a test set; A model training unit, used for fitting a high-order linear model according to the training set to generate a diarrhea index model; A model validation unit is used to validate the diarrhea index model according to the test set.

5. The pig group diarrhea monitoring and processing system according to claim 4 is characterized in that: The index formula generation module includes: A conversion unit, used for converting the diarrhea index model into a diarrhea index calculation formula; An average variance determination unit, used for obtaining the average variance of the diarrhea index model; A judging unit, used to judge whether the average variance is less than a preset fluctuation value; if so, trigger the output unit; if not, trigger the model training unit; The output unit is used to output the diarrhea index calculation formula.

6. The pig group diarrhea monitoring and processing system according to claim 5 is characterized in that: Also includes: An index sequence generating module, used for generating a diarrhea index sequence according to the real-time diarrhea index of each day; A smoothing module, used for performing smoothing filtering on the diarrhea index sequence according to a Gaussian mixture model to obtain a trend graph of the diarrhea index after filtering; The processing module is also used to determine the current real-time diarrhea index according to the diarrhea index trend graph and determine the corresponding diarrhea treatment plan.

7. The pig group diarrhea monitoring and processing system according to claim 1 is characterized in that: The processing module comprises: A first processing unit is used to determine that the diarrhea state of the current pig group has worsened and generate an emergency treatment plan if the rising rate of the real-time diarrhea index increases and the number of consecutive rising days of the real-time diarrhea index increases; The second processing unit is used to determine that the diarrhea state of the current pig group has recovered and generate an observation and treatment plan if the decline rate of the real-time diarrhea index increases and the number of consecutive decline days of the real-time diarrhea index increases; The third processing unit is used to determine that the diarrhea state of the current pig group continues to develop if the increase rate / decrease rate of the real-time diarrhea index fluctuates within a preset frequency range and the continuous increase / decrease days of the real-time diarrhea index fluctuate within a preset number of days, and generate a continuous treatment plan.

8. The system for monitoring and treating diarrhea in pig populations according to claim 6, characterized in that: Also includes: A monitoring module, used to monitor in real time whether the current real-time diarrhea index exceeds a preset warning value; If yes, the alarm module is triggered; The alarm module is used to send alarm information to staff via SMS or email; The historical warning recording module is used to store and analyze the alarm information.

9. A device for monitoring and treating diarrhea in pig groups, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the method for monitoring and treating diarrhea in a pig population when executing the computer program; The method for monitoring and treating diarrhea in pig groups comprises: Obtain historical diarrhea images corresponding to pathogen detection batches of pigs; According to the historical diarrhea image, the corresponding number of diarrhea points and the number of diarrhea columns are obtained; Constructing a diarrhea index model based on high-order linear fitting according to the number of diarrhea points and the number of diarrhea columns; Obtaining a diarrhea index calculation formula according to the diarrhea index model; Determine the real-time diarrhea index according to the real-time diarrhea point number and the real-time diarrhea column number, and the diarrhea index calculation formula; A corresponding diarrhea treatment plan is determined according to the real-time diarrhea index.

10. A computer-readable storage medium, characterized in that: The computer readable storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the method for monitoring and treating diarrhea in a pig group are implemented; The method for monitoring and treating diarrhea in pig groups comprises: Obtain historical diarrhea images corresponding to pathogen detection batches of pigs; According to the historical diarrhea image, the corresponding number of diarrhea points and the number of diarrhea columns are obtained; Constructing a diarrhea index model based on high-order linear fitting according to the number of diarrhea points and the number of diarrhea columns; Obtaining a diarrhea index calculation formula according to the diarrhea index model; Determine the real-time diarrhea index according to the real-time diarrhea point number and the real-time diarrhea column number, and the diarrhea index calculation formula; A corresponding diarrhea treatment plan is determined according to the real-time diarrhea index.

Citation Information

Cited By

  • Intestinal microorganism evaluation system and method based on dairy cow diarrhea pathogen analysis

    CN120048440A

  • Intestinal microbial evaluation system and method based on dairy cow diarrhea pathogen analysis

    CN120048440B