Pig farm production behavior supervision system and method

By using artificial intelligence models in pig farms to analyze video and sound signals, identify the number of pigs and the relative average distance, determine the level of fighting behavior and issue an alarm, it solves the problem of existing technology failing to detect fighting behavior in time, and improves the efficiency of pig farms. safety and economic benefits.

CN118823974APending Publication Date: 2024-10-22国农(重庆)生猪大数据产业发展有限公司

Patent Information

Application Number
CN202410800695.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

The existing technology evaluates the growth status of pigs by analyzing picture information, sound information and pig body temperature information, but fails to detect fighting behavior in time, resulting in a low safety factor for the pigs' living environment.

Method used

A pig farm production behavior supervision system is adopted, including an information processing module and an alarm module. Video is collected through a camera and processed in frames, combined with a sound collector to collect sound signals, and an artificial intelligence model is used to identify pig areas and non-pig areas, and analyze pigs. The number and relative average distance are used to determine whether there is aggregation and fighting behavior, and an alarm is issued for intervention based on the level of fighting behavior.

Benefits of technology

Effective early warning of possible behavioral conflicts and disease transmission problems improves the safety level of the farm, reduces the risk of pig injuries and disease transmission caused by fighting, and improves the economic and social benefits of the farm.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118823974A_ABST
    Figure CN118823974A_ABST
Patent Text Reader

Abstract

The invention discloses a live pig farm production behavior supervision system and method, relates to the technical field of live pig farm production behavior supervision, and solves the problem that in the prior art, the growth condition of live pigs is evaluated by analyzing picture information, sound information and body temperature information of the pigs, but abnormal behaviors of the live pigs are not evaluated. The fight behavior cannot be found in time, so that the living environment safety coefficient of the live pigs is low. The method comprises the following steps: acquiring a sound signal of a target captive area and a video of a live pig captive area to obtain a plurality of target captive area images, and inputting the images into a head recognition model to obtain a to-be-detected target image; calculating the relative distance between adjacent live pigs; based on the number of live pigs, the relative distance between adjacent live pigs and sound signals, the fighting behavior level is evaluated, and corresponding measures are taken for timely intervention; the method promotes the improvement of animal welfare and breeding safety, and improves the economic benefits of farms.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of pig breeding production behavior supervision, and specifically relates to a pig breeding farm production behavior supervision system and method. Background Art

[0002] At present, the pig farming model is developing from small and medium-sized households to large-scale and intensive farming models. While the centralized farming method provides a good living environment for the pigs, it also needs to pay attention to whether the pigs have abnormal behavior, so as to take timely measures to minimize economic losses.

[0003] The invention patent application with publication number CN115777571A discloses a monitoring system and method for identifying pig behavior, including a camera, which is used to capture the image information in the pig pen in real time, and is characterized in that it also includes: an audio acquisition module: the audio acquisition module is used to obtain the sound information of the pig; an infrared temperature detector: the infrared temperature detector is used to follow and obtain the body temperature information of a specified pig; a data processing module: the data processing module is used to obtain the image information, sound information and the body temperature information of the pig. A monitoring method for identifying pig behavior: S1: obtain image information of individual pigs in the pig pen; S2: obtain the appearance characteristics, sound characteristics, and body temperature characteristics of each individual pig, and merge and save them; each pig is numbered independently. It solves the problem of poor identity recognition of multiple pigs in the same pen.

[0004] The above-mentioned prior art evaluates the growth status of pigs by analyzing image information, sound information and pig body temperature information, but does not evaluate the abnormal behavior of pigs, and fails to detect fighting behavior in time, resulting in a low safety factor of the living environment of pigs. Therefore, the present invention provides a production behavior monitoring system and method for pig farms. Summary of the invention

[0005] The present invention aims to solve at least one of the technical problems existing in the prior art; to this end, the present invention proposes a pig farm production behavior monitoring system and method, which is used to solve the technical problem that the prior art evaluates the growth status of pigs by analyzing image information, sound information and pig body temperature information, but does not evaluate the abnormal behavior of pigs, fails to detect fighting behavior in time, and leads to a low safety factor of the pigs' living environment.

