A chive whole life cycle digital supervision method and system

By generating pesticide application decision parameters and simultaneously verifying the safety interval, agricultural operation behaviors are identified in real time and linked to data using a unique identifier. This solves the problem of the separation between pesticide application decisions and safety intervals in scallion cultivation, achieving efficient pesticide management and full life-cycle data traceability. It also improves the accuracy of agricultural operation behavior identification and the automated comparison capabilities of AI monitoring.

CN123140403APending Publication Date: 2026-11-20VEGETABLE RES INST GUANGDONG ACAD OF AGRI SERVICES +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611291214.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2026-02-11
Filing Date
2026-08-25
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Current scallion cultivation lacks dynamic adjustments to pesticide application decisions based on monitoring data and economic thresholds, leading to increased pesticide resistance in pests and diseases and higher pesticide residue risks. The separation of pesticide application decisions from safety interval verification results in temporal misalignment. AI monitoring systems cannot directly obtain pesticide application decision parameters for automated comparison, resulting in poor accuracy in identifying agricultural operations. Edge inference performance is unstable under different lighting conditions, and data is scattered, lacking a full lifecycle traceability mechanism.

Method used

By receiving seedling information, pesticide application decision parameters are generated. Field image streams are collected in real time to identify agricultural operation behaviors. A unique identifier is used to associate data at each stage to generate violation judgment results. Data processing is completed locally at the edge inference node to achieve synchronous verification of pesticide application decisions and safety intervals. An improved target detection model is used to improve the accuracy of behavior recognition. A bidirectional feature pyramid and channel attention mechanism are introduced to optimize the model for hierarchical early warning and full-process traceability.

Benefits of technology

It integrates pesticide application decision-making with safety interval verification, improves the accuracy and real-time performance of agricultural operation behavior identification, reduces pesticide residue risks, provides full life-cycle data traceability and closed-loop supervision, and enhances the automated comparison capabilities and data processing efficiency of AI monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123140403A_ABST
    Figure CN123140403A_ABST
Patent Text Reader

Abstract

The application provides a chives full life cycle digital supervision method and system, which receives seedling information collected by a grower, generates a planting plan and binds land information, and generates pesticide application decision parameters, wherein the generation process of the pesticide application decision parameters is synchronized with the safety interval period; a field operation image stream is collected in real time, a farming operation behavior is identified through a target detection model, the pesticide application decision parameters are compared as compliance judgment criteria to generate a violation judgment result, wherein a spatial correlation degree is used for weighted fusion calculation of frame-level behavior confidence, and frame accumulation is performed in an exponential decay accumulation manner; each link data is associated through a unique identification code to form a closed-loop traceability chain; after receiving acceptance confirmation, the identification code is unbound, and whole-process traceability is provided. The application realizes the integration of pesticide application decision and safety interval period verification, data coupling of pesticide application decision parameters and operation supervision, multi-source feature fusion behavior identification, edge reasoning self-adaptive scheduling, hierarchical alarm, closed-loop traceability and quantitative risk assessment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of agricultural digital management technology, and in particular to a method and system for digital monitoring of the entire life cycle of scallions. Background Technology

[0002] In current scallion cultivation, pesticide application decisions are made using a calendar-based fixed schedule rather than based on monitoring data and economic thresholds. This leads to accelerated pesticide resistance development when pesticides are applied before pests and diseases reach economic thresholds, and increased pesticide residue risks due to applying pesticides in unnecessary time windows. Furthermore, pesticide application decisions and safety interval verification are two separate processes, lacking a mechanism for rigidly verifying the safety interval during the pesticide application decision generation stage. This results in a time-series misalignment where the interval is not checked during decision-making, or the decision has already been executed when the interval is checked. The parameters output by the pesticide application decision, such as the target pesticide, application rate, and water consumption, are only used to guide growers in pesticide application operations and are not used as a basis for subsequent compliance judgment by AI monitoring. After the AI ​​monitoring system identifies pesticide application behavior, it cannot directly obtain the decision parameters of which pesticide and application rate should be used for the current plot for automated comparison, and can only rely on manual retrieval of planting plans for verification, resulting in a serious lag in the detection of violations. In the identification of agricultural operation behavior, the target detection model detects personnel and equipment independently, and the confidence of each category detection box is determined independently, without calculating the spatial correlation between categories. Personnel and equipment are close to each other. However, when no actual operational relationship exists, it may be mistakenly identified as agricultural operations. When personnel or equipment obstruct the view, resulting in low confidence levels for certain detection boxes, agricultural operations may be missed. Furthermore, the judgment of continuous frame behavior uses a simple counting method without including the confidence value of each frame in the cumulative calculation. Low-confidence frames and high-confidence frames contribute equally to behavior confirmation, resulting in poor noise resistance. In edge inference scheduling, the fixed NMS confidence threshold leads to a sharp drop in recall rate under low light and an increase in false detection rate under high light. The fixed inference frequency leads to a surge in inference latency and an increase in frame loss rate when multiple cameras compete for computing power. Frame-by-frame recognition results are directly used as the basis for behavior judgment, resulting in repeated recording of the same behavior. Occasional false detection frames trigger false records. Violations during the safety interval period are judged only by binary judgment without a graded early warning mechanism. Data from each stage is scattered across different systems and lacks a unique identifier code that runs through the entire life cycle. Violation records only display the original list without integrating violation type, time, and frequency into a quantitative risk assessment value. There is a lack of standardized effect evaluation process and closed-loop mechanism after pesticide application, and the economic threshold is not dynamically calibrated based on historical evaluation data. Summary of the Invention

[0003] This invention proposes a digital monitoring method for the entire life cycle of scallions, including: S1. Receive seedling information from growers, generate a planting plan based on the seedling information and bind it to plot information, and generate pesticide application decision parameters; S2. Real-time acquisition of field operation image stream, identification of agricultural operation behavior through target detection model, comparison of the pesticide application decision parameters as compliance judgment benchmark, and generation of violation judgment results; S3. Associate the plot information, planting plan, agricultural input requisition information, violation judgment results and agricultural operation behavior records with the unique identification code. In the harvesting stage, bind the weighing information with the unique identification code to complete the warehousing. In the outbound stage, bind the outbound vegetable basket with the purchase order. S4. Receive the buyer's acceptance confirmation of the outbound vegetable baskets, unbind the unique identifier from the purchase order, update the vegetable basket status to idle, and provide full-process information traceability from planting to sales based on the unique identifier.

