Agricultural product traceability system based on Internet of Things
Through the agricultural product traceability system based on the Internet of Things, sensors and wireless communication technology are used to record the production and transportation data of agricultural products in real time, and combined with cloud platform and blockchain technology, it solves the problem of information islands and data security in the existing technology, and achieves full transparency of agricultural products. ization and traceability, improving food safety and supply chain efficiency.
Patent Information
- Application Number
- CN202410689335.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-20
AI Technical Summary
The existing agricultural product traceability system has information silos, incomplete data, high costs, risks of forgery, poor real-time performance, poor user experience and data security and privacy issues, making it difficult to achieve full-process transparent management and food safety supervision.
An agricultural product traceability system based on the Internet of Things is adopted, including the sensor layer, network layer and platform layer. Data is transmitted through wireless communication technologies such as LoRa modules, NB-IoT modules, Wi-Fi modules, etc., combined with cloud platforms, distributed databases and blocks. Chain technology ensures real-time recording, transparency and non-tamperability of data.
It achieves full transparency and traceability of agricultural products from production to sales, improves product quality and safety, enhances consumer trust, optimizes supply chain efficiency, reduces logistics costs, supports precision agriculture and sustainable agriculture, and ensures data security and regulatory compliance.
Smart Images

Figure CN118678313A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of agricultural product traceability, and in particular to an agricultural product traceability system based on the Internet of Things. Background Art
[0002] The agricultural product traceability system is an information management system that is used to track and record information from all aspects of agricultural product production, processing, storage, transportation and sales. Through the traceability system, consumers and regulators can obtain the complete production history and supply chain information of agricultural products to ensure food safety, quality control and transparency. It is mainly used for tracking the production stage of agricultural products, recording information such as the planting, fertilization, and pesticide use of agricultural products. Processing and storage tracking, recording the processing methods, processing time, storage environment and conditions of agricultural products. Transportation stage tracking, recording the logistics information of agricultural products from the place of production to the place of sale, including transportation vehicles, transportation conditions and time. Sales stage tracking, recording the sales location, sales time and sales volume of agricultural products. Consumer access, consumers can view the full information of agricultural products by scanning codes (such as QR codes) or other methods to ensure that the purchased products are from a reliable source.
[0003] Existing agricultural product traceability systems usually use the following main technologies and methods: barcodes and QR codes, which generate a unique barcode or QR code for each batch or single piece of agricultural product. Consumers can obtain the corresponding information by scanning. The amount of information is limited and it is easy to be forged. If the barcode or QR code is lost or damaged, the information cannot be traced; RFID technology, which attaches RFID tags to agricultural product packaging or containers, and reads and writes traceability information through RFID readers. The cost is high, the scope of application is limited, and the tags may be damaged by environmental influences; central database, which uses a centralized database to store and manage all traceability data. Participants in different production links upload and access data through the Internet. There is a single point failure risk, data security and privacy protection are difficult to guarantee, and the scalability and flexibility are insufficient; blockchain technology, which uses the distributed ledger technology of blockchain to record traceability information on the chain to ensure that the information cannot be tampered with. The technical implementation is complex, the performance and scalability need to be improved, and the data storage and processing costs are high. Among these technologies, the information systems in each link operate independently and lack unified standards and interfaces, which makes it difficult to integrate and share information. The incomplete and inconsistent traceability data hinders the transparent management of the entire process. Information entry mostly relies on manual operations, which poses the risk of human error and fraud. The authenticity, reliability and credibility of traceability information are questioned, making it difficult to achieve actual regulatory effects. Some advanced technologies such as blockchain and RFID are relatively expensive, complex to implement, and limited in promotion and application. They are difficult for small and medium-sized agricultural product companies to afford, and the system penetration rate is low. There are delays in data updates in many systems, making real-time monitoring and dynamic management impossible. When emergencies occur, they cannot be responded to and handled in a timely manner, affecting the effectiveness of food safety management. The existing system displays information simply, has an unfriendly user interface, and the process for consumers to obtain information is cumbersome. It is difficult for consumers to obtain satisfactory information through the traceability system, which reduces the use value of the system. Centralized databases are vulnerable to attacks, with a high risk of data leakage. Sensitive information may be used by criminals, causing commercial losses and a decline in consumer confidence. In summary, the existing agricultural product traceability systems have their own advantages in implementation, but they generally have disadvantages such as information islands, low data credibility, technical and cost limitations, poor real-time performance, poor user experience, and data security and privacy issues. In order to better solve these problems, the present invention proposes an agricultural product traceability system based on the Internet of Things to solve the above-mentioned problems. Summary of the invention
[0004] 1. Technical issues to be resolved
[0005] In view of the shortcomings of the prior art, the present invention provides an agricultural product traceability system based on the Internet of Things, which solves the problems of information islands, incomplete data, high costs and the risk of counterfeiting.
[0006] (II) Technical solution
[0007] To achieve the above objectives, the present invention is implemented through the following technical solutions: an agricultural product traceability system based on the Internet of Things, comprising a sensor layer, the sensor layer is connected to a network layer, the network layer is connected to a platform layer, and the platform layer is connected to an application layer;
[0008] The network layer includes wireless communication and gateway equipment, and the wireless communication includes LoRa module, NB-I oT module and WiFi module.
[0009] Preferably, the sensor layer includes a temperature and humidity sensor, a soil moisture sensor, a light sensor, a GPS module, and a microcontroller.
[0010] Preferably, in the network layer, short-node data transmission is performed through a star topology, and large-range or multi-path transmission is performed through a tree topology or a mesh topology.
[0011] Preferably, the platform layer includes a cloud platform, a database, and data processing and analysis, and the platform uses AWS, Azure or Google Cloud platform.
[0012] Preferably, the application layer includes a front-end and a back-end, the front-end framework and technology stack are selected from one of React, Vue.js, and Angular, and the back-end framework and technology stack are selected from one of Spring Boot, Django, and Node.js, and efficient and stable business logic processing is designed.
[0013] Preferably, the data collected by the sensor layer is transmitted to a distributed database or cloud platform through a gateway device for storage, processing and analysis, wherein preliminary data processing is required through edge computing, and then further analysis is performed using cloud computing and big data analysis.
[0014] Preferably, the network layer uses Zigbee or Bluetooth Low Energy for short-distance data transmission, and uses Wi-Fi or 5G for medium-distance or long-distance data transmission.
[0015] Preferably, the platform layer stores sensor data and log data through a distributed database, stores large-scale unstructured data through the use of a data lake, analyzes structured data using a data warehouse, and performs real-time data backup.
[0016] (III) Beneficial effects
[0017] The present invention provides an agricultural product traceability system based on the Internet of Things. It has the following beneficial effects:
[0018] The present invention provides an agricultural product traceability system based on the Internet of Things. The agricultural product traceability system based on the Internet of Things of the present invention aims to achieve transparency and traceability of the entire chain of agricultural products from production to sales by integrating the Internet of Things technology. The main advantage is that the entire process is transparent. The system records data in real time in various links such as production, transportation, storage and sales of agricultural products through sensors and RFID tags and other equipment. The information includes growth environment, temperature and humidity, fertilization records, transportation routes and sales points, ensuring full data transparency and improving product quality and safety. By monitoring production environment data such as soil and climate, farmers can conduct precision agricultural management, optimize resource utilization, and improve the quality of agricultural products. In case of product safety problems, the system can quickly trace the source and take timely measures to reduce losses and ensure consumer safety and enhance consumer trust. Consumers can obtain information on the production and circulation process of agricultural products by scanning codes or inquiries, enhance their trust in the products, thereby enhancing brand value and market competitiveness, and improving supply chain efficiency. The logistics status is tracked in real time through Internet of Things devices, and the transportation routes and storage conditions are optimized to reduce logistics costs. Cost and loss, all parties in the supply chain (producers, transporters, retailers, etc.) can share information in real time, reduce information asymmetry, improve collaborative efficiency, anti-counterfeiting and anti-counterfeiting, each agricultural product has a unique identification, and blockchain and other technologies are used to ensure that records cannot be tampered with, so as to achieve real anti-counterfeiting and anti-counterfeiting. Smart sensors and data analysis help farmers use water, fertilizers and pesticides reasonably, reduce excessive consumption of natural resources, achieve sustainable agriculture, enhance supervision and compliance, and the system ensures that the production and circulation processes meet national and international standards, such as GAP (Good Agricultural Practice) and HACCP (Hazard Analysis and Critical Control Points), which is convenient for regulatory authorities to monitor and review, data analysis and decision support, the large amount of data accumulated by the system can be deeply analyzed, and provide valuable insights for farm operators, such as market demand forecasts and optimal planting time recommendations, to help them make more scientific decisions. Therefore, the agricultural product traceability system based on the Internet of Things of the present invention not only improves the quality and safety of agricultural products, but also improves supply chain efficiency and consumer trust through real-time transparent data recording and intelligent management, and ultimately promotes a more environmentally friendly and sustainable agricultural model. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is a schematic diagram of the main structure of the system of the present invention;
[0020] Figure 2 It is a schematic diagram of the sensor layer flow of the system of the present invention;
[0021] Figure 3 It is a schematic diagram of the network layer flow of the system of the present invention;
[0022] Figure 4 It is a schematic diagram of the platform layer flow of the system of the present invention;
[0023] Figure 5 The figure is a schematic diagram of the application layer flow of the system of the present invention. DETAILED DESCRIPTION
[0024] 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.
[0025] Example:
[0026] like Figure 1-5 As shown, an embodiment of the present invention provides an agricultural product traceability system based on the Internet of Things, including a sensor layer, the sensor layer is connected to a network layer, the network layer is connected to a platform layer, and the platform layer is connected to an application layer;
[0027] The network layer includes wireless communication and gateway devices. Wireless communication includes LoRa modules, NB-IoT modules and WiFi modules.
[0028] The sensor layer includes temperature and humidity sensors, soil moisture sensors, light sensors, GPS modules, and microcontrollers.
[0029] In the network layer, star topology is used for short-node data transmission, and tree topology or mesh topology is used for large-scale or multi-path transmission.
[0030] The platform layer includes cloud platform, database, and data processing and analysis. The platform uses AWS, Azure, or Google Cloud platform.
[0031] The application layer includes the front-end and back-end. The front-end framework and technology stack should be one of React, Vue.js, and Angular. The back-end framework and technology stack should be one of Spring Boot, Django, and Node.js. Efficient and stable business logic processing should be designed.
[0032] The data collected by the sensor layer is transmitted to a distributed database or cloud platform through a gateway device for storage, processing and analysis. Preliminary data processing is required through edge computing, and then further analysis is performed using cloud computing and big data analysis.
[0033] In the network layer, short-distance data transmission is carried out through Zigbee or Bluetooth Low Energy, and medium-distance or long-distance data transmission is carried out through Wi-Fi or 5G.
[0034] In the platform layer, sensor data and log data are stored through distributed databases, large-scale unstructured data are stored through data lakes, structured data are analyzed using data warehouses, and data are backed up in real time.
[0035] In the agricultural product traceability system based on the Internet of Things, the sensor layer is a key part, responsible for collecting various environmental and process data to ensure the transparency of information in all links from production to sales of agricultural products. The following is a detailed description of the implementation of the sensor layer:
[0036] 1. Determine sensing needs
[0037] Before implementing the sensing layer, it is necessary to clarify the type of data that needs to be collected at different stages, such as:
[0038] Production process: temperature, humidity, soil moisture, light intensity, CO2 concentration, pH value, and nutrient content.
[0039] Transportation links: temperature, humidity, vibration conditions, and geographical location.
[0040] Storage links: temperature, humidity, and gas composition.
[0041] 2. Select and deploy sensors
[0042] According to the sensing requirements, select the corresponding sensors and arrange them reasonably:
[0043] Environmental monitoring sensors: such as temperature sensors, humidity sensors, and light sensors, used to monitor the growth environment of agricultural products.
[0044] Soil sensors: soil moisture sensor, soil pH sensor, nutrient content sensor for precision agriculture management.
[0045] Meteorological sensors: wind speed and direction sensors, rainfall sensors, used to monitor external meteorological conditions.
[0046] Location and movement sensors: GPS modules, RFID tags, etc., used to track location information during transportation and logistics.
[0047] 3. Data collection and transmission
[0048] The deployed sensors collect data in real time and transmit it to the central system for processing through the following methods:
[0049] Wireless transmission: Use wireless sensor networks (such as Zigbee, LoRa, NB-IoT, etc.) to achieve long-distance data transmission.
[0050] Wired transmission: Use wired connections (such as Ethernet, RS-485 interface, etc.) in specific environments to ensure the stability of data transmission.
[0051] 4. Sensor management and maintenance
[0052] One of the important links in realizing the sensing layer is to effectively manage and maintain the sensor equipment to ensure that it works long-term, stably and accurately:
[0053] Regular calibration: Set up a maintenance schedule and calibrate the sensor regularly to ensure data accuracy.
[0054] Energy management: Use low-power sensors or combine with renewable energy such as solar energy to extend the working life of sensors.
[0055] Fault monitoring and alarm: Real-time monitoring of the working status of the sensor, timely alarm and maintenance when abnormalities are found.
[0056] 5. Data processing and storage
[0057] The data collected by the sensors is transmitted to a distributed database or cloud platform through a gateway device for storage, processing and analysis:
[0058] Edge computing: Perform preliminary processing at the data collection point to reduce transmission bandwidth and improve response speed.
[0059] Cloud computing and big data analysis: Upload large amounts of sensor data to the cloud platform for in-depth analysis, extract useful information through machine learning and AI algorithms, and provide decision support for the traceability system.
[0060] 6. Integration with other systems
[0061] The sensing layer needs to be seamlessly integrated with other layers of the traceability system, such as:
[0062] Integration of data and business application layer: Sensor data is integrated with the database, user interface, and report generation of the agricultural product traceability system to provide users with intuitive information display and query functions.
[0063] Integration with blockchain technology: To ensure that data cannot be tampered with, key sensor data is uploaded to the blockchain to achieve data credibility and security.
[0064] Implementation case examples
[0065] Farm Management System
[0066] Temperature and humidity sensors and soil moisture sensors are placed in farmland to collect crop growth environment data.
[0067] Use RFID tags to record agricultural machinery operation information, such as sowing, fertilization, irrigation, etc.
[0068] Transportation Management System
[0069] During the cold chain transportation process, temperature and humidity sensors and GPS modules are used to monitor the transportation environment in real time and record the transportation route.
[0070] Vibration sensors are used to monitor the safety status of goods in transit to ensure that no damage occurs.
[0071] Through the above steps, the sensing layer can not only monitor and record the status of each link of agricultural products in real time to achieve refined management, but also provide data support for decision-making to ensure the efficient operation of the entire system and information transparency.
[0072] In the agricultural product traceability system based on the Internet of Things, the network layer is responsible for transmitting the data collected by the sensors, ensuring that the data can be safely and quickly transmitted to the central system for processing and storage, thereby achieving remote monitoring and management. The following is a detailed description of the network layer implementation:
[0073] 1. Network requirements analysis
[0074] Before implementing the network layer, it is necessary to clarify the transmission requirements, including data volume, transmission distance, and transmission frequency, as follows:
[0075] Data volume: Determine the amount of data generated by each link, such as the number of bytes transmitted per second by the sensor's real-time monitoring data.
[0076] Transmission distance: Analyze the physical distance from the sensor to the gateway device and from the gateway to the central server.
[0077] Transmission frequency: Determines the frequency of data transmission, whether real-time transmission or periodic transmission is required.
[0078] 2. Network architecture design
[0079] Design a reasonable network architecture based on requirements to ensure efficient and secure data transmission:
[0080] Star topology: Suitable for scenarios with shorter transmission distances and fewer nodes. All nodes are directly connected to a central node (such as a gateway).
[0081] Tree topology: Applicable to scenarios with a wide range and many nodes. The hierarchical structure is easy to manage and expand.
[0082] Mesh topology: Suitable for scenarios with high reliability requirements. Nodes are interconnected and have multiple transmission paths.
[0083] 3. Select and deploy transmission technology
[0084] Select appropriate transmission technology according to different scenarios to ensure the stability and efficiency of data transmission:
[0085] Short distance transmission technology
[0086] Zigbee: Suitable for short-distance, low-power data transmission, such as the connection between sensor nodes and gateway nodes in farm fields.
[0087] Bluetooth Low Energy (BLE): Suitable for short-distance, low-bandwidth transmission, commonly used to connect mobile devices and sensors.
[0088] Long distance transmission technology
[0089] LoRa: Suitable for long-distance, low-power transmission, especially suitable for covering vast farmland areas for data transmission.
[0090] NB-IoT: Narrowband IoT technology based on cellular networks, suitable for low-power and wide-coverage scenarios, such as remote monitoring.
[0091] Medium and long distance transmission technology
[0092] Wi-Fi: Suitable for medium- and long-distance, high-bandwidth data transmission, and can be used for local transmission of sensor data within the farm.
[0093] 5G: Suitable for real-time data transmission with high bandwidth and low latency, and suitable for scenarios requiring high real-time performance and large-volume data transmission.
[0094] 4.Data transmission and gateway management
[0095] Multi-level gateway setting: Set up multiple gateways between sensors and central servers to share the transmission load and improve network stability.
[0096] Edge computing gateway: Perform edge computing on the gateway device to initially process data to reduce transmission burden and improve real-time performance.
[0097] Security management: Ensure the security of data transmission and prevent data leakage and tampering through encryption, identity authentication and other technologies.
[0098] 5. Network maintenance and monitoring
[0099] To ensure the long-term stable operation of the network layer, regular maintenance and monitoring are required:
[0100] Real-time monitoring of network status: Real-time monitoring of network operation status through the network management system, and timely handling of abnormalities.
[0101] Regular maintenance and updates: Regularly check and update network equipment, upgrade firmware and software, and keep the system up to date and stable.
[0102] Network redundancy and backup: Design network redundancy mechanisms, such as primary and backup lines, dual network cards, etc., to ensure that the system can still operate normally when certain lines fail.
[0103] 6. Data storage and cloud platform integration
[0104] The data transmitted to the gateway eventually needs to be uploaded to a central data storage platform or cloud platform for storage and processing:
[0105] Cloud platform selection: Choose a reliable cloud platform (such as AWS, Azure, Google Cloud, etc.) to ensure data storage reliability and computing resource elasticity.
[0106] Data synchronization and backup: Set up a data synchronization mechanism to ensure data consistency between local storage and cloud storage, and perform regular backup to prevent data loss.
[0107] Interface and API integration: Integrate with other systems through standard interfaces and APIs to achieve data sharing and interoperability.
[0108] Implementation case examples
[0109] Farmland Monitoring Network
[0110] Zigbee network: Zigbee sensor network is deployed in the farmland, and the sensor nodes transmit data to the central gateway through the Zigbee protocol.
[0111] LoRa Gateway: LoRa Gateway is used to transmit data from sensor nodes to the central management system, which is suitable for covering large areas of farmland.
[0112] Transport Monitoring Network
[0113] NB-IoT and GPS: Deploy devices with NB-IoT and GPS in cold chain transport vehicles to transmit transport environment and location information to the cloud platform in real time.
[0114] 5G vehicle-mounted system: For transportation processes with high requirements for real-time monitoring, 5G networks are used to achieve real-time transmission of high-definition video monitoring and environmental data.
[0115] Through the above steps, the network layer can not only efficiently and stably transmit data in each link to ensure system security and real-time performance, but also support the scalability and flexibility of the system to achieve accurate traceability of agricultural products throughout their life cycle.
[0116] In the agricultural product traceability system based on the Internet of Things, the platform layer is an important layer that connects the front-end sensor data collection and the back-end data analysis and decision-making. It is responsible for data storage, processing, analysis and application support, and is the core of the entire system. The following is a detailed description of the platform layer implementation:
[0117] 1. Platform demand analysis
[0118] Before implementing the platform layer, it is necessary to clarify the functional requirements of the platform, including data storage, processing capabilities, analysis functions, and application requirements:
[0119] Data storage: A large amount of agricultural product traceability information needs to be stored, including sensor data, log data, historical records, etc.
[0120] Data processing: Real-time data processing capabilities are required to support big data computing and analysis.
[0121] Data analysis: A variety of data analysis tools need to be provided, such as statistical analysis, data mining, machine learning, etc.
[0122] Application interface: It needs to support multiple business application interfaces and provide open API for integration with other systems.
[0123] 2. Cloud platform selection and deployment
[0124] Choose the right cloud platform as the infrastructure to ensure flexibility and scalability:
[0125] Cloud Service Provider: Choose a reliable cloud service provider such as AWS, Azure, Google Cloud, Alibaba Cloud, etc.
[0126] Cloud service type: Choose the appropriate cloud service type based on your needs, including IaaS (Infrastructure as a Service), PaaS (Platform as a Service) and SaaS (Software as a Service).
[0127] 3. Data storage architecture design
[0128] A reasonable data storage architecture needs to be designed to ensure the reliability and efficiency of data storage:
[0129] Distributed database: Use distributed databases (such as MySQL, PostgreSQL, Cassandra, etc.) to store sensor data, log data, etc.
[0130] Data lake and data warehouse: Use data lakes (such as AWS S3 and Google Cloud Storage) to store large-scale unstructured data, and use data warehouses (such as Amazon Redshift and Google BigQuery) to analyze structured data.
[0131] Backup and recovery: Design data backup and recovery mechanisms to ensure rapid recovery in the event of data loss.
[0132] 4. Data Processing and Analysis
[0133] Deploy data processing and analysis framework to improve data processing efficiency and analysis capabilities:
[0134] Real-time data stream processing: Use stream processing platforms such as Apache Kafka and AWS Kinesis to achieve real-time data processing and analysis.
[0135] Batch Data Processing: Use platforms such as Apache Hadoop and Apache Spark to perform large-scale batch data processing.
[0136] Machine learning and artificial intelligence: Combined with machine learning platforms (such as TensorFlow, Scikit-learn, Amazon SageMaker), deep analysis and prediction of data.
[0137] 5. Data security and privacy protection
[0138] Ensure data security and privacy protection at the platform level and comply with relevant regulations and standards:
[0139] Data encryption: Encrypt transmitted and stored data to prevent data leakage and tampering.
[0140] Access control: Set strict access control policies to ensure that only authorized users can access sensitive data.
[0141] Log management: record data access and operation logs to facilitate subsequent auditing and tracing.
[0142] 6. Application development and integration
[0143] Build data applications based on the platform layer to provide a variety of business functions and services:
[0144] Open API and SDK: Provide open API and SDK to facilitate third-party application and system integration.
[0145] User Interface and Dashboard: Develop user interfaces and data dashboards to provide data visualization and operation interfaces to enhance user experience.
[0146] Intelligent decision support system: Combined with data analysis results, an intelligent decision support system is constructed to provide a scientific basis for agricultural product management and traceability.
[0147] 7. System maintenance and optimization
[0148] Ensure continuous operation and optimization of the platform layer and improve system reliability and availability:
[0149] System monitoring and alarm: Deploy system monitoring tools (such as Prometheus and Grafana) to monitor the system operation status in real time and issue alarms in time when abnormalities are found.
[0150] Performance optimization: Regularly optimize system performance, including database optimization, computing resource optimization, etc., to improve system operation efficiency.
[0151] Version updates and upgrades: Regularly update system versions and functions, fix known vulnerabilities, add new features, and keep the system advanced.
[0152] Implementation case examples
[0153] Farm Management System
[0154] Cloud platform deployment: Select the AWS cloud platform to deploy infrastructure and data processing platform.
[0155] Sensor data storage: Use Amazon RDS service to store structured data and use S3 service to store large-scale unstructured data.
[0156] Real-time data processing: Use AWS Kinesis for real-time processing of sensor data, combined with AWS Lambda for real-time analysis and response.
[0157] Data visualization: Build data dashboards through Amazon QuickSight to visualize and analyze farm data.
[0158] Cold Chain Transportation Monitoring System
[0159] Cloud platform selection: Choose Alibaba Cloud platform for data storage and processing.
[0160] Data transmission and storage: Alibaba Cloud MQTT protocol is used for data transmission, and Alibaba Cloud OSS is used to store large-scale sensor data.
[0161] Data processing and analysis: Alibaba Cloud MaxCompute is used for big data processing and analysis, and DataWorks is used for task scheduling and management.
[0162] Decision support system: Combine data analysis results to build an intelligent cold chain management system to optimize transportation routes and environmental monitoring.
[0163] Through the above steps, the platform layer can not only efficiently process and store huge sensor data, but also provide strong data support for business applications, realizing the full-process management and intelligentization of the agricultural product traceability system.
[0164] In the agricultural product traceability system based on the Internet of Things, the application layer is the function implementation layer for users and various business needs, and is the window for the display and interaction of the entire system. It converts the data processed and analyzed by the platform layer into specific application services, covering functions such as agricultural product information display, traceability query, monitoring and early warning, and decision support. The following is a detailed description of the implementation of the application layer:
[0165] 1. Application requirements analysis
[0166] Before implementing the application layer, it is necessary to analyze and clarify the specific application requirements of the system in detail:
[0167] User role analysis: Identify the user roles of the system, such as farmers, consumers, regulators, logistics companies, etc.
[0168] Functional requirements: Determine the specific functional requirements of each role, such as farmers need to monitor farmland conditions in real time, consumers need to query agricultural product traceability information, and regulatory agencies need to monitor food safety.
[0169] User experience requirements: Analyze user habits and expectations, and design friendly and easy-to-use user interfaces and interaction processes.
[0170] 2. Application architecture design
[0171] Design a reasonable application architecture based on application requirements to ensure application reliability and scalability:
[0172] Front-end architecture: Select front-end frameworks and technology stacks, such as React, Vue.js, Angular, etc., and design responsive user interfaces.
[0173] Backend architecture: Select backend frameworks and technology stacks, such as Spring Boot, Django, Node.js, etc., and design efficient and stable business logic processing.
[0174] Microservice architecture: Using microservice architecture design, different functional modules are independently deployed and managed to improve the flexibility and scalability of the system.
[0175] 3. Front-end development and implementation
[0176] The front end is the interface that users come into direct contact with, and we need to focus on creating a good user experience:
[0177] User interface design: Design the interface according to user needs and usage habits, including layout, navigation, icons, colors, etc., to ensure that the interface is beautiful and easy to operate.
[0178] Data visualization: Use data visualization technologies such as charts and dashboards (such as D3.js and ECharts) to display agricultural product data, sensor data, etc., so that users can understand them intuitively.
[0179] Responsive design: Use responsive design technology to ensure that the application has good display effects on different devices (such as computers, tablets, and mobile phones).
[0180] 4. Backend development and implementation
[0181] The backend is responsible for business logic processing and data management, and needs to ensure efficiency, stability, and security:
[0182] Interface design and implementation: Design and implement RESTful API or GraphQL interface to provide data services and business processing functions required by the front end.
[0183] User authentication and permission management: Implement user authentication and permission management to ensure that different user roles can access and operate corresponding data.
[0184] Data processing and storage: Process the data transmitted by the platform layer, store it in a suitable data storage system (such as database, cache, etc.), and provide data query and analysis functions.
[0185] 5. Security and Privacy Protection
[0186] Ensure application layer security and user privacy protection to prevent data leakage and improper use:
[0187] Data encryption and transmission security: Encrypt sensitive data for storage and transmission (such as using the HTTPS protocol).
[0188] Permission control and log audit: strictly control user permissions and record user operation logs to facilitate subsequent auditing and tracing.
[0189] Privacy Protection Policy: Formulate a user privacy protection policy, clarify the platform's collection, use and protection measures for user data, and comply with relevant laws and regulations.
[0190] 6. Application testing and release
[0191] Before the application goes online, conduct sufficient testing to ensure the reliability and stability of the system:
[0192] Functional testing: ensure that each functional module is implemented as required and can operate normally.
[0193] Performance testing: Test the system's performance under high concurrency and large data volumes to ensure that it can cope with the large traffic demands in actual usage scenarios.
[0194] Security Testing: Perform security testing on the system to identify and fix potential security vulnerabilities.
[0195] 7. User training and support
[0196] Provide user training and support services to help users quickly get started and solve problems encountered during use:
[0197] User manuals and tutorials: Write detailed user manuals and operation tutorials to guide users in using the various functions of the system.
[0198] Technical support and feedback channels: Provide technical support services, establish user feedback channels, and collect and handle user feedback issues in a timely manner.
[0199] Implementation case examples
[0200] Farm Management Applications
[0201] Front-end design: Use the React framework to develop a responsive front-end interface to display farmland sensor data and agricultural product growth conditions.
[0202] Backend service: Use Spring Boot to develop backend services, providing interfaces such as farmland environment monitoring and agricultural product growth records.
[0203] Data visualization: Integrate ECharts for data analysis and visualization to display the changing trends of environmental data such as temperature, humidity, and light.
[0204] User authority management: Implement authority control for farmers and administrators. Farmers can only view and manage their own plot data, while administrators can view global data.
[0205] Cold chain transportation monitoring application
[0206] Front-end design: Use the Vue.js framework to develop a cold chain transportation monitoring interface to display the location and environmental data of the transport vehicles in real time.
[0207] Backend services: Use Node.js to develop backend services to process transportation data, provide location tracking and environmental monitoring functions.
[0208] Alarm system: realize abnormal alarm function, such as sending alarm notification to management personnel in time when the temperature exceeds the standard during transportation.
[0209] Data analysis: Combined with machine learning algorithms, transportation data is analyzed to optimize transportation routes and environmental control and improve transportation efficiency.
[0210] Through the above steps, the application layer can transform the data and functions of the platform layer into specific user application services to meet various business needs such as agricultural product management, traceability, and monitoring, and realize the ultimate value of the system and user satisfaction.
[0211] The agricultural product traceability system based on the Internet of Things involves multiple levels and technologies. This invention will show some key code snippets to implement the front-end, back-end and data processing parts. Here is just a sample code to illustrate the basic implementation ideas and technical points.
[0212] Front-end: React+ECharts
[0213] The front-end uses the React framework and uses ECharts to achieve data visualization. The following is an example of a simple temperature and humidity monitoring page:
[0214]
[0215]
[0216]
[0217]
[0218] export default TemperatureHumidityMonitor;
[0219] Backend: Node.js+Express
[0220] Use Node.js and Express framework to implement the backend service. The following is a simple API example:
[0221]
[0222]
[0223] Data processing part: Python+Apache Kafka
[0224] Using Python and Kafka to process real-time data, here is a simple data producer and consumer example:
[0225]
[0226]
[0227]
[0228] Data storage and processing (Python+Flask+SQLite)
[0229] Use the Flask framework to implement a simple data processing and storage service, using SQLite as the database:
[0230]
[0231]
[0232] Use platforms such as Netlify and Vercel to automate front-end deployment. You can also upload the built static files to cloud services or traditional web servers.
[0233] #Build commands
[0234] npm run build
[0235] Deploy the backend
[0236] You can deploy backend services to multiple platforms such as Heroku, AWS, GCP, or your own servers.
[0237] #Example using Heroku deployment
[0238] heroku create
[0239] git push heroku main
[0240] The above codes and steps show the key implementation methods of an IoT agricultural product traceability system from the front-end, back-end to data processing and storage. More complex business logic and more modules may be required in actual projects, but these sample codes provide a basic architecture and technical route.
[0241] 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. Agricultural product traceability system based on the Internet of Things, including the sensor layer, Features: The sensor layer is connected to the network layer, the network layer is connected to the platform layer, and the platform layer is connected to the application layer; The network layer includes wireless communication and gateway equipment, and the wireless communication includes a LoRa module, a NB-IoT module and a WiFi module.
2. According to the agricultural product traceability system based on the Internet of Things according to claim 1, Features: The sensor layer includes a temperature and humidity sensor, a soil moisture sensor, a light sensor, a GPS module, and a microcontroller.
3. According to the agricultural product traceability system based on the Internet of Things according to claim 1, Features: In the network layer, short-node data transmission is performed through a star topology, and large-scale or multi-path transmission is performed through a tree topology or a mesh topology.
4. According to the agricultural product traceability system based on the Internet of Things according to claim 1, Features: The platform layer includes a cloud platform, a database, and data processing and analysis, and the platform uses AWS, Azure, or Google Cloud platform.
5. According to the agricultural product traceability system based on the Internet of Things according to claim 1, Features: The application layer includes a front-end and a back-end. The front-end framework and technology stack are selected from one of React, Vue.js, and Angular. The back-end framework and technology stack are selected from one of Spring Boot, Django, and Node.js. Efficient and stable business logic processing is designed.
6. The agricultural product traceability system based on the Internet of Things according to claim 1, Features: The data collected by the sensor layer is transmitted to a distributed database or cloud platform through a gateway device for storage, processing and analysis, where preliminary data processing is required through edge computing, and then further analysis is performed using cloud computing and big data analysis.
7. The agricultural product traceability system based on the Internet of Things according to claim 1, Features: In the network layer, short-distance data transmission is performed through Zigbee or Bluetooth Low Energy, and medium-distance or long-distance data transmission is performed through Wi-Fi or 5G.
8. The agricultural product traceability system based on the Internet of Things according to claim 1, Features: The platform layer stores sensor data and log data through a distributed database, stores large-scale unstructured data through a data lake, analyzes structured data through a data warehouse, and performs real-time data backup.
Citation Information
Cited By
Agricultural product traceability data acquisition method and system based on Internet of Things
CN119295100A
Food internet monitoring system
CN119966656A
