Light control method and system based on optical image recognition
Through the method based on optical image recognition, the abnormal coefficient of poultry and the light intensity are calculated, which solves the problem of inaccurate control of lighting parameters in the prior art, and improves breeding efficiency and poultry health.
Patent Information
- Application Number
- CN202410935234.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-11-15
AI Technical Summary
The prior art is difficult to accurately identify and regulate the lighting response of poultry to different growth stages, resulting in inaccurate control of lighting parameters, affecting breeding efficiency and poultry health.
Using an optical image recognition method, by collecting historical data and optical images of poultry, the abnormality coefficient of work and rest, behavioral abnormality coefficient and health abnormality coefficient are calculated, and the lighting effect coefficient is calculated, and the light intensity is adjusted to achieve precise control.
Accurate control of the light intensity during the light cycle is achieved, breeding efficiency is improved, the negative impact of excessive or insufficient lighting is reduced, and the health of poultry is ensured.
Smart Images

Figure CN118967998A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of lighting control, and in particular to a lighting control method and system based on optical image recognition. Background Art
[0002] In the process of artificial breeding of poultry, light not only provides lighting function, but also is an important factor affecting the growth, reproduction and behavior of poultry; it is mainly reflected in regulating the biological clock, promoting growth and weight gain, affecting sexual maturity and reproduction, etc. Reasonable light management plays an important role in improving breeding efficiency, optimizing production performance and ensuring poultry health.
[0003] Poultry farming can generally be divided into multiple stages. In different stages, poultry has different requirements for light intensity. In order to maximize the effect of light and improve the effect of farming, it is necessary to adjust the light intensity according to the life cycle of poultry. However, if the light intensity is unreasonable, it will lead to negative situations in poultry, including: biological rhythm disorders, affecting production performance; increased physiological stress, being in a high state of alert, aggressive behavior and fighting; long-term exposure to excessive light, eye damage, eye diseases or visual problems, etc.
[0004] Therefore, farms should reasonably control light intensity to avoid the negative effects of excessive lighting.
[0005] In the prior art, the patent with application number CN201510068687.7 proposes a method for raising poultry using LED light sources; the LED light source, intensity and irradiation time are selected according to the different stages of poultry growth and development. The light exposure for young poultry or laying livestock is stable at 16 hours a day, the color temperature is 2600-2800K, and the light intensity is 5-18LUX. The light exposure for meat poultry is stable at 16 hours a day, the color temperature is 6800-7000K, and the light intensity is 20-30LUX, which effectively promotes the growth and development of poultry.
[0006] Patent application number CN201810023932.6 proposes an intelligent lighting control system for unmanned farms. The lighting unit is controlled in real time according to the lighting environment conditions in the farm shed through an environmental feature matching module, solving the problems of high operating costs and poor auxiliary effects for unmanned supervision in existing farm lighting control systems.
[0007] The patent with application number CN201910181001.3 proposes a lighting control method and lighting device for indoor ecological fish farming; including: obtaining a lighting control signal, the lighting control signal includes preset lighting adjustment parameters or dynamic lighting adjustment parameters input by the user, and the preset lighting adjustment parameters are set corresponding to the current farming conditions of farmed fish; controlling the lighting device according to the lighting control signal, significantly improving work efficiency, saving costs and farming time.
[0008] The existing lighting control technology for aquaculture mainly focuses on stage-by-stage adjustment of lighting parameters, but fails to accurately identify the lighting response and growth status of the farmed animals and perform feedback adjustment of the lighting, and cannot well achieve control of lighting parameters.
[0009] To this end, a lighting control method and system based on optical image recognition are proposed. Summary of the invention
[0010] The purpose of the present invention is to provide a lighting control method and system based on optical image recognition, which obtains a standard parameter set for poultry farming according to historical data of poultry farming; collects poultry data in the farming process to obtain environmental parameters, growth parameters and poultry optical images within the light cycle; identifies abnormal conditions of poultry within the light cycle according to the collected data, and obtains abnormal work and rest coefficients, abnormal behavior coefficients and abnormal health coefficients; calculates the lighting effect coefficient of the light cycle according to the poultry data, abnormal work and rest coefficients, abnormal behavior coefficients and abnormal health coefficients; and adjusts the light intensity according to the lighting effect coefficient. The present invention calculates the lighting effect coefficient according to the abnormal conditions of poultry and poultry data within the light cycle, and realizes accurate control of the light intensity.
[0011] To achieve the above object, the present invention provides the following technical solutions:
[0012] A lighting control method based on optical image recognition, comprising:
[0013] S1. Collect historical data of poultry farming, and obtain a standard parameter set for poultry farming based on the historical data; the standard parameter set includes a photoperiod and an initial light intensity;
[0014] S2. During the illumination cycle, the lighting is controlled with an initial illumination intensity, and poultry data is collected during the illumination cycle to obtain environmental parameters, growth parameters and optical images of poultry;
[0015] S3. Divide the illumination cycle into multiple unit cycles, determine the type of the unit cycle according to the behavior recognition of the poultry optical image within the unit cycle; obtain a feeding vector and a resting vector according to the type of the unit cycle; calculate the abnormal work and rest coefficient of the poultry according to the feeding vector and the resting vector;
[0016] S4. constructing a behavior recognition model, identifying the poultry optical image through the behavior recognition model, and obtaining the abnormal behavior coefficient of the poultry;
[0017] S5. constructing a health recognition model, identifying the poultry optical image through the health recognition model, and obtaining the health abnormality coefficient of the poultry;
[0018] S6. Calculate the illumination effect coefficient of the illumination cycle according to the poultry data, the abnormal work and rest coefficient, the abnormal behavior coefficient and the abnormal health coefficient;
[0019] S7. Adjust the illumination intensity according to the illumination effect coefficient and the effect threshold to obtain an adjusted illumination intensity, and use the adjusted illumination intensity as the initial illumination intensity of the next illumination cycle.
[0020] The environmental parameters include ambient temperature, ambient humidity, air quality and breeding density; the growth parameters include initial weight of poultry, feed consumption, poultry temperature data and final weight of poultry; the poultry optical image is obtained by splitting the poultry optical video obtained by the shooting device frame by frame.
[0021] The process of obtaining the abnormal work and rest coefficient is as follows:
[0022] Dividing the illumination cycle according to a time threshold to obtain a plurality of unit cycles; obtaining optical images of poultry within the unit cycle, and determining the number of optical images of poultry eating and the number of optical images of poultry resting by image recognition;
[0023] Classifying unit cycles according to the number of optical images of eating and resting, including eating unit cycles, resting unit cycles and other types;
[0024] Obtaining an eating vector according to an eating unit cycle, and calculating an eating similarity coefficient according to a distance between the eating vector and the standard eating vector; obtaining a resting vector according to a resting unit cycle, and calculating a resting similarity coefficient according to a distance between the resting vector and the standard resting vector;
[0025] Calculate the work and rest standard coefficient according to the eating similarity coefficient and the resting similarity coefficient;
[0026] Obtaining the standard work and rest coefficients of all poultry and taking the average value to obtain the poultry work and rest coefficient; calculating the abnormal work and rest coefficient according to the poultry work and rest coefficient;
[0027] The calculation formula of the abnormal work and rest coefficient is:
[0028] Awar = 1-Prest;
[0029]
[0030] sim i =α1*eatf i +α2*restf i ;
[0031] Among them, Awar represents the abnormal work and rest coefficient; Prest represents the poultry work and rest coefficient; sim i represents the standard coefficient of the work and rest schedule of poultry i; eatf i represents the similarity coefficient of feeding of poultry i; restf i represents the rest similarity coefficient of poultry i; α1 represents the feeding weight; α2 represents the rest weight; n represents the number of poultry.
[0032] The process of obtaining the abnormal behavior coefficient is as follows:
[0033] Constructing a behavior recognition model, inputting the poultry optical video into the behavior recognition model, and outputting a behavior abnormality coefficient;
[0034] The behavior recognition model includes a video input layer, a video preprocessing layer, a feature extraction layer, a behavior recognition layer and a recognition result output layer;
[0035] The video input layer is used to input the poultry optical video into the model for training;
[0036] The video preprocessing layer is used to preprocess the poultry optical video to obtain a preprocessed poultry video;
[0037] The feature extraction layer extracts features from the pre-processed poultry video to obtain poultry behavior features;
[0038] The behavior recognition layer is used to recognize the behavior characteristics of the poultry and obtain the abnormal behavior probability that the poultry behavior characteristics are abnormal;
[0039] The recognition result output layer calculates the behavior abnormality coefficient based on the weighted probability of the abnormal behavior and outputs it.
[0040] The process of obtaining the health abnormality coefficient is as follows:
[0041] Acquire an optical image of the same poultry individual, input the poultry individual image and corresponding temperature data into a poultry health recognition model for recognition, and obtain a health abnormality coefficient;
[0042] The poultry health recognition model is obtained by training and optimizing the convolutional neural network model; it includes a data input layer, an optical image preprocessing layer, an optical image segmentation layer, an eye abnormality recognition layer, a feather abnormality recognition layer, a temperature abnormality recognition layer and an abnormal result output layer;
[0043] The data input layer is used to input the poultry individual images and corresponding temperature data into the model;
[0044] The optical image preprocessing layer is used to preprocess the individual poultry images to obtain preprocessed individual poultry images;
[0045] The optical image segmentation layer is used to segment the pre-processed poultry individual image to obtain a poultry eye image and a poultry feather image;
[0046] The eye abnormality recognition layer is used to recognize poultry eye images and obtain eye abnormality coefficients;
[0047] The feather anomaly recognition layer is used to recognize poultry feather images and obtain feather anomaly coefficients;
[0048] The temperature anomaly identification layer is used to identify the temperature data and obtain the temperature anomaly coefficient;
[0049] The abnormal result output layer is used to calculate the health abnormality coefficient according to the eye abnormality coefficient, the feather abnormality coefficient and the temperature abnormality coefficient, and output it.
[0050] The calculation formula of the lighting effect coefficient is:
[0051]
[0052] Among them, Cyca represents the lighting effect coefficient; FCR represents the feed conversion rate of poultry; FT represents the conversion threshold; β1 represents the work and rest weight; Awar represents the work and rest abnormality coefficient; β2 represents the behavior weight; Aact represents the behavior abnormality coefficient; β3 represents the health weight; Heat represents the health abnormality coefficient; θ represents the comprehensive abnormality threshold; exp represents the exponential function with natural constant as the base; Feed represents the feed consumption; Ewe i represents the final weight of poultry i; Swe i represents the initial weight of poultry i; n represents the number of poultry.
[0053] The present invention also proposes a lighting control system based on optical image recognition, comprising:
[0054] A data acquisition module collects historical data of poultry farming and obtains a standard parameter set for poultry farming based on the historical data; the standard parameter set includes a photoperiod and an initial light intensity;
[0055] A data monitoring module controls the light with an initial light intensity during the light cycle, and collects poultry data during the light cycle to obtain environmental parameters, growth parameters and poultry optical images;
[0056] The first abnormality recognition module divides the light cycle into multiple unit cycles, and determines the type of the unit cycle according to the behavior recognition of the poultry optical image within the unit cycle; obtains the feeding vector and the resting vector according to the type of the unit cycle; and calculates the work and rest abnormality coefficient of the poultry according to the feeding vector and the resting vector;
[0057] A second abnormality recognition module is used to construct a behavior recognition model, and to recognize the poultry optical image through the behavior recognition model to obtain a behavior abnormality coefficient of the poultry;
[0058] A third abnormality recognition module is used to construct a health recognition model, and to recognize the poultry optical image through the health recognition model to obtain a health abnormality coefficient of the poultry;
[0059] A lighting effect calculation module is used to calculate a lighting effect coefficient according to the poultry data, the abnormal work and rest coefficient, the abnormal behavior coefficient and the abnormal health coefficient;
[0060] The illumination intensity adjustment module adjusts the illumination intensity according to the illumination effect coefficient and the effect threshold to obtain the adjusted illumination intensity, and uses the adjusted illumination intensity as the initial illumination intensity of the next illumination cycle.
[0061] The environmental parameters include ambient temperature, ambient humidity, air quality and breeding density; the growth parameters include initial weight of poultry, feed consumption, poultry temperature data and final weight of poultry; the poultry optical image is obtained by splitting the poultry optical video obtained by the shooting device frame by frame.
[0062] The calculation formula of the abnormal work and rest coefficient is:
[0063] Awar = 1-Prest;
[0064]
[0065] sim i =α1*eatf i +α2*restf i ;
[0066] Among them, Awar represents the abnormal work and rest coefficient; Prest represents the poultry work and rest coefficient; sim i represents the standard coefficient of the work and rest schedule of poultry i; eatf i represents the similarity coefficient of feeding of poultry i; restf i represents the rest similarity coefficient of poultry i; α1 represents the feeding weight; α2 represents the rest weight; n represents the number of poultry.
[0067] The calculation formula of the lighting effect coefficient is:
[0068]
[0069] Among them, Cyca represents the lighting effect coefficient; FCR represents the feed conversion rate of poultry; FT represents the conversion threshold; β1 represents the work and rest weight; Awar represents the work and rest abnormality coefficient; β2 represents the behavior weight; Aact represents the behavior abnormality coefficient; β3 represents the health weight; Heat represents the health abnormality coefficient; θ represents the comprehensive abnormality threshold; exp represents the exponential function with natural constant as the base; Feed represents the feed consumption; Ewe i represents the final weight of poultry i; Swe i represents the initial weight of poultry i; n represents the number of poultry.
[0070] Compared with the prior art, the present invention has the following beneficial effects:
[0071] 1. The present invention divides the illumination cycle into unit cycles, performs type classification through optical image recognition within the unit cycles, and obtains the feeding vector and resting vector of poultry according to the type classification of the unit cycles; obtains the feeding similarity coefficient and the resting similarity coefficient according to the standard vector distance calculation corresponding to the feeding vector and the resting vector; obtains the standard work and rest coefficient of poultry according to the feeding similarity coefficient and the resting similarity coefficient; obtains the abnormal work and rest coefficient of poultry according to the standard work and rest coefficient of all poultry; and accurately identifies and measures the abnormal work and rest of poultry.
[0072] 2. The present invention collects and classifies historical data on poultry farming to obtain types and video images of abnormal poultry behaviors; and trains and tunes a convolutional neural network based on the obtained video images to obtain a behavior recognition model; the behavior recognition model can accurately identify the abnormal behavior coefficient of poultry during the poultry farming process.
[0073] 3. The present invention collects and classifies historical data on poultry farming to obtain types and video images of poultry health abnormalities; a health recognition model is trained based on the video images and temperature data of health abnormalities; the health recognition model can accurately identify the health abnormality coefficient of poultry through poultry eye abnormalities, feather abnormalities and temperature abnormalities.
[0074] 4. The present invention uses the feed conversion rate of poultry farming as the main factor to measure the effect of light intensity within the light cycle, and weights the weight changes through the abnormal work and rest, abnormal behavior and abnormal health, so as to calculate the light effect coefficient; the light intensity effect within the light cycle is accurately measured through the light effect coefficient. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] Figure 1 This is a schematic diagram of a breeding farm A of the present invention;
[0076] Figure 2 A schematic flow chart of a lighting control method based on optical image recognition according to the present invention;
[0077] Figure 3 It is a structural schematic diagram of the behavior recognition model of the present invention;
[0078] Figure 4 It is a structural schematic diagram of the health identification model of the present invention;
[0079] Figure 5 The figure is a schematic diagram of the structure of a lighting control system based on optical image recognition according to the present invention. DETAILED DESCRIPTION
[0080] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. 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.
[0081] In the process of artificial breeding of poultry, light not only provides lighting function, but also is an important factor affecting the growth, reproduction and behavior of poultry; it is mainly reflected in regulating the biological clock, promoting growth and weight gain, affecting sexual maturity and reproduction, etc. Reasonable light management plays an important role in improving breeding efficiency, optimizing production performance and ensuring poultry health.
[0082] In order to optimize the production performance and welfare of laying hens to the greatest extent, the present invention proposes a lighting control method and system based on optical image recognition.
[0083] Embodiment 1;
[0084] Farm A is dedicated to raising poultry for meat. During the breeding process, adjusting the light duration and intensity according to the growth stage and feeding goals of the poultry can affect the behavior and production performance of the poultry. Figure 1 shown.
[0085] In order to achieve a better lighting effect, farm A adopts a lighting control method based on optical image recognition described in the present invention to control the lighting intensity.
[0086] The present invention proposes a lighting control method based on optical image recognition, the process of which is as follows: Figure 2 As shown, including:
[0087] S1. Collect historical data of poultry farming, and obtain a standard parameter set for poultry farming based on the historical data; the standard parameter set includes a photoperiod and an initial light intensity.
[0088] The light cycle is determined based on historical data, expressed as the lighting time and non-lighting time within the cycle; Farm A sets the light cycle to 1 day, and determines the lighting time in the light cycle based on historical data and the growth stage of the poultry, and obtains the initial light intensity.
[0089] S2. During the light cycle, the light is controlled with an initial light intensity, and the poultry data during the light cycle is collected to obtain environmental parameters, growth parameters and poultry optical images.
[0090] The environmental parameters include ambient temperature, ambient humidity, air quality and breeding density;
[0091] The growth parameters include initial poultry weight, feed consumption, poultry temperature data and poultry final weight;
[0092] The poultry optical image is obtained by splitting the poultry optical video obtained by the shooting device frame by frame.
[0093] The environment in the poultry farm is monitored for abnormalities based on environmental parameters and set environmental thresholds to ensure that the light intensity is regulated within a safe range.
[0094] During the photoperiod, data on farmed poultry is monitored and collected in three dimensions: environmental parameters, growth parameters, and optical images. This allows for real-time and accurate understanding of the poultry situation and environmental safety monitoring, facilitating the identification of subsequent abnormal situations.
[0095] S3. Divide the illumination cycle into a plurality of unit cycles, and determine the type of the unit cycle based on the behavior recognition of the optical image of the poultry within the unit cycle; obtain a feeding vector and a resting vector based on the type of the unit cycle; and calculate the abnormal work and rest coefficient of the poultry based on the feeding vector and the resting vector.
[0096] The process of obtaining the abnormal work and rest coefficient is as follows:
[0097] Dividing the illumination cycle according to a time threshold to obtain a plurality of unit cycles; obtaining optical images of poultry within the unit cycle, and determining the number of optical images of poultry eating and the number of optical images of poultry resting by image recognition;
[0098] Classifying unit cycles according to the number of optical images of eating and resting, including eating unit cycles and resting unit cycles;
[0099] The unit cycle division and classification of farm A is as follows: the light cycle is set to 1 day, a total of 24 hours; the unit cycle time is set to 1 minute, a total of 1440 minutes in one day; so there are 1440 unit cycles in one light cycle; the optical images of poultry in the unit cycle are obtained, and a total of 60 optical images are obtained in a frame-per-second manner. Image recognition is performed on the poultry optical images to determine the work and rest types of poultry; the work and rest types of poultry optical images include eating, resting, and others; if the number of optical images of eating is not less than 30, the unit cycle is regarded as a feeding unit cycle; if the number of optical images of resting is not less than 30, the unit cycle is regarded as a resting unit cycle. If the number of optical images of eating and the number of optical images of resting are both less than 30, they are regarded as other types of unit cycles.
[0100] After classifying all unit cycles within the light cycle, the eating vector and the resting vector are obtained;
[0101] The method for obtaining the eating vector is to represent the eating unit cycle with the number 1 and the non-eating unit cycle with the number 0, and arrange them in chronological order to obtain the eating vector;
[0102] The method for obtaining the rest vector is to represent the rest unit cycle with the number 1, represent the non-rest unit cycle with the number 0, and arrange them in chronological order to obtain the eating vector.
[0103] An eating vector is obtained according to an eating unit cycle, and an eating similarity coefficient is obtained according to a distance calculation between the eating vector and the standard eating vector; a rest vector is obtained according to a rest unit cycle, and a rest similarity coefficient is obtained according to a distance calculation between the rest vector and the standard rest vector; the standard eating vector and the standard rest vector are obtained according to historical data.
[0104] The work and rest standard coefficient is calculated according to the eating similarity coefficient and the rest similarity coefficient; the work and rest standard coefficients of all poultry are obtained and averaged to obtain the poultry work and rest coefficient; the work and rest abnormality coefficient is calculated according to the poultry work and rest coefficient;
[0105] The calculation formula of the abnormal work and rest coefficient is:
[0106] Awar = 1-Prest;
[0107]
[0108] sim i =α1*eatf i +α2*restf i ;
[0109] Among them, Awar represents the abnormal work and rest coefficient; Prest represents the poultry work and rest coefficient; sim i represents the standard coefficient of the work and rest schedule of poultry i; eatf i represents the similarity coefficient of feeding of poultry i; restf i represents the rest similarity coefficient of poultry i; α1 represents the feeding weight; α2 represents the rest weight; n represents the number of poultry.
[0110] The present invention divides the illumination cycle into unit cycles, performs type classification through optical image recognition within the unit cycles, obtains the feeding vector and resting vector of the poultry according to the type classification of the unit cycles; obtains the feeding similarity coefficient and the resting similarity coefficient according to the standard vector distance calculation corresponding to the feeding vector and the resting vector; obtains the standard work and rest coefficient of the poultry according to the feeding similarity coefficient and the resting similarity coefficient; obtains the abnormal work and rest coefficient of the poultry according to the standard work and rest coefficient of all the poultry; and accurately identifies and measures the abnormal work and rest conditions of all the poultry.
[0111] S4. Constructing a behavior recognition model, and identifying the poultry optical image through the behavior recognition model to obtain the abnormal behavior coefficient of the poultry.
[0112] The process of obtaining the abnormal behavior coefficient is as follows:
[0113] Constructing a behavior recognition model, inputting the poultry optical video into the behavior recognition model, and outputting a behavior abnormality coefficient;
[0114] The structure of the behavior recognition model is as follows Figure 3 As shown, it includes a video input layer, a video preprocessing layer, a feature extraction layer, a behavior recognition layer and a recognition result output layer;
[0115] The video input layer is used to input the poultry optical video into the model for training;
[0116] The video preprocessing layer is used to preprocess the poultry optical video to obtain a preprocessed poultry video;
[0117] The feature extraction layer extracts features from the pre-processed poultry video to obtain poultry behavior features;
[0118] The behavior recognition layer is used to recognize the behavior characteristics of the poultry and obtain the abnormal behavior probability that the poultry behavior characteristics are abnormal; the same poultry may have multiple abnormal behaviors, that is, there are multiple abnormal behavior probabilities;
[0119] The recognition result output layer calculates the behavior abnormality coefficient based on the weighted probability of the abnormal behavior and outputs it.
[0120] The construction of the behavior recognition model is based on convolutional neural network training, and its training data is obtained based on historical data of poultry farming. The types of training data include:
[0121] Abnormal activity data: High light intensity or abnormal light cycle may cause excessive or insufficient activity in poultry;
[0122] Aggression data: Improper lighting may lead to increased aggression between birds, especially if the light intensity is too high or the lighting is uneven;
[0123] Escape behavior data: Insufficient light or excessive light intensity may make poultry feel unsafe, causing them to escape or try to leave the lighted area;
[0124] Data on abnormal sexual behavior: Light has an important impact on the reproductive behavior of poultry. Inappropriate lighting conditions may lead to abnormal sexual behavior, such as precocious puberty, prolonged maturity, or changes in the frequency of sexual behavior.
[0125] The behavior recognition model is trained and tuned through the above abnormal behavior data.
[0126] The present invention collects and classifies historical data of poultry farming to obtain types and video images of abnormal poultry behaviors; and trains and tunes a convolutional neural network according to the obtained video images to obtain a behavior recognition model; and the behavior recognition model can accurately identify the abnormal behavior coefficient of poultry during the poultry farming process.
[0127] S5. Construct a health recognition model, and use the health recognition model to recognize the poultry optical image to obtain the health abnormality coefficient of the poultry.
[0128] The process of obtaining the health abnormality coefficient is as follows:
[0129] Acquire an optical image of the same poultry individual, input the poultry individual image and corresponding temperature data into a poultry health recognition model for recognition, and obtain a health abnormality coefficient;
[0130] The health recognition model is obtained by training and optimizing the convolutional neural network model, and its structure is as follows: Figure 4As shown; including a data input layer, an optical image preprocessing layer, an optical image segmentation layer, an eye abnormality recognition layer, a feather abnormality recognition layer, a temperature abnormality recognition layer and an abnormal result output layer;
[0131] The data input layer is used to input the poultry individual images and corresponding temperature data into the model;
[0132] The optical image preprocessing layer is used to preprocess the individual poultry images to obtain preprocessed individual poultry images;
[0133] The optical image segmentation layer is used to segment the pre-processed poultry individual image to obtain a poultry eye image and a poultry feather image;
[0134] The eye abnormality recognition layer is used to recognize poultry eye images and obtain eye abnormality coefficients;
[0135] The feather anomaly recognition layer is used to recognize poultry feather images and obtain feather anomaly coefficients;
[0136] The temperature anomaly identification layer is used to identify the temperature data and obtain the temperature anomaly coefficient;
[0137] The abnormal result output layer is used to calculate the health abnormality coefficient according to the eye abnormality coefficient, the feather abnormality coefficient and the temperature abnormality coefficient, and output it.
[0138] The present invention collects and classifies historical data of poultry breeding to obtain types and video images of poultry health abnormalities; a health recognition model is trained based on the video images and temperature data of health abnormalities; the health recognition model can accurately identify the health abnormality coefficient of poultry through eye abnormalities, feather abnormalities and temperature abnormalities of poultry.
[0139] S6. Calculate the lighting effect coefficient of the lighting cycle according to the poultry data, the abnormal work and rest coefficient, the abnormal behavior coefficient and the abnormal health coefficient.
[0140] The calculation formula of the lighting effect coefficient is:
[0141]
[0142] Among them, Cyca represents the lighting effect coefficient; FCR represents the feed conversion rate of poultry; FT represents the conversion threshold; β1 represents the work and rest weight; Awar represents the work and rest abnormality coefficient; β2 represents the behavior weight; Aact represents the behavior abnormality coefficient; β3 represents the health weight; Heat represents the health abnormality coefficient; θ represents the comprehensive abnormality threshold; exp represents the exponential function with natural constant as the base; feed represents the feed consumption; Ewe i represents the final weight of poultry i; Swei represents the initial weight of poultry i; n represents the number of poultry.
[0143] Among them, the feed conversion rate of poultry is defined as the amount of feed required for unit weight growth; the work and rest weight, behavior weight and health weight are adjusted based on historical data verification.
[0144] The present invention uses the weight change of poultry as the main factor to measure the effect of light intensity within a light cycle, and weights the weight change by obtaining abnormal work and rest, abnormal behavior and abnormal health, so as to calculate the light effect coefficient; the light intensity effect within a light cycle is accurately measured by the light effect coefficient.
[0145] S7. Adjust the illumination intensity according to the illumination effect coefficient and the effect threshold to obtain an adjusted illumination intensity, and use the adjusted illumination intensity as the initial illumination intensity of the next illumination cycle.
[0146]
[0147] Among them, CT represents the effect threshold; Type represents the effect type; when Type = 0, it means that the weight of the poultry has not increased, and a warning message is issued; when Type = 1, it means that the lighting effect is poor, a warning message is issued, and further investigation is conducted on the lighting effect; when Type = 2, it means that the lighting effect is good, and the existing light intensity can be maintained or enhanced according to the set light threshold.
[0148] The present invention obtains a standard parameter set for poultry farming based on historical data of poultry farming; collects poultry data in the farming process to obtain environmental parameters, growth parameters and poultry optical images within a light cycle; identifies abnormal conditions of poultry within a light cycle based on the collected data to obtain abnormal work and rest coefficients, abnormal behavior coefficients and abnormal health coefficients; calculates an illumination effect coefficient for the light cycle based on the growth parameters, abnormal work and rest coefficients, abnormal behavior coefficients and abnormal health coefficients; and adjusts the illumination intensity based on the illumination effect coefficient. The present invention calculates an illumination effect coefficient based on abnormal conditions of poultry within a light cycle and poultry data, thereby achieving accurate control of the illumination intensity.
[0149] Embodiment 2:
[0150] The present invention proposes a lighting control system based on optical image recognition, the process of which is as follows: Figure 5 As shown, including:
[0151] A data acquisition module collects historical data of poultry farming and obtains a standard parameter set for poultry farming based on the historical data; the standard parameter set includes a photoperiod and an initial light intensity;
[0152] A data monitoring module controls the light with an initial light intensity during the light cycle, and collects poultry data during the light cycle to obtain environmental parameters, growth parameters and poultry optical images;
[0153] The environmental parameters include ambient temperature, ambient humidity, air quality and breeding density; the growth parameters include initial weight of poultry, feed consumption, poultry temperature data and final weight of poultry; the poultry optical image is obtained by splitting the poultry optical video obtained by the shooting device frame by frame.
[0154] The first abnormality recognition module divides the light cycle into multiple unit cycles, and determines the type of the unit cycle according to the behavior recognition of the poultry optical image within the unit cycle; obtains the feeding vector and the resting vector according to the type of the unit cycle; and calculates the work and rest abnormality coefficient of the poultry according to the feeding vector and the resting vector;
[0155] The process of obtaining the abnormal work and rest coefficient is as follows:
[0156] Dividing the illumination cycle according to a time threshold to obtain a plurality of unit cycles; obtaining optical images of poultry within the unit cycle, and determining the number of optical images of poultry eating and the number of optical images of poultry resting by image recognition;
[0157] Classifying unit cycles according to the number of optical images of eating and resting, including eating unit cycles, resting unit cycles and other types;
[0158] Obtaining an eating vector according to an eating unit cycle, and calculating an eating similarity coefficient according to a distance between the eating vector and the standard eating vector; obtaining a resting vector according to a resting unit cycle, and calculating a resting similarity coefficient according to a distance between the resting vector and the standard resting vector;
[0159] Calculate the work and rest standard coefficient according to the eating similarity coefficient and the resting similarity coefficient;
[0160] Obtaining the standard work and rest coefficients of all poultry and taking the average value to obtain the poultry work and rest coefficient; calculating the abnormal work and rest coefficient according to the poultry work and rest coefficient;
[0161] The calculation formula of the abnormal work and rest coefficient is:
[0162] Awar = 1-Prest;
[0163]
[0164] sim i =α1*eatf i +α2*restf i ;
[0165] Among them, Awar represents the abnormal work and rest coefficient; Prest represents the poultry work and rest coefficient; sim i represents the standard coefficient of the work and rest schedule of poultry i; eatf i represents the similarity coefficient of feeding of poultry i; restf i represents the rest similarity coefficient of poultry i; α1 represents the feeding weight; α2 represents the rest weight; n represents the number of poultry.
[0166] A second abnormality recognition module is used to construct a behavior recognition model, and to recognize the poultry optical image through the behavior recognition model to obtain a behavior abnormality coefficient of the poultry;
[0167] A third abnormality recognition module is used to construct a health recognition model, and to recognize the poultry optical image through the health recognition model to obtain a health abnormality coefficient of the poultry;
[0168] A lighting effect calculation module is used to calculate a lighting effect coefficient according to the poultry data, the abnormal work and rest coefficient, the abnormal behavior coefficient and the abnormal health coefficient;
[0169] The calculation formula of the lighting effect coefficient is:
[0170]
[0171] Among them, Cyca represents the lighting effect coefficient; FCR represents the feed conversion rate of poultry; FT represents the conversion threshold; β1 represents the work and rest weight; Awar represents the work and rest abnormality coefficient; β2 represents the behavior weight; Aact represents the behavior abnormality coefficient; β3 represents the health weight; Heat represents the health abnormality coefficient; θ represents the comprehensive abnormality threshold; exp represents the exponential function with natural constant as the base; Feed represents the feed consumption; Ewe i represents the final weight of poultry i; Swe i represents the initial weight of poultry i; n represents the number of poultry.
[0172] The illumination intensity adjustment module adjusts the illumination intensity according to the illumination effect coefficient and the effect threshold to obtain the adjusted illumination intensity, and uses the adjusted illumination intensity as the initial illumination intensity of the next illumination cycle.
[0173] The present invention obtains a standard parameter set for poultry farming based on historical data of poultry farming; collects poultry data in the farming process to obtain environmental parameters, growth parameters and poultry optical images within a light cycle; identifies abnormal conditions of poultry within a light cycle based on the collected data to obtain abnormal work and rest coefficients, abnormal behavior coefficients and abnormal health coefficients; calculates an illumination effect coefficient for the light cycle based on the growth parameters, abnormal work and rest coefficients, abnormal behavior coefficients and abnormal health coefficients; and adjusts the illumination intensity based on the illumination effect coefficient. The present invention calculates an illumination effect coefficient based on abnormal conditions of poultry within a light cycle and poultry data, thereby achieving accurate control of the illumination intensity.
[0174] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A lighting control method based on optical image recognition, characterized in that: include: S1. Collect historical data of poultry farming and obtain a standard parameter set of poultry farming based on the historical data; The standard parameter set includes a photoperiod and an initial light intensity; S2. During the illumination period, the light is controlled with the initial light intensity, and the poultry data during the illumination period are collected; the poultry data includes environmental parameters, growth parameters and poultry optical images; S3. Dividing the illumination cycle into a plurality of unit cycles, and determining the type of the unit cycle according to the behavior recognition of the poultry optical image within the unit cycle; Obtaining a feeding vector and a resting vector according to the type of the unit cycle; calculating a work and rest abnormality coefficient of the poultry according to the feeding vector and the resting vector; S4. constructing a behavior recognition model, identifying the poultry optical image through the behavior recognition model, and obtaining the abnormal behavior coefficient of the poultry; S5. constructing a health recognition model, identifying the poultry optical image through the health recognition model, and obtaining the health abnormality coefficient of the poultry; S6. Calculate the illumination effect coefficient of the illumination cycle according to the poultry data, the abnormal work and rest coefficient, the abnormal behavior coefficient and the abnormal health coefficient; S7. Adjust the illumination intensity according to the illumination effect coefficient and the effect threshold to obtain an adjusted illumination intensity, and use the adjusted illumination intensity as the initial illumination intensity of the next illumination cycle.
2. The lighting control method based on optical image recognition according to claim 1, characterized in that: The environmental parameters include ambient temperature, ambient humidity, air quality and breeding density; the growth parameters include initial weight of poultry, feed consumption, poultry temperature data and final weight of poultry; the poultry optical image is obtained by splitting the poultry optical video obtained by the shooting device frame by frame.
3. The lighting control method based on optical image recognition according to claim 1, characterized in that: The process of obtaining the abnormal work and rest coefficient is as follows: Dividing the illumination cycle according to a time threshold to obtain a plurality of unit cycles; obtaining optical images of poultry within the unit cycle, and determining the number of optical images of poultry eating and the number of optical images of poultry resting by image recognition; Classifying unit cycles according to the number of optical images of eating and resting, including eating unit cycles, resting unit cycles and other types; Obtaining an eating vector according to an eating unit cycle, and calculating an eating similarity coefficient according to a distance between the eating vector and the standard eating vector; Obtaining a rest vector according to the rest unit cycle, and calculating a rest similarity coefficient according to the distance between the rest vector and the standard rest vector; Calculate the work and rest standard coefficient according to the eating similarity coefficient and the resting similarity coefficient; Obtaining the standard work and rest coefficients of all poultry and taking the average value to obtain the poultry work and rest coefficient; calculating the abnormal work and rest coefficient according to the poultry work and rest coefficient; The calculation formula of the abnormal work and rest coefficient is: Awar = 1-Prest; sim i =α1*eatf i +α2*restf i ; Among them, Awar represents the coefficient of abnormal work and rest; Prest represents the poultry work and rest coefficient; sim i represents the standard coefficient of the work and rest schedule of poultry i; eatf i represents the similarity coefficient of feeding of poultry i; restf i represents the rest similarity coefficient of poultry i; α1 represents the feeding weight; α2 represents the rest weight; n represents the number of poultry.
4. The lighting control method based on optical image recognition according to claim 1, characterized in that: The process of obtaining the abnormal behavior coefficient is as follows: Constructing a behavior recognition model, inputting the poultry optical video into the behavior recognition model, and outputting a behavior abnormality coefficient; The behavior recognition model includes a video input layer, a video preprocessing layer, a feature extraction layer, a behavior recognition layer and a recognition result output layer; The video input layer is used to input the poultry optical video into the model for training; The video preprocessing layer is used to preprocess the poultry optical video to obtain a preprocessed poultry video; The feature extraction layer extracts features from the pre-processed poultry video to obtain poultry behavior features; The behavior recognition layer is used to recognize the behavior characteristics of the poultry and obtain the abnormal behavior probability that the poultry behavior characteristics are abnormal; The recognition result output layer calculates the behavior abnormality coefficient based on the weighted probability of the abnormal behavior and outputs it.
5. The lighting control method based on optical image recognition according to claim 1, characterized in that: The process of obtaining the health abnormality coefficient is as follows: Acquire an optical image of the same poultry individual, input the poultry individual image and corresponding temperature data into a poultry health recognition model for recognition, and obtain a health abnormality coefficient; The poultry health recognition model is obtained by training and optimizing the convolutional neural network model; It includes a data input layer, an optical image preprocessing layer, an optical image segmentation layer, an eye anomaly recognition layer, a feather anomaly recognition layer, a temperature anomaly recognition layer and an abnormal result output layer; The data input layer is used to input the poultry individual images and corresponding temperature data into the model; The optical image preprocessing layer is used to preprocess the individual poultry images to obtain preprocessed individual poultry images; The optical image segmentation layer is used to segment the pre-processed poultry individual image to obtain a poultry eye image and a poultry feather image; The eye abnormality recognition layer is used to recognize poultry eye images and obtain eye abnormality coefficients; The feather anomaly recognition layer is used to recognize poultry feather images and obtain feather anomaly coefficients; The temperature anomaly identification layer is used to identify the temperature data and obtain the temperature anomaly coefficient; The abnormal result output layer is used to calculate the health abnormality coefficient according to the eye abnormality coefficient, the feather abnormality coefficient and the temperature abnormality coefficient, and output it.
6. The lighting control method based on optical image recognition according to claim 1, characterized in that: The calculation formula of the lighting effect coefficient is: Among them, Cyca represents the lighting effect coefficient; FCR represents the feed conversion rate of poultry; FT represents the conversion threshold; β1 represents the work and rest weight; Awar represents the work and rest abnormality coefficient; β2 represents the behavior weight; Aact represents the behavior abnormality coefficient; β3 represents the health weight; Heat represents the health abnormality coefficient; θ represents the comprehensive abnormality threshold; exp represents the exponential function with natural constant as the base; Feed represents the feed consumption; Ewe i represents the final weight of poultry i; Swe i represents the initial weight of poultry i; n represents the number of poultry.
7. A lighting control system based on optical image recognition, characterized in that: A data acquisition module collects historical data of poultry farming and obtains a standard parameter set for poultry farming based on the historical data; the standard parameter set includes a photoperiod and an initial light intensity; A data monitoring module controls the light with an initial light intensity during the light cycle, and collects poultry data during the light cycle to obtain environmental parameters, growth parameters and poultry optical images; The first abnormality recognition module divides the illumination period into a plurality of unit periods, and determines the type of the unit period based on the behavior recognition of the poultry optical image within the unit period; Obtaining a feeding vector and a resting vector according to the type of the unit cycle; calculating a work and rest abnormality coefficient of the poultry according to the feeding vector and the resting vector; A second abnormality recognition module is used to construct a behavior recognition model, and to recognize the poultry optical image through the behavior recognition model to obtain a behavior abnormality coefficient of the poultry; A third abnormality recognition module is used to construct a health recognition model, and to recognize the poultry optical image through the health recognition model to obtain a health abnormality coefficient of the poultry; A lighting effect calculation module is used to calculate a lighting effect coefficient according to the poultry data, the abnormal work and rest coefficient, the abnormal behavior coefficient and the abnormal health coefficient; The illumination intensity adjustment module adjusts the illumination intensity according to the illumination effect coefficient and the effect threshold to obtain the adjusted illumination intensity, and uses the adjusted illumination intensity as the initial illumination intensity of the next illumination cycle.
8. The lighting control system based on optical image recognition according to claim 7, characterized in that: The environmental parameters include ambient temperature, ambient humidity, air quality and breeding density; the growth parameters include initial weight of poultry, feed consumption, poultry temperature data and final weight of poultry; the poultry optical image is obtained by splitting the poultry optical video obtained by the shooting device frame by frame.
9. The lighting control system based on optical image recognition according to claim 7, characterized in that: The calculation formula of the abnormal work and rest coefficient is: Awar = 1-Prest; sim i =α1*eatf i +α2*restf i ; Among them, Awar represents the abnormal work and rest coefficient; Prest represents the poultry work and rest coefficient; sim i represents the standard coefficient of the work and rest schedule of poultry i; eatf i represents the similarity coefficient of feeding of poultry i; restf i represents the rest similarity coefficient of poultry i; α1 represents the feeding weight; α2 represents the rest weight; n represents the number of poultry.
10. The lighting control system based on optical image recognition according to claim 7, characterized in that: The calculation formula of the lighting effect coefficient is: Among them, Cyca represents the lighting effect coefficient; FCR represents the feed conversion rate of poultry; FT represents the conversion threshold; β1 represents the work and rest weight; Awar represents the work and rest abnormality coefficient; β2 represents the behavior weight; Aact represents the behavior abnormality coefficient; β3 represents the health weight; Heat represents the health abnormality coefficient; θ represents the comprehensive abnormality threshold; exp represents the exponential function with natural constant as the base; Feed represents the feed consumption; Ewe i represents the final weight of poultry i; Swe i represents the initial weight of poultry i; n represents the number of poultry.
Citation Information
Patent Citations
Method for breeding poultry by virtue of LED (Light-Emitting Diode) light sources
CN104676373A
Light smart control system for unsupervised farm
CN108235544A
Light control method used for indoor ecological breeding of fish and light device
CN109874741A
Cited By
Fixed-wavelength LED light intelligent control method and system suitable for poultry breeding
CN121057064A