[0004] Furthermore, in S1, a planting plan is generated based on the seedling information and bound to the plot information, and pesticide application decision parameters are generated, specifically including: Acquire agricultural monitoring data and compare the agricultural monitoring data with economic thresholds; When the agricultural monitoring data reaches the economic threshold, the target pesticide is determined based on the approved list of plant protection products, product availability, and cost constraints. The resistance management rotation strategy is determined based on the mechanism of action group. The application rate and water consumption are determined according to the canopy parameters. The pre-harvest safety interval and re-entry interval requirements are verified by comparing with the harvest time. The application decision parameters, which include the target pesticide, application rate, water consumption, and pesticide preparation order, are generated.

[0005] Furthermore, the application decision parameters, which include the target agent, application rate, water consumption, and preparation order, are generated. Specifically, the preparation order is carried out according to the two-stage dilution principle. First, 1 / 3 clean water is added to the pesticide tank, followed by powder, suspension, emulsifiable concentrate, adjuvant or spreading agent, foliar fertilizer or trace element, and finally the remaining water is added. Each agent must be thoroughly mixed before being added.

[0006] Furthermore, in S2, agricultural operation behaviors are identified through an object detection model, specifically including: Candidate detection boxes in the same frame are grouped by category, and the intersection-union ratio (IU / R) is calculated for any two candidate detection boxes within the same category. ,when When the crossover ratio exceeds a preset threshold, the detection boxes with higher confidence are retained to obtain the effective detection boxes for each category; The intersection-union ratio (CUI) between valid detection boxes of different categories is calculated as the spatial correlation degree. ; Perform frame-level behavior confidence-weighted fusion. ,in To determine the confidence level of the effective detection frame for personnel, The confidence level of the effective detection frame for the device.

[0007] Furthermore, identifying agricultural operational behaviors through object detection models in S2 also includes: The confidence level of cumulative behavior is calculated using an exponentially decaying cumulative method. ,in The attenuation coefficient is... ;when When the agricultural operation behavior is greater than or equal to the preset behavior confirmation threshold, it is confirmed that the agricultural operation behavior is valid.

[0008] Furthermore, after confirming the agricultural operation in S2, the specific steps include: performing frame-by-frame redundancy checks on the image stream at preset time intervals, and sequentially adding the check results to a sliding window queue, wherein the window size of the sliding window queue is [missing information]. The preset quantity threshold is ,in To confirm the ratio; when the number of true results in the sliding window queue reaches The system sends behavior records to the backend at any time.

[0009] Furthermore, after sending the behavior record to the system backend in S2, the specific steps include: calculating the first time difference between the estimated harvest time and the most recent spraying time, and generating a first-level alarm when the first time difference is less than the safe interval for spraying; calculating the second time difference between the actual harvest time and the most recent spraying time, and generating a second-level alarm when the second time difference is less than the safe interval for spraying, wherein the severity of the first-level alarm is lower than that of the second-level alarm.

[0010] Furthermore, after sending the behavior record to the system backend in S2, the method also includes: pausing the recognition operation of the target detection model, and resuming recognition after a preset pause time.

[0011] Furthermore, the present invention also proposes a computer-readable storage medium storing a computer program thereon, characterized in that the program, when executed by a processor, implements the aforementioned method for digital monitoring of the entire life cycle of scallions.

[0012] Furthermore, this invention proposes a digital monitoring system for the entire lifecycle of scallions, comprising: a user interaction module for providing system access and interaction functions for growers, suppliers, and purchasers; a production management module for receiving seedling information, generating planting plans and binding plot information, and generating pesticide application decision parameters; an AI monitoring module for collecting field operation image streams, identifying agricultural operation behaviors through a target detection model, comparing the pesticide application decision parameters as a compliance judgment benchmark, and generating violation judgment results; an inventory management module for associating plot information, planting plans, agricultural input requisition information, violation judgment results, and agricultural operation behavior records through a unique identifier, binding weighing information with the unique identifier to complete warehousing during the harvesting stage, and binding the outbound vegetable baskets with the purchase order during the outbound stage; and an order management module for receiving the purchaser's acceptance confirmation of the outbound vegetable baskets, unbinding the unique identifier from the purchase order, updating the vegetable basket status to idle, and providing full-process information traceability from planting to sales based on the unique identifier.

[0013] This invention proposes a digital monitoring method and system for the entire lifecycle of scallions. It synchronously executes pesticide application decision generation and safety interval verification within the same process, using pesticide application decision parameters as the compliance judgment benchmark for subsequent monitoring. Because a rigid safety interval verification is embedded synchronously within the pesticide application decision parameter generation process, schemes violating the interval are intercepted before parameter output, eliminating the timing misalignment problem between decision-making and verification. Because the target pesticide and application rate in the pesticide application decision parameters are synchronously written into the compliance benchmark data table of the monitoring module, the decision parameters can be directly read and automatically compared after pesticide application is detected, eliminating the problem of severe lag in the detection of violations. Because each node from seedling receipt to order delivery uses a unique identifier as the primary key for synchronous recording, data from each stage forms a closed-loop traceability chain based on the same identifier, eliminating the problem of data being scattered across different systems and lacking a unified link. Because acceptance confirmation triggers the system to debind the unique identifier from the purchase order and reset the vegetable basket status to idle, the vegetable basket enters the next cycle, and the entire process information remains traceable, thus achieving a closed-loop traceability of the entire process from planting to sales. Attached Figure Description

[0014] Figure 1 This is a flowchart illustrating a digital monitoring method for the entire lifecycle of scallions proposed in this invention. Detailed Implementation

[0015] refer to Figure 1 This invention proposes a digital monitoring method for the entire life cycle of scallions, including: S1. Receive seedling information from growers, generate a planting plan based on the seedling information and bind it to the plot information, and generate pesticide application decision parameters.

[0016] Among them, seedling information refers to the information on the type of seedling crop received by growers; planting plan refers to the plan that includes planting time, harvesting time and safe interval for pesticide application; pesticide application decision parameters refer to parameters that include target pesticide, application rate, water consumption and pesticide application order; and plot information refers to information from the base management module that is managed hierarchically by grower, farm and plot, and a grower can manage multiple plots.

[0017] Specifically, the system first receives seedling information from growers, including the crop type. Then, it retrieves pre-stored planting technology plans based on the crop type. These plans are tailored to the season and production area, including seedling usage per acre, pesticide application time and dosage, fertilization time and dosage, expected growth cycle, expected yield, expected vehicle usage, and safe interval for pesticide application. Finally, it generates a planting plan including planting time, harvest time, and safe interval for pesticide application, and binds it to the plot information. The agricultural input management module digitally manages agricultural inputs such as seedlings and pesticides, including an overview of agricultural inputs, agricultural input categories, agricultural input products, product inventory, inventory checks, warehousing records, requisition records, agricultural input requisition reminders, and damage reports.

