Pig farm breeding system based on digital twinning

By designing a pig farm breeding system based on digital twins, combining blockchain and smart devices, efficient management and real-time monitoring of pig farms are achieved, management problems in the existing technology are solved, and pig farming efficiency and output quality are improved. Reduced resource waste and environmental pollution.

CN119205400APending Publication Date: 2024-12-27COLLEGE OF SCI & TECH NINGBO UNIV +2
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411217582.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-02
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

How to use digital twin technology to comprehensively improve the management level of pig farms, improve pig farming efficiency and output quality, and reduce resource waste and environmental pollution.

Method used

A pig farm breeding system based on digital twins is designed, using front-end separation method, combined with a three-dimensional engine platform to generate WebGL, and realize user management, pig management, equipment management, video surveillance, alarm and information large screen modules, through connection Enter blockchain traceability system and smart devices to realize data analysis and real-time monitoring.

Benefits of technology

It improves pig farming efficiency and output quality, realizes efficient management of pig farms, accesses real-time real-time real-time scenarios, reduces resource waste and environmental pollution, and improves the transparency and credibility of pork.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119205400A_ABST
    Figure CN119205400A_ABST
Patent Text Reader

Abstract

The invention discloses a pig farm breeding system based on digital twinning, the system is realized by adopting a front and rear end separation mode and combining Unity to generate WebGL, and the system specifically comprises a user management module, a pig management module, an equipment management module, a video monitoring module, an alarm module, an information large screen module and a pig farm twinning module. The system adopts a front-end and rear-end separated framework, the rear end and the front end can be independently deployed, and maintenance and upgrading can be more flexibly carried out. Based on the digital twinning technology, the management level of the pig farm can be comprehensively improved, and the pig raising industry can be more efficient and sustainable in development.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of digital twins, and in particular to a pig farm breeding system based on digital twins. Background Art

[0003] Digital twin technology can present scenes in the actual physical world through digital means, and realize various applications by simulating changes in real scenes. In the field of pig farming, the application of digital twin technology can digitize elements such as pig houses, pigs, and equipment, and optimize management through intelligent algorithms, making pig farming operations more efficient, reducing resource waste, reducing environmental pollution, and improving product quality and safety. How to use digital twin technology to comprehensively improve the management level of pig farms is a technical problem that the pig farming industry needs to solve. Summary of the invention

[0004] In order to solve the above problems, the present invention proposes a pig farm breeding system based on digital twins, which can comprehensively improve the management level of pig farms and make the pig farming industry more efficient.

[0005] In order to achieve the above object, the present invention is implemented by the following technical solutions:

[0006] The present invention is a pig farm breeding system based on digital twins. The system is realized by adopting a front-end and back-end separation method and combining a three-dimensional engine platform to generate WebGL, which specifically includes:

[0007] The user management module is used to manage user rights, log in and manage personal information. The pig management module is used to monitor and diagnose the health status of pigs by recording and analyzing pig data, connecting to the livestock industry big data platform through an interface to perform data analysis and access the blockchain traceability system. The pig data includes basic information, growth status records, and production and breeding records of pigs.

[0008] The equipment management module is used to monitor and manage the equipment in real time by combining various environmental data and feeding data collected in the pig farm, including monitoring the equipment operation status and fault warning. The feeding data is obtained by the smart feeder and smart sink;

[0009] Video monitoring module, used to obtain real-time monitoring images in the pig farm and conduct remote monitoring;

[0010] The alarm module is used to count the alarm information and the number of unprocessed abnormal events issued by the equipment in the pig farm, and display the statistical information of the current time period, including the number of alarms, alarm sources, and alarm levels. The alarm information is sorted in chronological order and displayed in a list form;

[0011] The information large screen module is used for users to operate and display information;

[0012] The pig farm twin module is used to establish a model that reflects the real situation of the actual pig farm. It has the functions of statistical analysis and early warning of the pig farm data, and carries out macro-control of the pig farm, including controlling the start-up and shutdown of the pig farm equipment.

[0013] A further improvement of the present invention is that the basic information of the pigs recorded by the pig management module includes the pig number, breed, age, location, status, and gender, and the pig management module supports viewing the detailed information of the pigs and updating of their status.

[0014] A further improvement of the present invention is that the blockchain traceability system uses distributed ledger technology to store the entire process information of pig growth, allowing consumers to view the production process and source of pork.