[0006] To achieve the above-mentioned object, the first aspect of the present invention provides a pig farm production behavior monitoring system, including an information processing module, and an information collection module and an alarm module connected thereto;

[0007] Information collection module: collect videos of pig enclosures through cameras; perform frame processing on the collected videos every other processing cycle to obtain a number of target enclosure area images; input the target enclosure area images into the pig recognition model to identify pig areas and non-pig areas, and mark the target enclosure area images with pig areas as target images to be detected; and,

[0008] The sound signal of the target enclosure area is collected by a sound collector to obtain a sound signal to be identified;

[0009] Among them, the training process of the pig identification model is as follows:

[0010] Extract a number of standard enclosure area images from historical data; use the standard enclosure area images as standard input data, and mark the pig-bearing area and non-pig-bearing area in the standard enclosure area images as standard output data; wherein the standard enclosure area images include images with pigs and images without pigs; the pig-bearing area is marked as 0, and the non-pig-bearing area is marked as 1;

[0011] The artificial intelligence model is trained through standard input data and standard output data to obtain a pig identification model; wherein the artificial intelligence model includes a CNN neural network model or a RBF neural network model.

[0012] Information processing module: According to the number of live pigs in the target image to be detected, analyze whether there is aggregation in the target enclosure area; if not, do not process it; if yes, analyze whether there is fighting behavior; if yes, analyze the level of fighting behavior according to the number of live pigs; if not, do not process it.

[0013] Preferably, the number of live pigs in the target image to be detected also includes the number of live pigs at the edge of the target image to be detected; when the number of live pigs in the target image to be detected exceeds a preset threshold value, it is analyzed whether there is a clustering phenomenon in the target confinement area; if so, the relative average distance between the live pigs in the target confinement area is calculated; if not, no processing is performed.

[0014] The present invention not only counts the number of pigs in the central area of ​​the target image to be detected, but also takes into account the number of pigs at the edge of the image, thereby ensuring the integrity of the pig population statistics in the entire pen area, avoiding the omission of some pigs due to their being located at the edge of the image, and improving the statistical accuracy; by setting a preset threshold value 1, the number changes of the pig group can be monitored in real time. Once the threshold is exceeded, the system can respond quickly and further analyze whether pig aggregation occurs, which is of great significance for preventing the spread of diseases and maintaining order in the breeding environment.

[0015] Preferably, the step of analyzing whether there is a clustering phenomenon in the target enclosure area according to the number of live pigs in the target image to be detected includes:

[0016] By formula Calculate the relative average distance L between pigs in the target enclosure area;

[0017] Determine whether the relative average distance L is less than the preset distance; if yes, there is aggregation in the target image to be detected; if no, there is no aggregation in the target image to be detected; wherein, i represents the pig number, i=0, 1,…, m,…, N; N is a positive integer; Σ represents the sum of i, i≠m; k represents the number of pigs; (Xi, Yi) is the coordinate of the pig head in the target image to be detected.

[0018] The present invention first counts the number of pigs in the target image to be detected. When it exceeds a preset threshold, the head coordinates are extracted to analyze the relative average distance between the pigs, which can accurately evaluate the aggregation phenomenon in the target enclosure area; and avoid the situation where the number of pigs in the target enclosure area does not meet the aggregation quantity standard, and analyzing the relative distance not only increases the workload of detection, but also easily leads to misjudgment.

[0019] Preferably, the coordinates of the pig's head in the target image to be detected include:

[0020] A coordinate system of the target image to be detected is established with the center of the target image to be detected as the coordinate origin and every several pixels as a unit coordinate; based on the coordinate system, the coordinates of the pig's head in the target image to be detected are extracted; wherein the coordinates of the pig's head are the center position of the head.

[0021] The present invention establishes a unified coordinate system by taking the image center as the coordinate origin and using pixel points as the basic unit coordinates, which can realize standardized recognition and positioning of the pig head position, facilitate subsequent data processing and analysis, and enhance the consistency and comparability of the data; especially in the intelligent management of large-scale farms, accurate individual position information is crucial for behavior analysis, disease monitoring, feeding management, etc.

[0022] Preferably, the analyzing whether there is fighting behavior includes:

[0023] If there is a clustering phenomenon in multiple consecutive frames of the target image to be detected, and the sound signal to be identified is a fighting sound signal, then fighting behavior exists in the target enclosure area.