[0018] Specifically, the pesticide application decision parameter generation process is as follows: First, agricultural monitoring data is acquired, derived from weekly inspections and area surveys, including insect population density, abnormal leaf spots, uniformity of new shoot growth, disease occurrence, and plant condition. Then, the agricultural monitoring data is compared with economic thresholds. If the economic threshold is not reached, the pesticide application instruction is not triggered, monitoring continues, and the process terminates; if the economic threshold is reached, the pesticide selection phase begins. In the pesticide selection phase, pesticides are selected based on three hard criteria: a list of approved plant protection products, product availability, and cost constraints, while also considering safety for beneficial insects and natural enemies. Before application, the mechanism of action, impact on pollinators, and impact on beneficial insects are examined. Based on the mechanism of action, a resistance management rotation strategy is determined, rotating to different mechanisms of action each time to delay the development of resistance. The application rate and water volume are determined based on canopy parameters: the application rate is determined according to the label instructions; the water volume is adjusted according to plant size and canopy size, at a density of 4200 pots / ha, 400 to 600 L / ha for small trees or small canopies, and 800 to 1000 L / ha for large canopies or large trees; the application method is root drenching or foliar spraying. The PHI (Pre-harvest Safety Interval) and REI (Re-entry Interval) requirements are verified against the harvest time, and PPE (Personal Protective Equipment) is also checked. Finally, application decision parameters are generated, including the target pesticide, application rate, water volume, and mixing order.

[0019] Specifically, the order of pesticide preparation follows the two-stage dilution principle: First, add 1 / 3 clean water to the pesticide tank; then add powders, including WDG (water-dispersible granules), DF (dry suspension concentrate), and soluble powders; then add suspension concentrates, including SC (suspension concentrate) and SE (emulsion suspension); then add emulsifiable concentrates, including OD (oil suspension concentrate) and EC (emulsifiable concentrate); then add adjuvants or spreading agents; then add foliar fertilizers or micronutrients; finally, add the remaining water. Each pesticide must be thoroughly mixed before adding it. It is strictly forbidden to mix multiple pesticides together and pour them into the tank at once, and it is strictly forbidden to pour pesticides directly into the large pesticide tank.

[0020] Specifically, in existing technologies, drug administration decisions are made using a fixed calendar schedule, and drug administration decisions and safety interval verification are two separate processes. This leads to a time-series misalignment problem, where the interval is not checked during decision-making, and the decision has already been executed when the interval is checked. In this invention, drug administration decisions and safety interval verification are executed synchronously within the same process. Because drug administration decision generation, PHI, and REI verification are executed synchronously within the same process, operation requests that violate the safety interval are intercepted during the drug administration decision parameter generation stage, thereby achieving integrated drug administration decisions and safety interval verification. The drug administration decision parameters are consumed as compliance judgment benchmark data in S2.

[0021] Furthermore, after acquiring agricultural monitoring data in S1 and comparing it with economic thresholds, the process specifically includes: if the agricultural monitoring data does not reach the economic threshold, no application instruction is triggered, monitoring continues, and the process terminates; if the agricultural monitoring data reaches the economic threshold, the pesticide selection stage begins. Based on the approved list of plant protection products, product availability, and cost constraints, the target pesticide is determined, and a resistance management rotation strategy is determined based on the mechanism of action. The application rate and water consumption are determined according to canopy parameters, and PHI and REI requirements are verified against harvest time. Application decision parameters, including the target pesticide, application rate, water consumption, and application order, are generated. Because the comparison result between agricultural monitoring data and the economic threshold directly determines whether an application instruction is triggered, the pesticide selection stage only begins when the economic threshold is reached. This avoids accelerating resistance development by applying pesticides before the pests and diseases reach the economic threshold and increasing pesticide residue risks by applying pesticides in unnecessary time windows.

[0022] Furthermore, after generating the application decision parameters in S1, the specific steps include: the mixing order follows the two-stage dilution principle; first, add 1 / 3 clean water to the pesticide tank, then add powders, suspensions, emulsifiable concentrates, adjuvants or spreading agents, foliar fertilizers or micronutrients in sequence, and finally add the remaining water. Each pesticide must be thoroughly mixed before adding it. Because the mixing order follows the two-stage dilution principle and each pesticide must be thoroughly mixed before adding it, the various pesticides are evenly dispersed in the water rather than mixed intensively, thus avoiding reduced efficacy or phytotoxicity risks caused by improper pesticide mixing.

[0023] In one specific implementation: at a planting density of 4200 pots / ha, the water consumption for small trees or small canopies is 400 to 600 L / ha, and the water consumption for large canopies or large trees is 800 to 1000 L / ha, and the application method is root irrigation or foliar spraying.

[0024] S2. Real-time acquisition of field operation image streams, identification of agricultural operation behaviors through target detection models, comparison of pesticide application decision parameters as compliance judgment benchmarks, and generation of violation judgment results.

[0025] Among them, field operation image stream refers to real-time image streams collected by high-definition cameras deployed at key locations in crop planting areas and stored by video recorders; target detection model refers to a model that uses the YOLO series deep learning framework, is implemented using PyTorch, and provides image recognition services through a RESTful API built using Flask or FastAPI; agricultural operation behaviors refer to behaviors including land preparation, planting, fertilization, irrigation, weeding, thinning, drainage, spraying pesticides, and harvesting.

[0026] Specifically, high-definition cameras with night vision capabilities are deployed at key locations in the crop planting area. These cameras are connected to a video recorder, which is on the same local area network as the AI ​​edge device. The video recorder receives and stores real-time image streams. The target detection model uses the YOLO series deep learning framework, implemented in PyTorch, and uses tools such as LabelImg for annotation. Annotated targets include spraying personnel and spraying equipment. Training parameters include learning rate, batch size, and epochs, and training is performed using a GPU server. Image enhancement algorithms are used to improve robustness against changes in lighting conditions, and the model is regularly updated and optimized.