[0015] A further improvement of the present invention is that the feeding time of the intelligent feeder, as well as the variety and proportion of the feed to be fed, can be set through the equipment management module according to actual needs. The variety and proportion of the feed to be fed can be customized, thereby realizing personalized customization of pork.

[0016] A further improvement of the present invention is that the system also includes a database, in which an entity-relationship diagram integrating multiple related external data tables is established, and the multiple related external data tables include a pig information table, a breed information table, a status information table, a status category table, a location information table, a pre-delivery record table, a breeding record table, a pregnancy record table, a delivery information table, a newborn pig table, a foster care information table, a logistics record table, a weaning record table, a culling record table, an estrus record table, a personnel information table, and a personnel category table.

[0017] A further improvement of the present invention is that the operations performed by the device management module include:

[0018] Add products and define product physical models, where the product is a collection of devices with the same functions and similar characteristics, and the physical model is the specifications and standards defined for the product, which is used to describe the data communication method, protocol and data transmission format between the device and the system, and realize data interaction between the device and the system;

[0019] After adding the product, add specific devices, where the networked devices are automatically connected and the location information of the devices is recorded; view and manage the data and status of the connected devices, and operate the devices, including control operations, configuration operations, and setting corresponding alarm rules and notification methods.

[0020] A further improvement of the present invention is that the video monitoring module includes an overview unit and a monitoring unit, the overview unit defines up to 9 different monitoring screens, in the monitoring unit, the real-time monitoring screen of a specific point is entered through a specific pig house in the monitoring list, and the video monitoring module supports viewing and playing historical records.

[0021] A further improvement of the present invention is that the alarm information includes equipment anomalies and environmental anomalies. The equipment anomalies include failures of the equipment itself and network connection failures. The environmental anomalies include abnormalities in temperature, humidity and air quality in the pig farm monitored by the equipment.

[0022] The further improvement of the present invention is that: the front-end page of the system uses WebGL technology, the three-dimensional engine platform uses Unity, Unity is embedded in Vue, when Vue sends a message to Unity, Vue uses contentWindow.postMessage to send an object to iframe, and the index.html of the iframe establishes a monitor to monitor the object event sent by Vue. After the event is monitored, the object returned after the creation of Unity is called, and a message is sent using SendMessage, and the message specifies the GameObject, corresponding function and data in Unity, so that Vue sends a message to Unity;

[0023] When Unity sends a message to Vue, in Unity's C# script, reference usingSystem.Runtime.InteropServices, define a receiving function, determine the loading library [DllImport("__Internal")], and call the function when sending a message;

[0024] Create a xxx.jslib file, put it in the Assest / Plungs folder, and define the function in the C# script and the function name received in Vue;

[0025] Establish a listener in index.html in the WebGL generated by Unity, use window.parent.postMessage to send data to Vue, and use window.addEventListener to listen in Vue to receive the data sent by index.html, so that Unity can send messages to Vue.

[0026] A further improvement of the present invention is to establish a model reflecting the real situation of a real pig farm, and the specific operations include:

[0027] Create model: Use 3D modeling tools to build a pig farm model, including the exterior of the pig farm, the interior of the warehouse, fans, and feeding systems;

[0028] Import model: import the established pig farm model into Unity;

[0029] Positioning model: Positioning the imported pig farm model;

[0030] Edit model: edit the imported pig farm model according to actual needs, including adding God's perspective, first-person perspective and bubble label functions;

[0031] Configuration model: Configure the pig farm model according to the actual situation, including the area and number of pig houses, and the capacity of smart feeders and smart sinks;

[0032] Adjust the model: Operate the pig farm model according to display needs, including scaling, rotating, and mirroring.

[0033] The beneficial effects of the present invention are as follows: the present invention uses technologies such as Vue and Unity to realize digital pig farming management, realize functions such as pig management, video monitoring, equipment management, and information large screen, and improve pig farming efficiency and output quality. The system of the present invention integrates background management, which is convenient for pig farm managers to efficiently manage the system and connect to real pig farms in real time. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 It is a management flow chart of the pig farm breeding system of the present invention;

[0035] Figure 2 is a pig management flow chart in an embodiment of the present invention;

[0036] Figure 3 is the detailed information of the pigs in the embodiment of the present invention;

[0037] Figure 4 is a flow chart of device management in an embodiment of the present invention;

[0038] Figure 5 This is a flow chart of information large screen management in an embodiment of the present invention;

[0039] Figure 6 is an entity-relationship diagram in an embodiment of the present invention;

[0040] Figure 7 is a schematic diagram of a front-end page in an embodiment of the present invention;

