Intelligent Environment Regulation System for Pig Farms in Buildings Based on Edge-Cloud Collaboration
Through the intelligent environmental regulation system of building pig farms coordinated by Bianyun, the lighting sensor and controller are used to automatically adjust the lighting equipment, combined with temperature and humidity sensors and related equipment, the time-consuming and labor-intensive adjustment of the lighting environment in the existing technology is solved, and the production performance and healthy growth of live pigs are improved.
Patent Information
- Application Number
- CN202210550457.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-18
- Publication Date
- 2025-08-05
- Estimated Expiration
- 2042-05-18
AI Technical Summary
The lighting environment regulation method of existing building pig farms is not intelligent and time-consuming, which leads to the impact of the average daily feed intake, average daily weight gain, exercise volume and feed conversion rate of live pigs, which is not conducive to the healthy and rapid growth of live pigs.
The intelligent environmental adjustment system of the building pig farm based on edge cloud collaboration is adopted, and the current light value is measured through the light sensor, and the controller is used to automatically adjust the output light of the lighting equipment to ensure that the light value in the pig farm meets the requirements. It is combined with temperature, humidity sensors, air conditioners, humidification and dehumidifiers and other equipment to achieve automatic control of temperature and humidity.
Intelligent and automatic lighting and environmental parameter adjustments have been achieved, the average daily feed intake, average daily weight gain and feed conversion rate of live pigs have been improved, the healthy and rapid growth of live pigs has been promoted, and manpower and material resources have been reduced and energy consumption has been reduced.
Smart Images