[0027] Specifically, frame-level behavior confidence calculation includes the following steps: First, candidate detection boxes in the same frame image are grouped by category; then, the intersection-union ratio (IUU) is calculated for any two candidate detection boxes within the same category. The preset crossover ratio (CUP) threshold is 0.5. When the confidence level exceeds a threshold, high-confidence bounding boxes are retained, while low-confidence bounding boxes are deleted, resulting in valid bounding boxes for each category. Then, the intersection-union ratio (IUU) between valid bounding boxes of different categories is calculated as the spatial correlation. , A value close to 1 indicates a high degree of overlap between personnel and equipment, meaning that the equipment is being operated. A value of 0 indicates that there is no spatial association between personnel and equipment. Finally, frame-level behavior confidence-weighted fusion is performed. ,in To determine the confidence level of the effective detection frame for personnel, To determine the confidence level of the effective detection frame for the device, when there are multiple people or devices in a single frame, the centering score of all people and devices should be taken. The maximum value. Because spatial correlation is used. The confidence scores of personnel and equipment detection frames are weighted and fused using multiplicative weights. This results in the spatial correlation approaching zero when personnel and equipment are close in distance but have no actual operational relationship, thus drastically reducing the confidence score of frame-level behavior and avoiding false positives. Furthermore, when the confidence score of a partially occluded person drops to 0.3, the confidence score of the equipment is greater than 0.7, and the spatial correlation is greater than 0.6. The accuracy can still reach 0.126, thus avoiding missed detections. In existing technologies, target detection models detect personnel and equipment independently, and the confidence of each category's detection box is determined independently. Spatial correlation between categories is not calculated, leading to misjudgments of agricultural operations when personnel and equipment are close in distance but have no actual operational relationship, and missed detections of agricultural operations when personnel and equipment obstruct each other, resulting in low confidence of a certain category's detection box. This invention solves the above problems by using intra-category NMS deduplication, inter-category spatial correlation calculation, and frame-level behavior confidence weighted fusion.

[0028] Specifically, the confidence score for time-series cumulative behavior is calculated using an exponentially decaying cumulative method. ,in In this embodiment, the attenuation coefficient is... , The preset behavior confirmation threshold is 0.5. A value greater than or equal to 0.5 confirms the agricultural operation. In existing technologies, a simple counting method is used to determine consecutive frame actions; five consecutive true frames confirm the action. This binary determination loses the confidence value, and low-confidence frames and high-confidence frames contribute equally to the action confirmation, resulting in poor noise resistance. In this invention, high-confidence frames contribute more, and occasional low-confidence frames do not cause a sharp drop in the cumulative value. This is because the first four frames... When both are 0.8 Frame 5 When it drops to 0.1 The value remains close to the threshold of 0.5, preventing occasional low-confidence frames from causing a sharp drop in the cumulative value, thus improving noise immunity. The computational complexity is... Suitable for real-time inference in edge computing. When Constant as hour, convergence to There is no systematic bias.

[0029] Specifically, the edge inference scheduling strategy includes two mechanisms. Mechanism one involves the dynamic adjustment of the NMS confidence threshold, based on illumination intensity, with the adjustment function being... ,in It is 0.5. It is 0.2. It is 10000 lux. It is 0.25. It is 0.75. Because The light intensity L changes linearly, causing L to be less than 1. hour Less than That is, lowering the threshold to improve recall, where L is greater than hour Greater than That is, the threshold is increased to reduce the false detection rate, thereby balancing the detection performance under different lighting conditions. Derivative That is, the threshold decreases by 0.02 for every 1000 lux decrease in illumination. hour The recall rate increased by approximately 30% to 40%. hour This means that by adjusting the clamp limit, the false positive rate is reduced by approximately 20% to 30%. Mechanism two involves adaptive adjustment of computing power for inference frequency; the adjustment formula is as follows: when U is greater than... hour When U is less than or equal to hour ,in 1Hz It is 1.0. The value is 0.85. Because the inference frequency decreases linearly with the computing power utilization rate U, when U is greater than 0.85, the inference frequency decreases linearly with the computing power utilization rate; when U equals 0.85... When U approaches 1.0 The frequency approaches 0Hz, pausing inference to provide overload protection. Once computing power recovers, the base frequency is automatically restored, thus preventing a surge in inference latency and an increase in frame drop rate. In existing technologies, a fixed NMS confidence threshold leads to a sharp drop in recall under low light conditions and an increase in false positive rate under high light conditions. A fixed inference frequency results in a surge in inference latency and an increase in frame drop rate when multiple cameras compete for computing power. This invention solves these problems through light-adaptive NMS threshold adjustment and computing power-adaptive inference frequency adjustment.

[0030] Furthermore, after confirming the agricultural operation in S2, the specific steps include: performing frame-by-frame redundancy checks on the image stream once per second at preset time intervals, and sequentially adding the results to a sliding window queue, with the window size... Preset quantity threshold ,in To confirm the proportion, in this embodiment , , Indicates zero fault tolerance. This indicates that a 20% false positive rate is allowed, and the number of true results in the queue reaches [a certain threshold]. The system backend sends behavior logs at regular intervals. This is because the sliding window queue requires... A behavior record is only issued when the result is true, thus suppressing redundant frames when the same behavior is recorded repeatedly and preventing occasional false detection frames from triggering false records, thereby eliminating the problems of duplicate and false behavior recordings. In existing technologies, frame-by-frame recognition results are directly used as the basis for behavior determination, resulting in repeated recording of the same behavior and occasional false detection frames triggering false records. This invention solves the above problems through a sliding window anti-shake mechanism. The cumulative behavior confidence formula and the sliding window queue constitute a two-level behavior confirmation system. The cumulative behavior confidence formula calculates the behavior confidence at the single-frame level and accumulates it across frames to address the insufficient reliability of single-frame detection. The sliding window queue performs redundancy suppression after behavior confirmation to prevent the same behavior from being recorded repeatedly.

[0031] Furthermore, after the behavior record is sent to the system backend in S2, the specific steps include: calculating the first time difference between the estimated harvest time and the most recent spraying time; when the estimated harvest time minus the most recent spraying time is less than 10 days of the safe spraying interval, a yellow light alarm (Level 1 alarm) is generated; calculating the second time difference between the actual harvest time and the most recent spraying time; when the actual harvest time minus the most recent spraying time is less than 10 days, a red light alarm (Level 2 alarm) is generated; a green light remains on when there are no violations; the severity of Level 1 alarms is lower than that of Level 2 alarms. Alarm notification methods include real-time display of alarm information on the web management platform and alarm notifications sent to relevant personnel via APP push or SMS. The violation information record includes the violation type, time of occurrence, location of occurrence, relevant plot information, and relevant image or video evidence. Because a first-level alarm is generated by comparing the difference between the expected harvest time and the most recent spraying time with the safe spraying interval, and a second-level alarm is generated by comparing the difference between the actual harvest time and the most recent spraying time with the safe spraying interval, violations of the safe spraying interval are upgraded from a binary judgment to a tiered early warning system. This achieves a tiered response of predictive and confirmatory alarms. In existing technologies, violations of the safe spraying interval only have a binary judgment and lack a tiered early warning mechanism. This invention solves the above problem through a tiered alarm system.