[0041] Figure 8 is a schematic diagram of a model of an exterior view of a pig farm in an embodiment of the present invention;

[0042] Fig. 9It is a schematic diagram of a partial interior view of a pig farm in an embodiment of the present invention. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0044] like Figure 1 As shown, this embodiment proposes a digital twin-based pig farm breeding system for the management and operation problems existing in traditional pig farms. The system is achieved by using the front-end and back-end separation method of SpringBoot+Vue, combined with Unity to generate WebGL, where Unity is a cross-platform game engine that can develop various applications. Vue is a basically complete development tool set, and SpringBoot is an open source development framework. The system of this embodiment is developed based on SpringBoot and vue, and can be run on various operating systems, server environments and browsers, with good portability. With a front-end and back-end separation architecture, the back-end and front-end can be deployed independently, and maintenance and upgrades can be performed more flexibly. The system specifically includes: user management module, pig management module, equipment management module, video monitoring module, alarm module, information large screen module and pig farm twin module.

[0045] The user management module is used to manage user rights, log in, and manage personal information. Login: registered users can log in to the system by entering their username and password on the login page; Personal information management: users can view their personal information, and can modify, delete, and add new personal information;

[0046] Permission management: System administrators can manage user permissions, including adding, modifying, and deleting users, as well as assigning different roles and permissions.

[0047] The pig management module is used to monitor and diagnose the health status of pigs by recording and analyzing pig data. It connects to the livestock industry big data platform through an interface to realize data analysis and access the blockchain traceability system. The pig data includes basic information of pigs, growth status records, and production and breeding records. Users can maintain and query various basic information of pigs, identify and breed pigs, and monitor information such as health status during delivery. The breeder can record the basic information of pigs through the pig information page in the pig management module, including the pig number, breed, age, location, status, and gender. By recording this information, the breeder can better understand the situation of each pig, so as to carry out feeding management and disease prevention and control in a targeted manner. At the same time, by monitoring the piglets after mating, the breeds of piglets can be screened. For example, by adding X-ray equipment in combination with the equipment management module, piglets with more ribs can be screened out. Figure 3 As shown in the figure, the pig management module supports viewing the detailed information of the pigs and the update of their status, and supports marking the status of the pigs. By recording the status changes of the pigs, the health status and feeding management effect of the pigs can be better evaluated. It can also be used to monitor the prevalence of diseases and take corresponding epidemic prevention measures in time. The status of the pigs includes health, death, estrus, and various diseases. Figure 2 described.

[0048] The pig management module connected to the livestock industry big data platform through an interface can not only record pig data, but also access the blockchain traceability system to store the entire process of piglet growth. Consumers can understand the production process and source of pork, ensure the quality and safety of pork, and thus improve the transparency and credibility of pork. The blockchain traceability system uses Hyperledger Fabric technology and distributed ledger technology to ensure decentralized storage and sharing of data. Each node stores a complete copy of the ledger, and all transactions must be verified by the consensus mechanism before they can be written into the ledger, ensuring the immutability and security of the transaction.

[0049] When recording pig data, only basic information is included, and multiple external data tables need to be associated through foreign keys, such as the pig status table and the pig location table. In addition, the pig status table also needs to be associated with the pig status category table through foreign keys, which makes it very cumbersome to record and integrate data. In order to facilitate the front-end to obtain the integrated data, this embodiment creates a new entity-relationship diagram in the database, such as Figure 6 As shown, the external data tables include pig information table, breed information table, status information table, status category table, location information table, pre-delivery record table, breeding record table, pregnancy record table, delivery information table, newborn pig table, foster care information table, logistics record table, weaning record table, culling record table, estrus record table, personnel information table, and personnel category table.

[0050] Pig information table (pig_info)

[0051]

[0052]

[0053] Variety information table (pig_type)

[0054]

[0055] Status information table (pig_state)

[0056]

[0057] Status category table (pig_state_type)

[0058]

[0059] Position information table (pig_position)

[0060]

[0061] Pre-production record table (pig_preprod)

[0062]

[0063] Breeding record table (pig_breed)

[0064]

[0065] Pregnancy record form (pig_gestation)

[0066]

[0067] Birth information table (pig_childbirth)

[0068]

[0069] Newborn Pigs Table (pig_childs)

[0070]

[0071] Foster Care Information Form (pig_foster)

[0072]

[0073] Logistics record table (pig_logistics)

[0074]

[0075] Weaning record form (pig_wean)

[0076]

[0077] Elimination record table (pig_eliminate)

[0078]