[0024] Preferably, analyzing whether the sound signal to be identified is a fighting sound signal includes:

[0025] The sound features of the pig are extracted from the sound signal to be identified to obtain the target sound signal; the target sound signal is input into the sound recognition model, and the sound recognition model outputs the sound label; wherein the sound label includes fighting sound and normal sound; the normal sound is other types of sound except the fighting sound.

[0026] Preferably, the sound recognition model includes:

[0027] Several pig sound data samples are extracted from the pig sound database and the sound data samples are categorized. The MFCC features of the sound data samples are extracted using a deep learning model, and the sound labels are output to obtain a CNN-LSTM hybrid model.

[0028] The present invention can effectively filter out background noise and other interference factors by extracting the sound features of pigs from complex sound signals to be identified, making sound recognition more accurate and targeted; the sound recognition model can automatically classify the input target sound signals and distinguish between fighting sounds and normal sounds, which greatly facilitates farmers or managers to quickly understand the behavioral status of pigs and promptly discover potential fighting conflicts or other abnormal situations.

[0029] Preferably, analyzing the fighting behavior level according to the number of live pigs includes:

[0030] If the number of live pigs is greater than the preset threshold value one, the fighting behavior level in the target pen area is level three; if the number of live pigs is greater than the preset threshold value two, the fighting behavior level in the target pen area is level two; if the number of live pigs is greater than the preset threshold value three, the fighting behavior level in the target pen area is level one; among them, preset threshold value three>preset threshold value two>preset threshold value one; danger level: level one>level two>level three.

[0031] The present invention can make a more detailed division of the levels of fighting behavior by setting different preset thresholds for the number of live pigs, thus avoiding the limitation of a single threshold and improving the accuracy of judgment; by predicting and judging different levels of fighting behaviors in advance, farms can achieve early detection, early prevention and early treatment, reduce economic losses caused by fighting, such as injuries, deaths, growth stunting and other problems, and improve breeding efficiency.

[0032] Preferably, when the fighting behavior level is level one, the alarm module issues a high-level alarm, and serious fighting behavior occurs in the target enclosure area. Personnel should be sent to intervene on site immediately, and the fighting pigs should be quickly separated. All pigs involved in the fight should be carefully examined and cared for to prevent infection.

[0033] When the fighting behavior level reaches level 2, the alarm module will issue a medium-level alarm, and farm staff should intervene immediately to distract the pigs by honking or knocking on metal objects to interrupt the fighting behavior.

[0034] When the fighting behavior level reaches level three, the alarm module issues a low-level alarm. The farm staff verifies the situation through surveillance video to confirm whether it is an accidental incident or a temporary behavior, and strengthens observation.

[0035] The system of the present invention can make targeted responses according to the different levels of fighting behaviors, which not only avoids the waste of resources caused by overreaction to minor conflicts, but also can take decisive measures quickly when serious fighting incidents occur to ensure the safety and health of pigs; for high-level fighting behaviors, the system can quickly trigger high-level alarms and take effective measures in time to prevent the situation from deteriorating, avoid pig casualties, disease transmission and other problems caused by fighting, and indirectly protect the economic benefits of the farm.

[0036] Preferably, the second aspect of the present invention provides a method for supervising production behavior in a pig farm, comprising the following steps:

[0037] Step 1: Collecting a video of the target enclosure area and performing frame processing to obtain a number of target enclosure area images; collecting a sound signal of the target enclosure area through a sound collector to obtain a sound signal to be identified;

[0038] Step 2: Input the target enclosure area image into the pig recognition model to identify the pig area and the non-pig area to obtain the target image to be detected;

[0039] Step 3: Analyze whether there is a gathering phenomenon in the target enclosure area based on the number of live pigs in the target image to be detected; if not, do not process; if yes, analyze whether there is fighting behavior based on the sound signal to be identified; if yes, analyze the fighting behavior level based on the number of live pigs; if no, do not process;

[0040] Step 4: Based on the level of fighting behavior, the alarm module sounds an alarm and takes appropriate measures to intervene in time.

[0041] Compared with the prior art, the present invention has the following beneficial effects:

[0042] 1. The present invention can timely find areas where pigs are too dense by counting the number of pigs and setting thresholds, effectively warn of possible behavioral conflicts, disease transmission and other problems, and provide managers with timely decision-making basis; extract the head coordinates of pigs in dense areas, and analyze the relative distances between pigs, so as to accurately determine whether there is a gathering phenomenon in the target enclosure area; if not, no processing is done; if yes, the fighting behavior is analyzed in combination with the sound signals of the pigs, and corresponding measures are taken; the fighting behavior can be effectively suppressed, the risk of pigs being injured, infected with diseases or even dying caused by the fighting behavior is reduced, and the safety level of the farm is significantly improved;

[0043] 2. The present invention collects sound signals of the target enclosure area through a sound collector; the camera collects video of the pig enclosure area to obtain a number of target enclosure area images, and inputs them into a head recognition model to identify pigs and non-pigs to obtain a target image to be detected; a coordinate system of the target image to be detected is established, the coordinates of the pig heads are extracted, and the relative distance between the pigs is calculated; based on the number of pigs and the relative distance between adjacent pigs, it is analyzed whether there is a gathering phenomenon in the target enclosure area; if not, no processing is performed; if yes, it is analyzed whether there is fighting behavior; if yes, the fighting behavior level is analyzed according to the number of pigs; if not, no processing is performed; based on the fighting behavior level, the alarm module sounds an alarm and takes corresponding measures to intervene in time; the present invention avoids the problems of pig casualties, disease transmission, etc. caused by fighting, protects the economic and social benefits of the farm, and promotes the improvement of animal welfare and breeding safety. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present invention 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 some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0045] Figure 1 It is a structural schematic diagram of the system of the present invention;

[0046] Figure 2 It is a schematic flow chart of the method for analyzing the aggregation phenomenon in the target enclosure area of ​​the present invention;

[0047] Figure 3 It is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION

[0048] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0049] See also Figure 1 , the first aspect of the present invention provides a pig farm production behavior monitoring system, including an information processing module, and an information collection module and an alarm module connected thereto;

[0050] Information collection module: collect videos of pig enclosures through cameras; perform frame processing on the collected videos every other processing cycle to obtain a number of target enclosure area images; input the target enclosure area images into the pig recognition model to identify pig areas and non-pig areas, and mark the target enclosure area images with pig areas as target images to be detected; and,

[0051] The sound signal of the target enclosure area is collected by a sound collector to obtain a sound signal to be identified;

[0052] It should be noted that the breeding area of ​​a farm is generally divided into several pen areas of equal size, each pen area houses the same number of pigs, and a camera is installed in each pen area, and the camera's field of view is adjusted to cover the pen area.

[0053] Among them, the training process of the pig identification model is as follows:

[0054] Extract a number of standard enclosure area images from historical data; use the standard enclosure area images as standard input data, and mark the pig-bearing area and non-pig-bearing area in the standard enclosure area images as standard output data; wherein the standard enclosure area images include images with pigs and images without pigs; the pig-bearing area is marked as 0, and the non-pig-bearing area is marked as 1;

[0055] The artificial intelligence model is trained through standard input data and standard output data to obtain a pig identification model; wherein the artificial intelligence model includes a CNN neural network model or a RBF neural network model.

[0056] For example: filter out all images related to the captive area from historical data, and these images have different backgrounds, lighting conditions and angles to increase the generalization ability of the model;

[0057] The live pig area and non-live pig area of ​​the pigs in the image are marked separately; the live pig area is marked as 0 and the non-live pig area is marked as 1; and the images related to the pen area are input into the artificial intelligence model as standard input data for training, and the images of the pen area with live pigs are output; after a large amount of image training, a live pig recognition model is obtained.

[0058] See also Figure 2 The information processing module counts the number of pigs in the target image to be detected, including the number of pigs at the edge of the target image to be detected; when the number of pigs in the target image to be detected exceeds a preset threshold value, it analyzes whether there is a clustering phenomenon in the target enclosure area; if so, the relative average distance between the pigs in the target enclosure area is calculated; if not, no processing is performed.

[0059] The analysis process of the relative average distance between pigs in the target enclosure area is as follows:

[0060] By formula Calculate the relative average distance L between pigs in the target enclosure area;