[0032] Furthermore, after issuing the behavior record to the system backend in S2, the following operations are performed: the target detection model recognition operation is paused, and recognition resumes after a preset pause duration of 2 hours. The camera is bound to the farmer's plot information to ensure that each frame of image can be traced back to a specific plot. The rules for determining agricultural operation behavior are: when both the operator and the spraying equipment are detected simultaneously, it is determined as spraying behavior; when both the operator and a preset number of three plastic baskets of harvesting containers are detected simultaneously, it is determined as harvesting behavior. Because the recognition operation is paused after issuing the behavior record and resumed after 2 hours, the same behavior is not detected repeatedly during the pause period, thereby further avoiding the duplicate recording of the same behavior.

[0033] Furthermore, in S2, the application decision parameters are compared as a compliance judgment benchmark. Specifically, this includes automatically comparing the actual pesticide and application rate corresponding to the spraying behavior identified by the target detection model with the target pesticide and application rate in the application decision parameters. When the actual pesticide and target pesticide are inconsistent, or the actual application rate and application rate are inconsistent, a violation judgment result is generated. Because the application decision parameters are used as compliance judgment benchmark data, the AI ​​monitoring system can directly obtain the decision parameters of what pesticide and application rate should be used for the current plot after identifying the spraying behavior, and then automatically compare them. This achieves data coupling between the application decision parameters and agricultural operation supervision, eliminating the problem of serious lag in the detection of violations. In the prior art, the target pesticide, application rate, and water consumption parameters output by the application decision are only used to guide growers to carry out the application operation, and are not used as the compliance judgment benchmark for subsequent AI monitoring. The AI ​​monitoring system cannot directly obtain the decision parameters for automatic comparison and can only rely on manual retrieval of planting plans for verification. This invention solves the above problems by using the application decision parameters as a compliance judgment benchmark.

[0034] S3. A unique identifier is used to link plot information, planting plans, agricultural input requisition information, violation judgment results, and agricultural operation records. During the harvesting stage, weighing information is bound to the unique identifier to complete warehousing. During the outbound stage, the outbound vegetable baskets are bound to the purchase order. The unique identifier is a code used to link data at each stage throughout the entire process of planting, inventory, and ordering.

[0035] Specifically, firstly, when farmers receive the vegetable baskets, their plot information is bound to a unique identifier. Then, during the production process, the planting plan is linked to the unique identifier. Next, agricultural input requisition information is bound to the plot information, indirectly linking them through the unique identifier. During the harvesting stage, weighing information is bound to the unique identifier to complete warehousing. Finally, during the outbound stage, the outbound vegetable baskets are linked to the purchase order. Because the unique identifier permeates the entire process of planting, inventory, and ordering, agricultural input requisition information, agricultural operation records, violation judgment results, weighing information, and purchase order information form a closed-loop traceability chain based on the unique identifier, thereby eliminating the problem of data being scattered across different systems and lacking a unified link. In existing technologies, data at each stage is scattered across different systems, lacking a unique identifier that connects them throughout the entire lifecycle. This invention solves the above problems through a closed-loop traceability chain using unique identifiers.

[0036] Furthermore, after associating the violation judgment results and agricultural operation behavior records with the unique identifier in S3, the following operations are performed: A violation risk assessment value is calculated. This value is a weighted fusion of the violation weight coefficient, the time decay factor, and the violation frequency coefficient. The violation weight coefficient is determined based on the violation type, the time decay factor is determined based on the time difference between the violation occurrence time and the current time, and the violation frequency coefficient is determined based on the number of historical violation records associated with the unique identifier. When the violation risk assessment value exceeds a preset risk threshold, a risk warning is generated and pushed to the relevant responsible person. Because the violation risk assessment value is calculated through a weighted fusion of the violation weight coefficient, the time decay factor, and the violation frequency coefficient, the violation type, time, and frequency are integrated into a quantitative risk assessment value. This eliminates the problem that violation records only display the original list without integrating the violation type, time, and frequency into a quantitative risk assessment value. In the prior art, violation records only display the original list and do not integrate the violation type, time, and frequency into a quantitative risk assessment value. This invention solves the above problem through a violation risk assessment value calculation mechanism.

[0037] S4. Receive the buyer's acceptance confirmation of the outbound vegetable baskets, unbind the unique identifier from the purchase order, update the vegetable basket status to idle, and provide full-process information traceability from planting to sales based on the unique identifier.

[0038] Specifically, the process begins by receiving confirmation from the buyer regarding the shipment of the vegetable baskets. Then, the unique identifier is unlinked from the purchase order. Next, the basket status is updated to "idle." Finally, the unique identifier enables full-process traceability from planting to sales. Because the unique identifier is unlinked after confirmation and the basket status is updated to "idle," the baskets can be reused, and the entire process is traceable through the unique identifier, thus achieving closed-loop traceability from planting to sales.

[0039] Furthermore, after S4 is completed, the following operations are performed: Field status data is collected within a preset evaluation period after the application operation, a time-series status vector is constructed, and the time-series status vector is compared with an economic threshold. If the time-series status vector is lower than the economic threshold, the control is deemed effective and the record is archived. If the time-series status vector is not lower than the economic threshold, the process of generating application decision parameters in S1 is re-executed, and the economic threshold is dynamically calibrated based on historical evaluation data. Because the application effect evaluation uses a comparison mechanism, records are archived when the control is effective, and the process of generating application decision parameters is re-executed when the control is ineffective, thus forming a closed loop for application effect evaluation. Because the economic threshold is dynamically calibrated based on historical evaluation data, the economic threshold is automatically adjusted according to the actual effect data, thereby eliminating the problem of the economic threshold not being dynamically calibrated based on historical evaluation data. In the prior art, there is a lack of standardized effect evaluation process and closed-loop mechanism after application, and the economic threshold is not dynamically calibrated based on historical evaluation data. This invention solves the above problems through a closed-loop mechanism for application effect evaluation.

[0040] Furthermore, in S2, real-time acquisition of field operation image streams specifically includes: deploying edge inference nodes within the field local area network; the edge inference nodes acquiring multiple video streams in real time from the video recorder within the local area network and performing inference of the target detection model locally; uploading screenshots with recognition results and associated information to the cloud server; the cloud server calculating the pre-harvest time based on the pre-configured crop growth cycle and pesticide application safety interval; and determining violations based on the time difference between the pre-harvest time or actual harvest time and the most recent pesticide application time and the pesticide application safety interval.