Figure CN114924603B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of automatic control technology, and in particular relates to an intelligent adjustment system for the environment of a building pig farm based on edge-cloud collaboration. Background Art
[0002] Light environment parameters such as lighting time, light intensity, and lighting system are one of the important environmental factors affecting pig production, directly or indirectly affecting pig production performance. Pigs will not eat in the dark, and extending the light cycle can affect the pigs' average daily feed intake, average daily weight gain, and feed conversion rate. In pig farms with buildings, the current method of adjusting the light environment mainly relies on farmers to manually adjust the lighting equipment to adjust the light environment in the pig farm. However, this is time-consuming and labor-intensive, and it is difficult to achieve stability of the relevant parameters of the light environment. As a result, the average daily feed intake, average daily weight gain, exercise volume, and feed conversion rate of the pigs are affected, which is not conducive to the healthy and rapid growth of the pigs. Summary of the Invention
[0003] In view of this, an embodiment of the present invention provides an intelligent environmental adjustment system for building pig farms based on edge-cloud collaboration, which is used to solve the problem that the existing pig farm lighting environment adjustment method is not intelligent, time-consuming and labor-intensive, and easily affects the average daily feed intake, average daily weight gain, exercise volume and feed conversion rate of live pigs. The present invention can automatically control and adjust the output light of the lighting equipment according to the current light value in the pig farm so that the light value in the pig farm meets the requirements, thereby effectively improving the average daily feed intake, average daily weight gain, exercise volume and feed conversion rate of live pigs, and contributing to the healthy and rapid growth of live pigs.
[0004] The embodiment of the present invention provides an intelligent environmental regulation system for building pig farms based on edge-cloud collaboration, including:
[0005] Lighting equipment, used to provide lighting inside the pig farm;
[0006] At least one light sensor is provided at a designated location in the pig farm, and is used to sense and measure the current light value in the pig farm;
[0007] A controller is connected to the output end of the light sensor and also to the control end of the lighting device. The controller is used to determine whether the current light value in the pig farm is within a preset light range, and when the current light value in the pig farm is not within the preset light range, control and adjust the output light of the lighting device so that the light value in the pig farm meets the requirements.
[0008] In an optional embodiment, the intelligent environmental regulation system for building pig farms based on edge-cloud collaboration further includes:
[0009] air conditioner;
[0010] At least one temperature sensor is provided in the pig farm and is used to measure the current temperature in the pig farm in real time;
[0011] The controller is also connected to the output end of the temperature sensor, and is also used to determine whether the current temperature in the pig farm is within a preset temperature range, and when the current temperature in the pig farm is not within the preset temperature range, control and adjust the air conditioner to make the temperature in the pig farm meet the requirements.
[0012] In an optional embodiment, the intelligent environmental regulation system for building pig farms based on edge-cloud collaboration further includes:
[0013] A humidifier and dehumidifier is installed in the pig farm and is used to humidify or dehumidify the air in the pig farm;
[0014] At least one humidity sensor is provided in the pig farm and is used to measure the current humidity in the pig farm in real time;
[0015] The controller is also connected to the output end of the humidity sensor, and is also used to determine whether the current humidity in the pig farm is within a preset humidity range, and when the current humidity in the pig farm is not within the preset humidity range, control and adjust the humidifier and dehumidifier to humidify or dehumidify the air in the pig farm so that the humidity in the pig farm meets the requirements.
[0016] In an optional embodiment, the intelligent environmental regulation system for building pig farms based on edge-cloud collaboration further includes:
[0017] A track is provided on the roof of the pig farm, and the track is in a spiral shape;
[0018] A mounting seat, wherein the upper surface of the mounting seat has a slider sleeved on the track, and the lighting device is connected to the lower surface of the mounting seat;
[0019] A driving mechanism is connected to the slider and the controller, and is used to drive the slider to slide on the track under the control of the controller to adjust the position of the lighting equipment on the roof inside the pig farm.
[0020] In an optional embodiment, the intelligent environmental regulation system for building pig farms based on edge-cloud collaboration further includes:
[0021] A camera device is installed at the center of the roof inside the pig farm, and is used to capture images of the internal environment of the pig farm;
[0022] The controller is also used to identify the pigs in the image of the internal environment of the pig farm taken by the camera equipment, and determine the optimal illumination position of the lighting equipment on the roof inside the pig farm based on the distribution of the pigs in the image of the internal environment of the pig farm, and control the driving mechanism to drive the slider to move on the track to adjust the position of the lighting equipment to the optimal illumination position.
[0023] In an optional embodiment, the lighting device is connected to the mounting base via a controllable universal joint;
[0024] The controller is further used to determine the optimal tilt angle of the lighting equipment based on the optimal illumination position of the lighting equipment on the roof inside the pig farm and the distribution of pigs in the internal environment image of the pig farm, and to adjust the tilt angle of the lighting equipment at the optimal illumination position to the optimal tilt angle by controlling the rotation of the controllable universal joint.
[0025] In an optional embodiment, the controller is further used to control the lighting equipment to rotate in an inclined spiral manner according to the distribution of pigs in the internal environment image of the pig farm; wherein, the inclined spiral rotation takes the optimal tilt angle of the lighting equipment as the initial angle, and reduces the tilt angle by 0.5° for each rotation until the tilt angle of the lighting equipment is less than 0.5°, and then continues to rotate and increases by 0.5° for each rotation until the tilt angle of the lighting equipment reaches the optimal tilt angle, and then repeats the above rotation process.
[0026] In an optional embodiment, the controller is specifically configured to determine an optimal illumination position of the lighting device on the roof of the pig farm according to a first formula, and to determine an optimal tilt angle of the lighting device according to a second formula, and further specifically to determine a rotation speed of the lighting device during tilted spiral rotation according to a third formula;
[0027] Among them, the first formula is:
[0028]
[0029] Wherein, (I, J) represents the position point on the roof opposite to the environmental position corresponding to the pixel point in the ith row and the jth column in the internal environment image of the pig farm, and this position point is the optimal illumination position of the lighting equipment on the roof inside the pig farm; i represents the ith row in the internal environment image of the pig farm; j represents the jth column in the internal environment image of the pig farm; n represents the number of pixels in each column in the internal environment image of the pig farm; m represents the number of pixels in each row in the internal environment image of the pig farm; D(i) represents the number of pixels in the ith row of the internal environment image of the pig farm that are identified as pigs; D(j) represents the number of pixels in the jth column of the internal environment image of the pig farm that are identified as pigs;
[0030] The second formula is:
[0031]
[0032] Wherein, θ represents the optimal tilt angle of the lighting device; [a(e), b(e)] represents the position of the e-th pixel identified as a pig in the pig farm internal environment image, which is in the a(e)th row and the b(e)th column; K represents the scaling ratio of the pig farm internal environment image to the actual environment; H represents the indoor height of the pig farm; Indicates that the value of e is changed from 1 to Get the maximum value in the brackets;
[0033] The third formula is:
[0034]
[0035] Wherein, ω represents the rotation speed of the lighting device performing the inclined spiral rotation; ω M Indicates the maximum preset rotation speed of the lighting device for tilted spiral rotation.
[0036] The intelligent environmental regulation system for building pig farms based on edge-cloud collaboration provided by the present invention first measures the current light level within the pig farm through a light sensor within the pig farm. Then, if this light level is not within a preset light range, the system automatically controls and adjusts the output light of the lighting equipment to ensure that the light level within the pig farm meets the required level. The present invention can intelligently and automatically adjust the light level within the pig farm, thereby effectively improving the average daily feed intake, average daily weight gain, exercise volume, and feed conversion rate of live pigs, contributing to the healthy and rapid growth of live pigs. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. 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 any creative work.
[0038] Figure 1 Schematic diagram of the structure of the intelligent adjustment system for building pig farm environment based on edge-cloud collaboration provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0039] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0040] It should be understood that the embodiments described are only a portion 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 persons of ordinary skill in the art without creative work are within the scope of protection of the present invention.
[0041] Figure 1 This is a schematic diagram of the structure of the intelligent pig farm environment adjustment system based on edge-cloud collaboration provided by an embodiment of the present invention. Figure 1 , the system comprises:
[0042] Lighting equipment 3, used to provide lighting inside the pig farm;
[0043] At least one light sensor 1, arranged at a designated location in the pig farm, for sensing and measuring the current light value in the pig farm;
[0044] The controller 2 is connected to the output end of the light sensor 1 and is also connected to the control end of the lighting device 3. The controller 2 is used to determine whether the current light value in the pig farm is within the preset light range, and when the current light value in the pig farm is not within the preset light range, control and adjust the output light of the lighting device 3 to make the light value in the pig farm meet the requirements.
[0045] The beneficial effects of the above technical solution are as follows: first, the current light level within the pig farm is sensed and measured by light sensor 1. Then, if this light level is not within a preset light range, the output of lighting device 3 is automatically controlled and adjusted to ensure that the light level within the pig farm meets the required level. This invention can intelligently and automatically adjust the lighting conditions within the pig farm, reducing manpower and material resources, and effectively improving the average daily feed intake, average daily weight gain, exercise volume, and feed conversion rate of pigs, thereby promoting the healthy and rapid growth of pigs.
[0046] As an optional embodiment, the said building pig farm environment intelligent adjustment system based on edge-cloud collaboration further includes: air conditioning;
[0047] At least one temperature sensor is provided in the pig farm and is used to measure the current temperature in the pig farm in real time;
[0048] The controller 2 is also connected to the output end of the temperature sensor. The controller 2 is also used to determine whether the current temperature in the pig farm is within the preset temperature range, and when the current temperature in the pig farm is not within the preset temperature range, control and adjust the air conditioner so that the temperature in the pig farm meets the requirements.
[0049] The beneficial effects of the above technical solution are as follows: temperature is one of the factors affecting the healthy growth of pigs. The optimal growth rate of fattening pigs is around 20°C, while the optimal feed utilization rate is 25°C. The further the ambient temperature is from the optimal temperature for pigs, the greater the impact on production performance. A temperature sensor measures the current temperature in the pig farm in real time. If the current temperature is not within the preset temperature range, the air conditioning is controlled and adjusted to ensure that the temperature in the pig farm meets the required requirements. This achieves the goal of automatically controlling the temperature in the pig farm, improving production efficiency and promoting the healthy growth of pigs.
[0050] As an optional embodiment, the intelligent environmental adjustment system for building pig farms based on edge-cloud collaboration further includes:
[0051] A humidifier and dehumidifier is installed in the pig farm and is used to humidify or dehumidify the air in the pig farm;
[0052] At least one humidity sensor is provided in the pig farm and is used to measure the current humidity in the pig farm in real time;
[0053] The controller 2 is also connected to the output end of the humidity sensor. The controller 2 is also used to determine whether the current humidity in the pig farm is within the preset humidity range, and when the current humidity in the pig farm is not within the preset humidity range, control and adjust the humidifier and dehumidifier to humidify or dehumidify the air in the pig farm so that the humidity in the pig farm meets the requirements.
[0054] The beneficial effects of the above technical solution are as follows: air humidity has a significant impact on pig growth. Improper air humidity in piggeries can lead to various diseases, seriously affecting pig growth. A humidity sensor measures the current humidity in the pig farm in real time. If the current humidity is not within a preset range, the humidifier / dehumidifier is controlled to humidify or dehumidify the air in the pig farm to ensure that the humidity meets the required level. This achieves the goal of automatically controlling the humidity in the pig farm, improves production efficiency, and promotes the healthy growth of pigs.
[0055] As an optional embodiment, the intelligent environmental adjustment system for building pig farms based on edge-cloud collaboration further includes:
[0056] A track is provided on the roof of the pig farm, and the track is in a spiral shape;
[0057] A mounting seat, the upper surface of which has a slider sleeved on the track, and the lighting device 3 is connected to the lower surface of the mounting seat;
[0058] The driving mechanism is connected to the slider and the controller 2 and is used to drive the slider to slide on the track under the control of the controller 2 to adjust the position of the lighting equipment 3 on the roof inside the pig farm.
[0059] The beneficial effect of the above technical solution is that the position of the light can be adjusted by sliding the lighting device 3 on the preset roof rail, which has the advantages of easy implementation and good dimming effect.
[0060] As an optional embodiment, the intelligent environmental adjustment system for building pig farms based on edge-cloud collaboration further includes:
[0061] A camera device is installed at the center of the roof inside the pig farm, and is used to capture images of the internal environment of the pig farm;
[0062] The controller 2 is also used to identify the pigs in the image of the internal environment of the pig farm taken by the camera equipment, and determine the optimal illumination position of the lighting equipment 3 on the roof inside the pig farm based on the distribution of the pigs in the image of the internal environment of the pig farm, and control the driving mechanism to drive the slider to move on the track to adjust the position of the lighting equipment 3 to the optimal illumination position.
[0063] The above technical solution has the following beneficial effects: Pigs in a pig farm are often in motion, and timely adjustment of the lighting position is necessary to achieve optimal lighting effects. By collecting real-time images of the pig farm's internal environment and using image recognition technology to determine the distribution of pigs, the position of the lighting device 3 is adjusted to the optimal illumination position based on the pig distribution. This optimizes the lighting environment around the pigs, while achieving maximum lighting effects with minimal equipment, effectively reducing the cost of deploying lighting equipment and reducing energy consumption.
[0064] As an optional embodiment, the lighting device is connected to the mounting base via a controllable universal joint;
[0065] The controller 2 is also used to determine the optimal tilt angle of the lighting equipment 3 based on the optimal illumination position of the lighting equipment 3 on the roof inside the pig farm and the distribution of pigs in the internal environment image of the pig farm, and to adjust the tilt angle of the lighting equipment 3 at the optimal illumination position to the optimal tilt angle by controlling the rotation of the controllable universal joint.
[0066] The beneficial effect of the above technical solution is that the optimal tilt angle of the universal joint for tilting the lighting equipment 3 can be obtained according to the optimal illumination position of the lighting equipment 3 on the roof and the distribution of pigs in the building pig farm environment, so as to illuminate the pigs in the environment to the maximum extent and ensure the comprehensiveness of the lighting illumination.
[0067] As an optional embodiment, the controller 2 is further used to control the lighting equipment 3 to rotate in an inclined spiral manner according to the distribution of pigs in the internal environment image of the pig farm; wherein, the inclined spiral rotation takes the optimal inclination angle of the lighting equipment 3 as the initial angle, and reduces the inclination angle by 0.5° for each rotation until the inclination angle of the lighting equipment 3 is less than 0.5°, and then continues to rotate and increases by 0.5° for each rotation until the inclination angle of the lighting equipment 3 reaches the optimal inclination angle, and then repeats the above rotation process.
[0068] The beneficial effect of the above technical solution is that by controlling the lighting device 3 to rotate in an inclined spiral, pigs that are not illuminated due to mutual obstruction can also be illuminated, thereby ensuring that each pig can obtain good lighting.
[0069] As an optional embodiment, the controller 2 is specifically configured to determine the optimal illumination position of the lighting device 3 on the roof inside the pig farm according to the first formula, determine the optimal tilt angle of the lighting device 3 according to the second formula, and further specifically determine the rotation speed of the lighting device 3 performing the tilted spiral rotation according to the third formula;
[0070] Among them, the first formula is:
[0071]
[0072] Wherein, (I, J) represents the position point on the roof opposite to the environmental position corresponding to the pixel point in the ith row and the jth column in the internal environment image of the pig farm, and this position point is the optimal illumination position of the lighting equipment on the roof inside the pig farm; i represents the ith row in the internal environment image of the pig farm; j represents the jth column in the internal environment image of the pig farm; n represents the number of pixels in each column in the internal environment image of the pig farm; m represents the number of pixels in each row in the internal environment image of the pig farm; D(i) represents the number of pixels in the ith row of the internal environment image of the pig farm that are identified as pigs; D(j) represents the number of pixels in the jth column of the internal environment image of the pig farm that are identified as pigs;
[0073] The second formula is:
[0074]
[0075] Wherein, θ represents the optimal tilt angle of the lighting device; [a(e), b(e)] represents the position of the e-th pixel identified as a pig in the pig farm internal environment image, which is in the a(e)th row and the b(e)th column; K represents the scaling ratio of the pig farm internal environment image to the actual environment. For example, if the actual length of the pig farm is 5m and the pig farm length in the pig farm internal environment image is 5cm, then H represents the indoor height of the pig farm; Indicates that the value of e is changed from 1 to Get the maximum value in the brackets;
[0076] The third formula is:
[0077]
[0078] Wherein, ω represents the rotation speed of the lighting device performing the inclined spiral rotation; ω M Indicates the maximum preset rotation speed of the lighting device for tilted spiral rotation.
[0079] The beneficial effects of the above technical solution are as follows: the first formula (1) is used to determine the optimal irradiation position of the lighting device 3 on the roof according to the distribution of pigs in the building pig farm environment, and then the lighting device is moved to the position where the pigs in the room are relatively gathered for irradiation, which can improve the irradiation efficiency and reduce unnecessary energy loss; then the second formula (2) is used to obtain the optimal tilt angle of the universal joint to tilt the lighting device 3 according to the optimal irradiation position of the lighting device 3 on the roof and the distribution of pigs in the building pig farm environment, so as to illuminate the pigs in the environment to the maximum extent and ensure the comprehensiveness of the lighting illumination; finally, the third formula (3) is used to control the rotation speed of the lighting device 3 for tilting according to the distribution of pigs in the building pig farm environment, thereby controlling the irradiation speed according to the dispersion and aggregation of pigs in the pig farm environment, so as to reduce the time when the pigs are not illuminated during the tilt spiral rotation process and improve the system efficiency.
[0080] As can be seen from the contents of the above embodiments, by pre-setting the light sensor / temperature sensor / humidity sensor to collect the current light value / current temperature / current humidity in the pig farm in real time, and when the current light value / current temperature / current humidity is not within the preset humidity range, the lighting equipment / air conditioner / humidifier / dehumidifier is controlled to output light / temperature adjustment / humidification or dehumidification to the pig farm, so that the environmental parameters in the pig farm meet the requirements. Furthermore, according to the distribution of pigs in the building pig farm environment, the optimal illumination position of the lighting equipment on the roof, the optimal tilt angle and the rotation speed of the tilt rotation can be gradually determined, and then the lighting equipment can be controlled to operate according to these determined values, so that the pigs in the building pig farm environment can be fully illuminated by the light. The present invention automatically realizes precise monitoring, provides a good environment for the growth of pigs, effectively saves labor costs, reduces energy consumption, and improves production efficiency.
[0081] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0082] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0083] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0084] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these changes and variations. The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or replacements that can be easily thought of by those skilled in the art within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. The intelligent environmental regulation system for building pig farms based on edge-cloud collaboration is characterized by: include: Lighting equipment, used to provide lighting inside the pig farm; At least one light sensor is provided at a designated location in the pig farm, and is used to sense and measure the current light value in the pig farm; a controller connected to the output end of the light sensor and also connected to the control end of the lighting device, the controller being configured to determine whether a current light value in the pig farm is within a preset light range, and, if the current light value in the pig farm is not within the preset light range, to control and adjust the output light of the lighting device so that the light value in the pig farm meets the requirement; The system also includes: A track is provided on the roof of the pig farm, and the track is in a spiral shape; A mounting seat, wherein the upper surface of the mounting seat has a slider sleeved on the track, and the lighting device is connected to the lower surface of the mounting seat; a driving mechanism connected to the slider and the controller, and configured to drive the slider to slide on the track under the control of the controller, so as to adjust the position of the lighting device on the roof inside the pig farm; The system also includes: A camera device is installed at the center of the roof inside the pig farm, and is used to capture images of the internal environment of the pig farm; The controller is further configured to identify the pigs in the image of the internal environment of the pig farm captured by the camera device, determine the optimal illumination position of the lighting device on the roof of the pig farm based on the distribution of the pigs in the image of the internal environment of the pig farm, and control the driving mechanism to drive the slider to move on the track to adjust the position of the lighting device to the optimal illumination position; Wherein, the lighting device is connected to the mounting base via a controllable universal joint; The controller is further configured to determine an optimal tilt angle of the lighting device based on an optimal illumination position of the lighting device on the roof of the pig farm and the distribution of pigs in the image of the internal environment of the pig farm, and to adjust the tilt angle of the lighting device at the optimal illumination position to the optimal tilt angle by controlling the rotation of the controllable universal joint; The controller is further configured to control the lighting device to rotate in an inclined spiral manner based on the distribution of pigs in the image of the internal environment of the pig farm; wherein the inclined spiral rotation is configured to use the optimal tilt angle of the lighting device as an initial angle, reduce the tilt angle by 0.5° per rotation until the tilt angle of the lighting device is less than 0.5°, and then continue to rotate and increase the tilt angle by 0.5° per rotation until the tilt angle of the lighting device reaches the optimal tilt angle, and repeat the above rotation process; The controller is specifically configured to determine the optimal illumination position of the lighting device on the roof of the pig farm according to a first formula, determine the optimal tilt angle of the lighting device according to a second formula, and determine the rotation speed of the lighting device during the tilted spiral rotation according to a third formula. Among them, the first formula is: Wherein, (I, J) represents the position point on the roof opposite to the environmental position corresponding to the pixel point in the ith row and the jth column in the internal environment image of the pig farm, and this position point is the optimal illumination position of the lighting equipment on the roof inside the pig farm; i represents the ith row in the internal environment image of the pig farm; j represents the jth column in the internal environment image of the pig farm; n represents the number of pixels in each column in the internal environment image of the pig farm; m represents the number of pixels in each row in the internal environment image of the pig farm; D(i) represents the number of pixels in the ith row of the internal environment image of the pig farm that are identified as pigs; D(j) represents the number of pixels in the jth column of the internal environment image of the pig farm that are identified as pigs; The second formula is: Wherein, θ represents the optimal tilt angle of the lighting device; [a(e), b(e)] represents the position of the e-th pixel identified as a pig in the pig farm internal environment image, which is in the a(e)th row and the b(e)th column; K represents the scaling ratio of the pig farm internal environment image to the actual environment; H represents the indoor height of the pig farm; Indicates that the value of e is changed from 1 to Get the maximum value in the brackets; The third formula is: Wherein, ω represents the rotation speed of the lighting device performing the inclined spiral rotation; ω M Indicates the maximum preset rotation speed of the lighting device for tilted spiral rotation.
2. The intelligent adjustment system for pig farming environment in buildings based on edge-cloud collaboration according to claim 1 is characterized in that: The system also includes: air conditioner; At least one temperature sensor is provided in the pig farm and is used to measure the current temperature in the pig farm in real time; The controller is also connected to the output end of the temperature sensor, and is also used to determine whether the current temperature in the pig farm is within a preset temperature range, and when the current temperature in the pig farm is not within the preset temperature range, control and adjust the air conditioner to make the temperature in the pig farm meet the requirements.
3. The intelligent environmental regulation system for building pig farms based on edge-cloud collaboration as claimed in claim 1 is characterized in that: The system also includes: A humidifier and dehumidifier is installed in the pig farm and is used to humidify or dehumidify the air in the pig farm; At least one humidity sensor is provided in the pig farm and is used to measure the current humidity in the pig farm in real time; The controller is also connected to the output end of the humidity sensor, and is also used to determine whether the current humidity in the pig farm is within a preset humidity range, and when the current humidity in the pig farm is not within the preset humidity range, control and adjust the humidifier and dehumidifier to humidify or dehumidify the air in the pig farm so that the humidity in the pig farm meets the requirements.
Citation Information
Patent Citations
Light source brightness and position adjusting method and device
CN109634027A
Pig farm environmental monitoring device based on zigbee technique
CN208766546U
Adjustable spectrum plant lighting device
CN213153037U