[0061] Determine whether the relative average distance L is less than the preset distance; if yes, there is aggregation in the target image to be detected; if no, there is no aggregation in the target image to be detected; wherein, i represents the pig number, i=0, 1,…, m,…, N; N is a positive integer; Σ represents the sum of i, i≠m; k represents the number of pigs; (Xi, Yi) is the coordinate of the pig in the target image to be detected.

[0062] A coordinate system of the target image to be detected is established with the center of the target image to be detected as the coordinate origin and every several pixels as a unit coordinate; based on the coordinate system, the coordinates of the live pig in the target image to be detected are extracted; wherein the live pig coordinates are the center position of the live pig.

[0063] For example, suppose there is an image of a captive area with a resolution of 1024×768. The center of the image is taken as the origin of the coordinates, and every 10 pixels is set as a unit coordinate, that is, the X axis has coordinate points, the Y axis has coordinate points. Since the coordinates are counted from 0, the X axis is (-51, 50) and the Y axis is (-38, 37); the coordinate system of the target image to be detected is obtained.

[0064] The average distance of the present invention is used to evaluate the aggregation phenomenon in the target enclosure area; the aggregation phenomenon is mainly closely related to the distance between the pigs and the number of pigs in the target enclosure area; if the number of pigs is larger and the total distance between the pigs is smaller, then the distance between a single pig and its adjacent pigs is small, that is, there is aggregation of pigs in the target enclosure area.

[0065] When there is a gathering phenomenon in the target enclosure area, further analyze whether there is fighting behavior in the target enclosure area; if so, analyze the level of fighting behavior based on the number of pigs; if not, do nothing.

[0066] The sound features of the pig are extracted from the sound signal to be identified to obtain the target sound signal; the target sound signal is input into the sound recognition model, and the sound recognition model outputs the sound label; wherein the sound label includes fighting sound and normal sound; the normal sound is other types of sound except the fighting sound.

[0067] Among them, the training method of the sound recognition model is as follows:

[0068] Several pig sound data samples are extracted from the pig sound database and the sound data samples are categorized. The MFCC features of the sound data samples are extracted using a deep learning model, and the sound labels are output to obtain a CNN-LSTM hybrid model.

[0069] If there is a clustering phenomenon in multiple consecutive frames of the target image to be detected, and the sound signal to be identified is a fighting sound signal, then fighting behavior exists in the target enclosure area.

[0070] For example, suppose we have collected a large number of sound samples from a pig sound database, including fighting sounds (such as roaring, hitting, struggling, etc.) and normal sounds (such as eating, resting, breathing, etc.); each sound sample is clearly labeled with a category; use a deep learning model and MFCC to extract the key features of the sound sample; for example, we divide a 5-second pig sound into frames, each frame is 0.1 seconds, and then extract the MFCC feature vector for each frame;

[0071] A CNN-LSTM hybrid model is trained using the extracted MFCC features. CNN is responsible for learning the spatial structure information of the sound from the local features, while LSTM is good at capturing the time series characteristics of the sound. Through the back propagation algorithm and optimization algorithm, the model gradually learns to distinguish between fighting sounds and normal sounds.

[0072] When the system continuously monitors multiple frames of target images to be detected showing that pigs are gathering, and the sound signals obtained through the sound collector are processed by the model, the output sound label is a fighting sound; the system judges that there is fighting in the target enclosure area based on these evidences, and then sends an early warning to the management personnel in time so that they can take measures to intervene as soon as possible and avoid injuries to the pigs.

[0073] If the number of live pigs is greater than the preset threshold value one, the fighting behavior level in the target pen area is level three; if the number of live pigs is greater than the preset threshold value two, the fighting behavior level in the target pen area is level two; if the number of live pigs is greater than the preset threshold value three, the fighting behavior level in the target pen area is level one; among which, the preset threshold value three is greater than the preset threshold value two, and the preset threshold value two is greater than the preset threshold value one; degree of danger: level one>level two>level three.

[0074] The alarm module handles different levels of fighting behavior accordingly:

[0075] When the fighting behavior level is level one, serious fighting behavior occurs in the target enclosure area. Personnel should be sent to intervene on site immediately to quickly separate the fighting pigs and conduct detailed physical examinations and care for all pigs involved in the fight to prevent infection. The herd structure, stocking density and environmental conditions should be re-evaluated, and necessary optimization adjustments should be made, such as re-grouping and improving the feeding environment. Pigs that repeatedly engage in serious fighting behavior should be trained in behavioral correction or considered for elimination to ensure the health and productivity of the entire herd.

[0076] When the fighting behavior level reaches level 2, farm staff should intervene immediately to distract the pigs by whistling or knocking on metal objects to interrupt the fighting behavior; find out the cause of the fighting, such as whether there are environmental factors, disease infection or abnormal individual status, and solve the problem in a targeted manner; if necessary, isolate and treat the injured pigs to ensure that the wounds are clean and avoid the spread of infection; adjust the pig pen facilities, add obstacles or partitions, reduce the chance of face-to-face contact, and reduce the chance of fighting;

[0077] When the fighting behavior level is level three, farm staff will verify the situation through surveillance video to confirm whether it is an accidental incident or a temporary behavior, and strengthen observation; and ensure that the pig stocking density is moderate, and that there are sufficient feed and water sources to avoid conflicts caused by competition for resources; appropriately adjust the pig herd structure to maintain a stable herd order, such as reasonably grouping the pigs according to factors such as weight, age, and gender.

[0078] See also Figure 3 The second aspect of the present invention provides a method for supervising production behavior of a pig farm, comprising the following steps:

[0079] Step 1: Collecting a video of the target enclosure area and performing frame processing to obtain a number of target enclosure area images; collecting a sound signal of the target enclosure area through a sound collector to obtain a sound signal to be identified;

[0080] Step 2: Input the target enclosure area image into the pig recognition model to identify the pig area and the non-pig area to obtain the target image to be detected;

[0081] Step 3: Analyze whether there is a gathering phenomenon in the target enclosure area based on the number of live pigs in the target image to be detected; if not, do not process; if yes, analyze whether there is fighting behavior based on the sound signal to be identified; if yes, analyze the fighting behavior level based on the number of live pigs; if no, do not process;

[0082] Step 4: Based on the level of fighting behavior, the alarm module sounds an alarm and takes appropriate measures to intervene in time.

[0083] Part of the data in the above formula is calculated by removing the dimension and taking its numerical value. The formula is a formula closest to the actual situation obtained by software simulation of a large amount of collected data; the preset parameters and preset thresholds in the formula are set by technical personnel in this field according to actual conditions or obtained through simulation of a large amount of data.

[0084] The above embodiments are only used to illustrate the technical method of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical method of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical method of the present invention.

Claims

1. A pig farm production behavior supervision system, characterized in that: It includes an information processing module, and an information collection module and an alarm module connected thereto; Information acquisition module: collect videos of pig enclosures through cameras; perform frame processing on the collected videos every other processing cycle to obtain a number of target enclosure area images; input the target enclosure area images into the pig recognition model to identify pig areas and non-pig areas, and mark the target enclosure area images with pig areas as target images to be detected; and, The sound signal of the target enclosure area is collected by a sound collector to obtain a sound signal to be identified; Information processing module: Analyze whether there is aggregation in the target enclosure area according to the number of live pigs in the target image to be detected; If not, no processing will be done; If yes, then analyze whether there is fighting behavior; Yes, the level of fighting behavior is analyzed based on the number of pigs; No, no action will be taken.

2. A pig farm production behavior monitoring system according to claim 1, characterized in that: The number of live pigs in the target image to be detected also includes the number of live pigs at the edge of the target image to be detected; when the number of live pigs in the target image to be detected exceeds a preset threshold value, analyzing whether there is a gathering phenomenon in the target enclosure area; If yes, then calculate the relative average distance between pigs in the target enclosure area; If not, no action will be taken.

3. A pig farm production behavior monitoring system according to claim 2, characterized in that: The step of analyzing whether there is a clustering phenomenon in the target enclosure area according to the number of live pigs in the target image to be detected includes: By formula Calculate the relative average distance L between pigs in the target enclosure area; Determine whether the relative average distance L is less than the preset distance; if yes, there is aggregation in the target image to be detected; if no, there is no aggregation in the target image to be detected; wherein, i represents the pig number, i=0, 1,…, m,…, N; N is a positive integer; Σ represents the sum of i, i≠m; k represents the number of pigs; (Xi, Yi) is the coordinate of the pig head in the target image to be detected.