[0041] Specifically, the overall system architecture consists of cameras, video recorders, edge devices, routers, cloud servers, and an app. Cameras are mounted on pillars along field roads, 5 meters above the ground, powered and connected to the network by a nearby field office. They continuously capture video streams from the field and transmit them via the local network to indoor video recorders for storage. Edge devices are on the same local area network as the video recorders, acquiring video streams from each channel in real time. Deep learning models are deployed within the edge devices to perform object detection inference and behavior determination locally, pushing screenshots with bounding boxes, along with camera IDs, timestamps, and other associated information, to the cloud server. The cloud server calculates the pre-harvest time based on crop information configured in the app, such as the growth cycle and pesticide application safety interval. Each time it receives a pesticide application or harvesting notification from the edge device, it compares the pre-harvest time or actual harvest time with the number of days between the most recent pesticide application time and the set safety interval. If the interval is less than the safety interval, a violation is detected. The cloud server and edge devices are connected via a router and the public network, and the app communicates with the cloud server via the public network. In existing technologies, all video data is uploaded to cloud servers for centralized processing, resulting in high bandwidth consumption, high transmission latency, and heavy cloud computing load. The edge inference node of this invention completes inference locally within the field's local area network. Because the edge device performs efficient data calculations and services at the edge of the data acquisition network without uploading all video data, bandwidth consumption and transmission latency are significantly reduced, thereby achieving the intelligent requirements of high real-time performance, low cost, and low energy consumption for farmland monitoring.

[0042] In one specific implementation: the edge device uses an embedded platform with 21 TOPS (INT8) AI computing power and 16GB of memory; the camera has 4 megapixels, a 4mm lens focal length, and an infrared illumination distance of 100 meters; the video recorder is equipped with a 10TB hard drive; and the cloud server has 8GB of memory and 5Mbps bandwidth. The single-crop growth cycle of scallions generally varies from season to season, ranging from 35 to 45 days, with a maximum safe interval of 15 days for pesticide application.

[0043] Furthermore, the edge inference node uploads screenshots with recognition results and associated information to the cloud server. Specifically, after completing target detection and behavior determination locally, the edge inference node only uploads screenshots with detection box annotations, along with camera ID and timestamp information, to the cloud server, without uploading the original video stream. The cloud server receives video streaming requests from the edge inference node on demand through its self-built streaming media service, allowing users to remotely view real-time monitoring footage.

[0044] Specifically, after completing all deep learning model inference and logical judgment locally, the edge device pushes the image of the identified frame as the judgment result, along with camera ID, timestamp, and other information, to the cloud server, without needing to upload all video data to the cloud. The cloud server has its own streaming media service, allowing users to stream and watch real-time monitoring videos of specific plots on demand via an app. The app includes three functional modules: video monitoring, work records, and management settings. Users can maintain information such as farms, plots, crops, growth cycles, and safety intervals in the management settings. The video monitoring module allows users to view real-time or playback monitoring data from different bases and plots, while the work records module allows users to view harvesting and pesticide application records by farm and plot. In existing technologies, continuous uploading of monitoring videos to the cloud for subsequent analysis leads to long-term bandwidth consumption, and most video data lacks the target behavior and is therefore invalid transmission. This invention only uploads screenshots containing behavior determination results and related information. Because the edge device only uploads conclusive data instead of the full video stream after completing the behavior determination locally, the uplink bandwidth usage is reduced from continuous video stream transmission to single screenshot transmission triggered by the event. This significantly reduces network bandwidth consumption while ensuring the integrity of the monitoring function.

[0045] Furthermore, in S2, agricultural operation behaviors are identified through an object detection model. This object detection model adopts an improved model based on a lightweight object detection network and incorporates a bidirectional feature pyramid structure, a channel attention mechanism, and depthwise separable convolutions. The bidirectional feature pyramid structure is deployed in the feature fusion network layer, achieving multi-scale feature fusion through cross-layer skip connections. The channel attention mechanism is deployed at the front of the detection head, enhancing the response of the target region through adaptive channel weighting. The depthwise separable convolutions are embedded in the feature fusion network layer, reducing computational load by decoupling channel convolutions from spatial convolutions.

[0046] Specifically, the baseline model chosen is YOLO11n, as it achieves high-precision detection with the lowest computational complexity and fastest inference speed, making it an ideal choice for real-time target detection on edge devices. However, unstructured field environments present challenges such as drastic fluctuations in natural light (strong backlight during the day and weak infrared light at night), small size of key target objects that are easily obscured by dense vegetation, making the baseline model prone to missed detections. Furthermore, edge devices have limited computing resources and memory, preventing the network depth from being blindly expanded. Therefore, three collaborative improvements were made to the baseline model.

[0047] The first improvement involves introducing a BiFPN bidirectional feature pyramid structure, deployed in the feature fusion network (Neck layer). Employing a bidirectional network topology and weighting mechanism, it achieves efficient fusion of multi-scale information while ensuring low-loss transmission of deep semantics through cross-layer skip connections. Because BiFPN achieves multi-scale feature fusion through cross-layer skip connections, the feature representation of weak targets in densely occluded scenes is enhanced, thus solving the low recall problem for weak targets in such scenes. In ablation experiments, the average precision increased from 92.41% to 94.32%, and the recall increased from 88.52% to 90.13% after introducing BiFPN alone.

[0048] The second improvement involves introducing a CAM channel attention mechanism, deployed at the front of the detection head, which enhances the response speed of the core target area through adaptive channel weighting. Because the CAM enhances the target area response through adaptive channel weighting at the front of the detection head, background noise such as field weeds and light and shadow is suppressed, thereby improving the bounding box positioning accuracy in backlight and low-light environments.

[0049] The third improvement involves embedding DWConv depthwise separable convolutions, deployed in the Neck layer, to decouple channel and spatial convolutions. Because DWConv decouples channel and spatial convolutions, the computational load on the Neck side is reduced by approximately 30%, achieving an optimal balance between detection accuracy and inference speed while maintaining feature representation capabilities and improving the model's applicability on low-computing-power edge devices. In ablation experiments, introducing DWConv alone reduced the number of parameters to 2.41M and the floating-point computation to 5.93G, but both average precision and recall slightly decreased (92.41%→91.92%, 88.52%→87.64%), indicating that the lightweight design resulted in a slight loss of accuracy.

[0050] The three strategies work synergistically. In the ablation experiments, introducing DWConv alone slightly reduced the average accuracy, but it performed best when combined with other strategies. The final improved model, while maintaining a low parameter count of 2.82M, achieved an average accuracy of 96.51%, significantly outperforming the original YOLO11n model (average accuracy of 92.41%) and approaching the performance of the YOLO11m model. The model training configuration was as follows: initial learning rate 0.01, optimizer stochastic gradient descent, momentum factor 0.937, weight decay coefficient 0.0005, learning rate decay strategy cosine annealing, warmup training for the first 3 epochs, and mixed-precision training completely disabled.