[0079] Oestrus Record Sheet (pig_oestrus)

[0080]

[0081] Staff information table (staff_info)

[0082]

[0083] Staff category table (staff_type)

[0084]

[0085] The equipment management module is used to monitor and manage the equipment in real time by combining various environmental data and feeding data collected in the pig farm, including monitoring the equipment operation status and fault warning. The feeding data is obtained by the smart feeder and the smart sink. The equipment management module can be used to set the feeding time of the smart feeder, as well as the type and proportion of the feed to be fed. The type of feed can be customized to achieve personalized customization of pork. For example, by feeding feed containing Chinese medicinal materials, the pork will contain a certain amount of substances in the Chinese medicinal materials after digestion and absorption by the pigs.

[0086] The page corresponding to the equipment management module defines the basic information of the product, including the model of the equipment, the model definition of the equipment, and the communication method of the equipment. The product can be released, and equipment can be added after release. The equipment includes various sensors, smart feeders, smart sinks, and ventilation equipment. The various sensors include temperature and humidity sensors, liquid level sensors, weight measurement sensors, and water quality sensors. The equipment management module can control the smart feeder and smart sink to feed, water, change food (feed), and change water in time. In the equipment management module, you can also add equipment that can detect the health status of pigs, such as X-ray equipment. By using X-ray equipment to detect piglets, using the big data analysis technology of the animal husbandry big data platform combined with the breeding situation and pig status recorded in the pig management module, excellent breeding pig breeds can be screened.

[0087] When a user wants to add (register) a new device, the following operations can be performed: add products, define the physical model of the product, where the product is a collection of devices with the same functions and similar characteristics, and each device belongs to a certain product. The physical model is the specification and standard defined for the product, which is used to describe the data communication method, protocol and data transmission format between the device and the system, and realize the data interaction between the device and the system; after adding the product, add the specific device, in which the networked device is automatically connected, and the location information of the device is recorded. The data and status of the connected device can be viewed and managed through the corresponding page of the device management module. Users can also configure and control the device as needed, as well as set corresponding alarm rules and notification methods, so as to better manage and use the device. For example, for sensing devices such as temperature and humidity sensors, you can view the current air temperature and humidity and other related data in real time, and control and configure the device. The device management module also supports viewing device logs.

[0088] After the device is registered, it will automatically go online in the system and will be continuously monitored. If the device alarms, it will determine whether the alarm information is abnormal in the device or the environment. If the device is abnormal, the repairman will be notified to repair it and the maintenance information will be recorded later. If the environment is abnormal, the administrator will be notified to adjust and control the operation status of the device. The device management flow chart is as follows: Figure 4 shown.

[0089] The video monitoring module is used to obtain real-time monitoring images in the pig farm and conduct remote monitoring. It includes an overview unit and a monitoring unit. The overview unit defines up to 9 different monitoring images. In the monitoring unit, the real-time monitoring image of a specific point can be entered through a specific pig house in the monitoring list. The video monitoring module supports viewing historical videos and playing historical records. The display of real-time monitoring images can help managers understand the situation in the pig house in real time, promptly discover and solve problems such as pig escape and foreign invasion, and ensure the healthy growth of pigs.

[0090] The alarm module is used to count the alarm information and the number of unprocessed abnormal events issued by the equipment in the pig farm, and display the statistical information of the current time period, including the number of alarms, the source of the alarm, and the alarm level. The alarm information is sorted in chronological order and displayed in a list. The alarm information includes equipment abnormalities and environmental abnormalities. Equipment abnormalities include equipment failures and network connection failures. Environmental abnormalities include temperature, humidity, air quality, and liquid level abnormalities monitored by the equipment in the pig farm. The administrator can view the alarm information of the equipment through the corresponding page of the alarm module, and perform corresponding processing and release the warning. The statistical information displayed on the page facilitates the administrator to analyze the data and improve the processing, thereby improving the management level and operational efficiency of the pig farm. The location of the equipment can be queried through the page to help the administrator locate problems and handle abnormal scenarios more accurately.

[0091] The information screen module is used to generate visual charts using Echarts technology for users to operate and display information, including equipment operation status, real-time pig farm environment, various conditions of piglets, production indexes, feeding conditions, etc. By collecting, processing and summarizing this information, it can help managers to have a more comprehensive understanding of the operation of the pig farm, discover and deal with problems in a timely manner, and improve the health and growth of pigs. When an equipment abnormality or environmental abnormality occurs, an alarm will pop up in the information screen module to remind the administrator to deal with it. The alarm can be lifted after the processing is completed. The information screen module management flow chart is as follows: Figure 5 shown.