4. A pig farm production behavior monitoring system according to claim 3, characterized in that: The coordinates of the pig's head in the target image to be detected include: A coordinate system of the target image to be detected is established with the center of the target image to be detected as the coordinate origin and every several pixels as a unit coordinate; based on the coordinate system, the coordinates of the pig's head in the target image to be detected are extracted; wherein the coordinates of the pig's head are the center position of the head.

5. A pig farm production behavior monitoring system according to claim 1, characterized in that: The analysis of whether there is fighting behavior includes: If there is a clustering phenomenon in multiple consecutive frames of the target image to be detected, and the sound signal to be identified is a fighting sound signal, then fighting behavior exists in the target enclosure area.

6. A pig farm production behavior monitoring system according to claim 1, characterized in that: Analyze whether the sound signal to be identified is a fighting sound signal, including: The sound features of the pig are extracted from the sound signal to be identified to obtain the target sound signal; the target sound signal is input into the sound recognition model, and the sound recognition model outputs the sound label; wherein the sound label includes fighting sound and normal sound; the normal sound is other types of sound except the fighting sound.

7. A pig farm production behavior monitoring system according to claim 6, characterized in that: The sound recognition model comprises: Several pig sound data samples are extracted from the pig sound database and the sound data samples are categorized. The MFCC features of the sound data samples are extracted using a deep learning model, and the sound labels are output to obtain a CNN-LSTM hybrid model.

8. A pig farm production behavior monitoring system according to claim 1, characterized in that: The analysis of the fighting behavior level based on the number of pigs includes: If the number of live pigs is greater than the preset threshold value one, the fighting behavior level in the target pen area is level three; if the number of live pigs is greater than the preset threshold value two, the fighting behavior level in the target pen area is level two; if the number of live pigs is greater than the preset threshold value three, the fighting behavior level in the target pen area is level one; among which, the preset threshold value three is greater than the preset threshold value two, and the preset threshold value two is greater than the preset threshold value one; degree of danger: level one>level two>level three.

9. A pig farm production behavior monitoring system according to claim 1, characterized in that: When the fighting behavior level is level one, the alarm module will issue a high-level alarm. If serious fighting occurs in the target enclosure area, personnel should be sent to intervene immediately, quickly separate the fighting pigs, and conduct detailed physical examinations and care for all pigs involved in the fight to prevent infection. When the fighting behavior level reaches level 2, the alarm module will issue a medium-level alarm, and farm staff should intervene immediately to distract the pigs by honking or knocking on metal objects to interrupt the fighting behavior. When the fighting behavior level reaches level three, the alarm module issues a low-level alarm. The farm staff verifies the situation through surveillance video to confirm whether it is an accidental incident or a temporary behavior, and strengthens observation.

10. A production behavior supervision method of a pig farm production behavior supervision system, characterized in that: The following steps are involved: Step 1: Collecting a video of the target enclosure area and performing frame processing to obtain a number of images of the target enclosure area; The sound signal of the target enclosure area is collected by a sound collector to obtain a sound signal to be identified; Step 2: Input the target enclosure area image into the pig recognition model to identify the pig area and the non-pig area to obtain the target image to be detected; Step 3: According to the number of live pigs in the target image to be detected, analyze whether there is a clustering phenomenon in the target enclosure area; if not, no processing is performed; If yes, then based on the sound signal to be identified, analyze whether there is fighting behavior; Yes, the level of fighting behavior is analyzed based on the number of pigs; No, no action will be taken; Step 4: Based on the level of fighting behavior, the alarm module sounds an alarm and takes appropriate measures to intervene in time.

Citation Information

Patent Citations

  • Animal state monitoring method and device, electronic equipment and storage medium

    CN111199535A

  • Modern pig breeding base real-time monitoring and management system based on big data

    CN111766827A

  • Monitoring system and method for identifying live pig behaviors

    CN115777571A

  • Pig breeding early warning system and method

    CN118000118A

Cited By

  • Anti-interference sound analysis system and method for pig farm

    CN121438844A