[0051] In existing technologies, object detection models are not optimized for lightweight deployment on edge devices, resulting in large model parameter counts and slow inference speeds, making real-time detection impossible on edge devices with limited computing power. This invention addresses this by employing three collaborative improvement strategies: BiFPN enhances multi-scale feature fusion, CAM suppresses background noise, and DWConv reduces computational load. These three strategies work synergistically at the Neck layer and the detection head, significantly reducing both parameter count and computational cost while maintaining high detection accuracy, thus enabling real-time and efficient inference on edge devices.

[0052] Furthermore, in S2, agricultural operation behaviors are identified through a target detection model. The target detection model includes three types of features: personnel, pesticide application equipment, and harvesting containers. When personnel and pesticide application equipment are detected simultaneously in the same frame image, it is determined to be a pesticide application behavior. When personnel and a preset number or more harvesting containers are detected simultaneously in the same frame image, it is determined to be a harvesting behavior.

[0053] Specifically, based on the characteristics of the unstructured field environment, three features were selected as the model detection objects: personnel, sprayers, and harvesting containers (baskets). Scallion plants are relatively short and unsuitable for drone spraying; therefore, sprayers are carried out by personnel, both during the day and at night. Harvesting involves workers crouching down to harvest, and baskets for holding vegetables are visible in the frame. Spraying behavior detection requires the simultaneous detection of both a person and the sprayer; harvesting behavior detection requires the detection of both a person and at least two baskets. Because non-operational behaviors such as personnel entering the base for inspection can easily lead to false detections, the co-occurrence of personnel and sprayers or harvesting containers is used as the criterion for operational behavior recognition. This means that only when a person and a specific piece of equipment or container appear simultaneously in the same frame is it identified as the corresponding agricultural operation, thus suppressing false detections of non-operational behaviors such as personnel simply entering the base for inspection.

[0054] In existing technologies, target detection only identifies whether personnel are present, without considering the co-occurrence relationship between personnel and specific agricultural equipment or containers as a basis for behavior determination. This leads to non-operational behaviors such as personnel entering the base for inspection being misjudged as agricultural operations. This invention solves the above problems by using a co-occurrence determination logic for three categories of detection targets: human, machine, and object.

[0055] Furthermore, in S2, the identification of agricultural operation behavior through the target detection model also includes: setting a continuous frame verification strategy with a preset time window length; when the determination conditions of the spraying behavior or the harvesting behavior are met within the continuous preset time window length, the agricultural operation behavior is confirmed to be established, the current frame image is captured and time information is added before uploading.

[0056] Specifically, a time window of 10 frames is set. When the conditions for pesticide spraying (simultaneous detection of a person and a pesticide sprayer) or harvesting (simultaneous detection of a person and two or more vegetable baskets) are met for 10 consecutive frames, the edge device determines that the agricultural operation has been established. After the determination is established, the current frame image is automatically captured, the capping time information is added, and uploaded to the cloud server. Because the behavior is confirmed only when the behavior determination conditions are met for a continuous preset time window length, occasional false detections in a single frame will not trigger behavior confirmation, thereby improving the reliability of behavior determination and reducing the false alarm rate.

[0057] In existing technologies, single-frame detection results are used as the basis for behavior determination, and occasional false detection frames directly trigger false behavior records. This invention solves the above problems through a continuous frame temporal window verification strategy. It should be noted that the continuous frame verification strategy, together with exponentially decaying cumulative behavior confidence and a sliding window anti-shake mechanism, constitutes a multi-level behavior confirmation system: at the single-frame level, cumulative confidence addresses the insufficient reliability of single-frame detection; at the inter-frame level, continuous frame verification suppresses occasional false detections; and after behavior confirmation, sliding window redundancy suppression eliminates duplicate records.

[0058] Furthermore, after generating the violation determination result in S2, the method also includes: when the time difference between the pre-harvest time or the actual harvest time and the most recent spraying time is less than the safe interval for pesticide application, an alarm message is automatically pushed to the user terminal via a pop-up window. The alarm message includes the violation type, the time of occurrence, the location of occurrence, and relevant image evidence.

[0059] Specifically, when the cloud server determines that the interval between the pre-harvest time or actual harvest time and the most recent spraying time is less than the set safety interval, the system identifies it as an illegal spraying behavior and automatically pushes a corresponding alarm message to the APP. The violation information record includes the violation type, time of occurrence, location of occurrence, relevant plot information, and relevant image or video evidence. The APP is developed using the Uni-app framework, the backend uses the JavaVue framework, and the server is developed based on the FastAPI framework and deployed on the Alibaba Cloud platform. The server requests the behavior information identified by the model from the edge device via HTTP. Because the violation determination result is pushed to the user's end pop-up window immediately after being generated by the cloud server, relevant personnel are immediately informed when the violation occurs without relying on post-event review, thus achieving real-time early warning and rapid response to violations. In existing technologies, violation records require manual periodic review of the system backend, resulting in a significant delay in violation detection. This invention solves the above problems through an automatic pop-up alarm mechanism.

[0060] Before executing S2, the following preparations are made: a training dataset is constructed, in which the labeled samples cover daytime and nighttime scenes, scenes with background interference from trees and buildings, and scenes at different growth stages of scallions. The training dataset is divided into a training set and a validation set according to a preset ratio. The target detection model is trained using the training set, and the trained model is validated using the validation set.

[0061] Specifically, DarkLabel software was used to annotate video frames, with annotation features including three types: people, sprayers, and vegetable baskets. Data augmentation strategies included adding images of harvesting or spraying activities at night and during the day, images with background interference such as trees and buildings, images of different growth stages of scallions and chives, and simple daytime and nighttime field images, to enhance the model's generalization and robustness.

[0062] There were 2006 validly labeled photos of scallions and 11297 validly labeled photos of chives, totaling 13303 samples. These were randomly divided into 10642 training samples and 2661 validation samples in an 8:2 ratio. The model training hardware was a DELL Precision3660 workstation equipped with an Intel i9-13900 processor, 64GB of RAM, and an NVIDIA RTX4090 GPU. The operating system was Windows 11, and the software environment consisted of Python 3.11.2 and PyTorch 2.0.1 + CUDA 11.8.

[0063] Because the training dataset covers daytime and nighttime scenes, disturbed background scenes, and scenes at different growth stages, the model's generalization ability and robustness are enhanced in unstructured environments such as light fluctuations, background disturbances, and changes in plant morphology, thereby improving the detection precision and recall rate during actual field deployment. The system's field test results show an average detection precision of 90.41% for key features, an average recall rate of 85.34%, and a 100% accuracy rate in behavior recording across 440 field operation tests, achieving real-time monitoring and zero false negatives for violations during the safe interval period for scallions. In existing technologies, the training dataset only contains samples under standard lighting and single background conditions, leading to insufficient generalization and decreased detection precision in unstructured field environments. This invention solves these problems through a training dataset construction strategy covering multiple scenes.