[0092] The pig farm twin module is used to build a model that reflects the real situation of the actual pig farm. It has the functions of statistical analysis and early warning of the pig farm data, and performs macro-control of the pig farm, including controlling the start and shut down of the pig farm equipment. The specific operations of building a model that reflects the real situation of the actual pig farm include:

[0093] Create a model: Use 3D modeling tools to build a pig farm model, including the pig farm exterior, warehouse interior, fans, and feeding system. Figure 8 As shown, the interior of the warehouse is as follows Fig. 9 As shown;

[0094] Import model: import the established pig farm model into Unity;

[0095] Positioning model: Positioning the imported pig farm model;

[0096] Edit model: edit the imported pig farm model according to actual needs, including adding God's perspective, first-person perspective and bubble label functions;

[0097] Configuration model: Configure the pig farm model according to the actual situation, including the area and number of pig houses, and the capacity of smart feeders and smart sinks;

[0098] Adjust the model: Operate the pig farm model according to display needs, including scaling, rotating, and mirroring.

[0099] This embodiment establishes a feeding system, an environmental control system, and equipment management in the pig farm twin module. The feeding system is one of the indispensable functions in the digital twin pig farm. It can reasonably allocate feed according to different pig breeds, breeding stages, weights, etc., to ensure the healthy growth of pigs and improve breeding efficiency. The environmental control system can provide a stable and comfortable living environment for pigs by monitoring and adjusting environmental factors such as temperature, humidity, and air quality in the pig house. In the digital twin pig farm, the environmental control system monitors and automatically adjusts these environmental factors in real time to make the environment in the pig house meet the needs of pigs and improve breeding efficiency. Equipment management is a necessary function in the digital twin pig farm. It can timely display the location information of abnormal equipment. By monitoring and maintaining the equipment, it ensures that the facilities of the pig farm are operating normally, reducing equipment failure losses and maintenance costs.

[0100] Figure 7 It is a front-end page corresponding to a pig farm twin module of the system of this embodiment. The page corresponding to the pig farm twin module uses WebGL technology to embed Unity in Vue. When Vue sends a message to Unity, Vue uses contentWindow.postMessage to send an object to iframe. The index.html of the iframe establishes a monitor to monitor the object events sent by Vue. After the event is monitored, the object returned after creating Unity is called, and a message is sent using SendMessage. The message specifies the GameObject, corresponding function and data in Unity, so that Vue sends a message to Unity.

[0101] When Unity sends a message to Vue, in Unity's C# script, reference usingSystem.Runtime.InteropServices, define a receiving function, determine the loading library [DllImport("__Internal")], and call the function when sending a message;

[0102] Create a xxx.jslib file, put it in the Assest / Plungs folder, and define the function in the C# script and the function name received in Vue;

[0103] Establish a listener in index.html in the WebGL generated by Unity, use window.parent.postMessage to send data to Vue, and use window.addEventListener to listen in Vue to receive the data sent by index.html, so that Unity can send messages to Vue.

[0104] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in common dictionaries should be understood to have the same meaning as in the context of the prior art, and will not be interpreted with an idealized or overly formal meaning unless defined similarly here.

[0105] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A pig farm breeding system based on digital twins, characterized by: The system is realized by using the front-end and back-end separation method and combining the 3D engine platform to generate WebGL, which specifically includes: User management module, used for user authority management, user login and personal information management; The pig management module is used to monitor and diagnose the health status of pigs by recording and analyzing pig data. It connects to the livestock industry big data platform through an interface to realize data analysis and access the blockchain traceability system. The pig data includes the basic information of the pigs, growth status records, and production and breeding records. The equipment management module is used to monitor and manage the equipment in real time by combining various environmental data and feeding data collected in the pig farm, including monitoring the equipment operation status and fault warning. The feeding data is obtained by the smart feeder and smart sink; Video monitoring module, used to obtain real-time monitoring images in the pig farm and conduct remote monitoring; The alarm module is used to count the alarm information and the number of unprocessed abnormal events issued by the equipment in the pig farm, and display the statistical information of the current time period, including the number of alarms, alarm sources, and alarm levels. The alarm information is sorted in chronological order and displayed in a list form; The information large screen module is used for users to operate and display information; The pig farm twin module is used to establish a model that reflects the real situation of the actual pig farm. It has the functions of statistical analysis and early warning of the pig farm data, and carries out macro-control of the pig farm, including controlling the start-up and shutdown of the pig farm equipment.