[0064] Furthermore, the present invention also proposes a computer-readable storage medium storing a computer program thereon, characterized in that the program, when executed by a processor, implements the aforementioned method for digital monitoring of the entire life cycle of scallions.

[0065] Furthermore, this invention proposes a digital monitoring system for the entire lifecycle of scallions, comprising: a user interaction module for providing system access and interaction functions for growers, suppliers, and purchasers; a production management module for receiving seedling information, generating planting plans and binding plot information, and generating pesticide application decision parameters; an AI monitoring module for collecting field operation image streams, identifying agricultural operation behaviors through a target detection model, comparing the pesticide application decision parameters as a compliance judgment benchmark, and generating violation judgment results; an inventory management module for associating plot information, planting plans, agricultural input requisition information, violation judgment results, and agricultural operation behavior records through a unique identifier, binding weighing information with the unique identifier to complete warehousing during the harvesting stage, and binding the outbound vegetable baskets with the purchase order during the outbound stage; and an order management module for receiving the purchaser's acceptance confirmation of the outbound vegetable baskets, unbinding the unique identifier from the purchase order, updating the vegetable basket status to idle, and providing full-process information traceability from planting to sales based on the unique identifier.

[0066] The above are merely preferred embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.

Claims

1. A method for digital monitoring of the entire lifecycle of scallions, characterized in that, include: S1. Receive seedling information from growers, generate a planting plan based on the seedling information and bind it to plot information, and generate pesticide application decision parameters; S2. Real-time acquisition of field operation image stream, identification of agricultural operation behavior through target detection model, comparison of the pesticide application decision parameters as compliance judgment benchmark, and generation of violation judgment results; S3. Associate the plot information, planting plan, agricultural input requisition information, violation judgment results and agricultural operation behavior records with the unique identification code. In the harvesting stage, bind the weighing information with the unique identification code to complete the warehousing. In the outbound stage, bind the outbound vegetable basket with the purchase order. S4. Receive the buyer's acceptance confirmation of the outbound vegetable baskets, unbind the unique identifier from the purchase order, update the vegetable basket status to idle, and provide full-process information traceability from planting to sales based on the unique identifier.

2. The method for digital monitoring of the entire life cycle of scallions according to claim 1, characterized in that, In S1, a planting plan is generated based on the seedling information and bound to the plot information, and pesticide application decision parameters are generated, specifically including: Acquire agricultural monitoring data and compare the agricultural monitoring data with economic thresholds; When the agricultural monitoring data reaches the economic threshold, the target pesticide is determined based on the approved list of plant protection products, product availability, and cost constraints. The resistance management rotation strategy is determined based on the mechanism of action group. The application rate and water consumption are determined according to the canopy parameters. The pre-harvest safety interval and re-entry interval requirements are verified by comparing with the harvest time. The application decision parameters, which include the target pesticide, application rate, water consumption, and pesticide preparation order, are generated.

3. The method for digital monitoring of the entire life cycle of scallions according to claim 2, characterized in that, Generate the application decision parameters, which include the target agent, application rate, water consumption, and preparation order. Specifically, the preparation order follows the two-stage dilution principle. First, add 1 / 3 clean water to the tank, then add powder, suspension, emulsifiable concentrate, adjuvant or spreading agent, foliar fertilizer or trace element in sequence, and finally add the remaining water. Each agent must be thoroughly mixed before being added.

4. The method for digital monitoring of the entire life cycle of scallions according to claim 1, characterized in that, In S2, agricultural operation behaviors are identified through an object detection model, specifically including: Candidate detection boxes in the same frame are grouped by category, and the intersection-union ratio (IU / R) is calculated for any two candidate detection boxes within the same category. ,when When the crossover ratio exceeds a preset threshold, the detection boxes with higher confidence are retained to obtain the effective detection boxes for each category; The intersection-union ratio (CUI) between valid detection boxes of different categories is calculated as the spatial correlation degree. ; Perform frame-level behavior confidence-weighted fusion. ,in To determine the confidence level of the effective detection frame for personnel, The confidence level of the effective detection frame for the device.

5. The method for digital monitoring of the entire life cycle of scallions according to claim 4, characterized in that, In S2, the identification of agricultural operation behaviors through object detection models also includes: The confidence level of cumulative behavior is calculated using an exponentially decaying cumulative method. ,in The attenuation coefficient is... ;when When the agricultural operation behavior is greater than or equal to the preset behavior confirmation threshold, it is confirmed that the agricultural operation behavior is valid.

6. The method for digital monitoring of the entire life cycle of scallions according to claim 5, characterized in that, After confirming the agricultural operation in S2, the process specifically includes: performing frame-by-frame redundancy checks on the image stream at preset time intervals, and sequentially adding the results to a sliding window queue, wherein the window size of the sliding window queue is... The preset quantity threshold is ,in To confirm the ratio; when the number of true results in the sliding window queue reaches The system sends behavior records to the backend at any time.

7. The method for digital monitoring of the entire life cycle of scallions according to claim 6, characterized in that, After the behavior record is sent to the system backend in S2, the specific steps include: calculating the first time difference between the estimated harvest time and the most recent spraying time, and generating a first-level alarm when the first time difference is less than the safe interval for spraying; calculating the second time difference between the actual harvest time and the most recent spraying time, and generating a second-level alarm when the second time difference is less than the safe interval for spraying, wherein the severity of the first-level alarm is lower than that of the second-level alarm.

8. A digital monitoring method for the entire lifecycle of scallions according to claim 6, characterized in that, After sending the behavior record to the system backend in S2, the method also includes: pausing the recognition operation of the target detection model, and resuming recognition after a preset pause time.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements a digital monitoring method for the entire life cycle of scallions as described in any one of claims 1 to 8.

10. A digital monitoring system for the entire lifecycle of scallions, characterized in that, include: The user interaction module provides system access and interaction functions for growers, suppliers and buyers; The production management module is used to receive seedling information, generate planting plans and bind plot information, and generate pesticide application decision parameters; the AI ​​monitoring module is used to collect field operation image streams, identify agricultural operation behaviors through target detection models, compare the pesticide application decision parameters as compliance judgment benchmarks, and generate violation judgment results. The inventory management module is used to associate plot information, planting plan, agricultural input requisition information, violation judgment results and agricultural operation records with a unique identifier. During the harvesting stage, the weighing information is bound to the unique identifier to complete the warehousing. During the outbound stage, the outbound vegetable basket is bound to the purchase order. The order management module is used to receive the buyer's acceptance confirmation of the outbound vegetable baskets, unbind the unique identifier code from the purchase order, update the vegetable basket status to idle, and provide full-process information traceability from planting to sales based on the unique identifier code.