2. A pig farm breeding system based on digital twin according to claim 1, characterized in that: The basic information of the pigs recorded in the pig management module includes the pig number, breed, age, location, status, and gender. The pig management module supports viewing the detailed information of the pigs and updating of their status.

3. A pig farm breeding system based on digital twin according to claim 2, characterized in that: The blockchain traceability system uses distributed ledger technology to store information about the entire growth process of pigs, allowing consumers to view the production process and source of pork.

4. The pig farm breeding system based on digital twin according to claim 1, characterized in that: According to actual needs, the feeding time of the intelligent feeder, as well as the variety and proportion of the feed can be set through the equipment management module. The variety and proportion of the feed can be customized, thereby realizing personalized customization of pork.

5. The pig farm breeding system based on digital twin according to claim 1, characterized in that: The system also includes a database, in which an entity-relationship diagram integrating multiple associated external data tables is established, and the multiple associated external data tables include a pig information table, a breed information table, a status information table, a status category table, a location information table, a pre-delivery record table, a breeding record table, a pregnancy record table, a delivery information table, a newborn pig table, a foster care information table, a logistics record table, a weaning record table, a culling record table, an estrus record table, a personnel information table, and a personnel category table.

6. The pig farm breeding system based on digital twin according to claim 1, characterized in that: The operations performed by the device management module include: Add products and define product physical models, where the product is a collection of devices with the same functions and similar characteristics, and the physical model is the specifications and standards defined for the product, which is used to describe the data communication method, protocol and data transmission format between the device and the system, and realize data interaction between the device and the system; After adding the product, add the specific device, where the networked device is automatically connected and the location information of the device is recorded; View and manage the data and status of connected devices, and operate the devices, including control operations, configuration operations, and setting corresponding alarm rules and notification methods.

7. The pig farm breeding system based on digital twin according to claim 1, characterized in that: The video monitoring module includes an overview unit and a monitoring unit. The overview unit defines up to 9 different monitoring screens. In the monitoring unit, the real-time monitoring screen of a specific point can be entered through a specific pig house in the monitoring list. The video monitoring module supports viewing and playing historical records.

8. The pig farm breeding system based on digital twin according to claim 1, characterized in that: The alarm information includes equipment abnormalities and environmental abnormalities. Equipment abnormalities include failures of the equipment itself and network connection failures. Environmental abnormalities include abnormalities in temperature, humidity, and air quality in the pig farm monitored by the equipment.

9. The pig farm breeding system based on digital twin according to claim 1, characterized in that: The front-end page of the system uses WebGL technology, and the three-dimensional engine platform uses Unity. Unity is embedded in Vue. When Vue sends a message to Unity, Vue uses contentWindow.postMessage to send an object to the iframe. The index.html of the iframe establishes a listener to listen to the object event sent by Vue. When the event is listened, the object returned after creating Unity is called, and a message is sent using SendMessage. The message specifies the GameObject, corresponding function and data in Unity, so that Vue can send a message to Unity. When Unity sends a message to Vue, in Unity's C# script, reference usingSystem.Runtime.InteropServices, define a receiving function, determine the loading library [DllImport("__Internal")], and call the function when sending a message; Create a xxx.jslib file, put it in the Assest / Plungs folder, and define the function in the C# script and the function name received in Vue; Establish a listener in index.html in the WebGL generated by Unity, use window.parent.postMessage to send data to Vue, and use window.addEventListener to listen in Vue to receive the data sent by index.html, so that Unity can send messages to Vue.

10. The pig farm breeding system based on digital twin according to claim 1, characterized in that: The specific operations of establishing a model that reflects the real situation of a real pig farm include: Create model: Use 3D modeling tools to build a pig farm model, including the exterior of the pig farm, the interior of the warehouse, fans, and feeding systems; Import model: import the established pig farm model into the 3D engine platform; Positioning model: Positioning the imported pig farm model; Edit model: edit the imported pig farm model according to actual needs, including adding God's perspective, first-person perspective and bubble label functions; Configuration model: Configure the pig farm model according to the actual situation, including the area and number of pig houses, and the capacity of smart feeders and smart sinks; Adjust the model: Operate the pig farm model according to display needs, including scaling, rotating, and mirroring.

Citation Information

Cited By

  • Pig house transfer path planning and mistake-proofing early warning device

    CN120130387A

  • Pig Transfer Pen Path Planning and Anti-Error Warning Device

    CN120130387B