A knowledge graph-based pest and disease tracing method based on an agricultural environment
By constructing a knowledge graph and graph attention network for the agricultural environment, combined with a dynamic residue decay model, the problem of predicting the spread of pests and diseases and pesticide residues in multi-crop intercropping patterns was solved, realizing intelligent and precise plant protection management and reducing the risk of pesticide residue exceeding standards and disease spread.
Patent Information
- Application Number
- CN202611226602.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-13
- Publication Date
- 2026-11-20
AI Technical Summary
Existing agricultural pest and disease question-and-answer systems and plant protection decision-making methods lack the ability to systematically predict the transmission paths and risks of pests and diseases in multi-crop intercropping and relay cropping scenarios. The prediction accuracy of pesticide residue safety interval is limited, and the dynamic interaction of soil microbial activity and environmental factors during pesticide degradation is not considered, making it difficult for farmers to make optimal plant protection decisions.
We construct a knowledge graph based on the agricultural environment, combine graph attention networks and dynamic residue decay models, dynamically adjust the degradation rate through real-time meteorological data and soil microbial activity, predict the risk of pest and disease transmission and pesticide residues, and output personalized action suggestions.
It enables intelligent and precise plant protection management under multi-crop intercropping, reduces the risk of excessive pesticide residues and disease spread, and improves user decision-making efficiency and the collaborative efficiency and safety of regional plant protection management.
Smart Images

Figure CN123140474A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart agriculture technology, and in particular to a method for tracing the source of pests and diseases based on a knowledge graph of the agricultural environment. Background Technology
[0002] Existing agricultural pest and disease question-and-answer systems and plant protection decision-making methods primarily focus on independent modeling of single crops, exhibiting significant limitations in intercropping and relay cropping scenarios. On one hand, traditional methods only address the control of fields where pests and diseases have been discovered, lacking the systematic ability to predict the spread paths and risks of pests and diseases to neighboring crops. This makes it difficult for farmers to promptly assess the threat of disease spread and take preventative measures after disease discovery. On the other hand, the determination of pesticide residue safety intervals is usually based on fixed numbers of days indicated on pesticide packaging, failing to consider the dynamic impact of real-time environmental conditions such as temperature and rainfall on pesticide degradation rates after application, leading to a disconnect between the safe harvest date and actual residue levels. This decision-making contradiction between preventing spread and ensuring safety makes it difficult for farmers to make optimal plant protection decisions in complex field environments with multiple crops coexisting. Therefore, an intelligent method that can simultaneously solve the coupling problem of spread risk prediction and dynamic residue early warning is urgently needed.
[0003] In the field of agricultural plant protection, some studies have attempted to integrate pest and disease control knowledge by constructing knowledge graphs or to use machine learning models for pest and disease identification and pesticide residue prediction. However, existing solutions generally have the following shortcomings: First, knowledge graph construction is mostly limited to the static association between pests and diseases and pesticides, lacking a detailed characterization of the dynamic interaction of soil microbial activity and environmental factors during pesticide degradation, resulting in limited accuracy in predicting the safe interval period; second, decision-making models are usually designed for independent operation of individual fields, without considering the lateral migration of pesticide residues between adjacent fields due to rainfall runoff. When residues from upstream fields enter downstream fields with the water flow, the actual residue concentration will be higher than the local degradation prediction value, causing the safe interval period to be underestimated; third, the spatial connectivity between fields is mostly recorded using static topology, which cannot dynamically adjust the catchment area according to the micro-topographical conditions and soil infiltration status of each rainfall event, affecting the accuracy of the migration contribution estimation. Summary of the Invention
[0004] This application provides a knowledge graph-based method for tracing the source of pests and diseases in agricultural environments, which effectively solves the contradiction between preventing the spread of pests and ensuring safety in multi-crop intercropping patterns, significantly improves user decision-making efficiency, reduces the dual risks of excessive pesticide residues and disease spread, and realizes intelligent and precise plant protection management.
[0005] This application provides a knowledge graph-based method for tracing the origins of pests and diseases in the agricultural environment, including: S1 constructs a knowledge graph of agricultural pests and diseases, cross-crop transmission, and pesticide residue metabolism, keeping the total size of the knowledge graph within 800MB and storing it in a lightweight graph database on the edge device. S2: The user takes pictures of diseased crops and describes the disease characteristics. The MiniCPM-V4.5 model performs visual recognition. The user draws the field layout on the screen and marks the crop varieties and infection locations. The user enters the pesticide application information. The end device obtains real-time and forecast weather data via GPS. S3 constructs a transmission risk graph with crop regions as nodes and distance and vector diffusion capacity as edge weights; with infected regions as seed nodes, it uses a graph attention network to calculate the infection probability of each region and combines the incubation period of pests and diseases to predict the time window for symptom appearance. S4. Obtain pesticide half-life reference values and degradation rate coefficient tables from the knowledge graph, calculate the degradation rate based on daily temperature and rainfall, iteratively calculate the residual concentration until it is lower than the maximum residue limit, obtain the dynamic safety interval and compare it with the labeled value to generate an early warning signal. S5, the joint optimizer outputs action suggestions based on the level of propagation risk and the residual warning color, according to different scenarios.
[0006] Preferably, the method of calculating the infection probability of each region using a graph attention network specifically includes: setting the initial feature vectors of crop region nodes in all transmission risk graphs as variety codes, area, and infection markers; using infected regions as seed nodes for each edge, calculating an attention coefficient; this coefficient is obtained by concatenating the node feature vectors after weight transformation and then passing them through a nonlinear activation function; normalizing the attention coefficients to obtain attention weights; weighting and summing the new features of a node with the features of other nodes according to the attention weights and passing them through an activation function; after multiple layers of message passing, each node obtains an updated feature vector, and then outputs the infection probability through a fully connected layer and a sigmoid function.
[0007] Preferably, the iterative calculation of the residual concentration until it is below the maximum residue limit includes: obtaining the pesticide half-life reference value and degradation rate coefficient table from the end-side knowledge graph, reading the daily average temperature and rainfall, calculating the temperature correction factor and rainfall correction factor, and then calculating the daily degradation rate, substituting it into the exponential decay formula to iteratively calculate the residual concentration daily until the residual concentration is below the maximum residue limit; if the standard is not met by the end of the next 7-day forecast, the historical average meteorological value for the same period is used for extrapolation, and the number of days required to meet the standard is recorded as the dynamic safety interval.
[0008] Preferably, the comparison to generate the early warning signal specifically includes: S41, adding nodes for degrading bacteria genera, soil enzyme activity, root exudate types, and soil physicochemical properties, as well as relationships between bacteria that promote degradation, bacteria that inhibit degradation, and the activity range of related microorganisms, to the knowledge graph as an extended knowledge graph; S42, reading pH, EC, temperature, and humidity data uploaded by soil sensors, and estimating the microbial degradation potential coefficient based on the sensor readings and the typical microbial activity range of the crop soil type in the graph; S43, using the microbial degradation potential coefficient as an additional multiplier to correct the daily degradation rate, iterating daily. The residual concentration is calculated until it falls below the MRL, and the local dynamic safety interval is output. In S44, each end device uses a graph attention network to calculate the probability vector of pest and disease spread to eight directions, and uploads it to the edge server after differential privacy noise addition. The server reconstructs the regional risk heat map through inverse distance weighted interpolation, identifies super-spreading nodes, and clusters them to form joint prevention groups. In S45, the server collects the anonymized safe harvest start date of each field after differential privacy processing, determines the unified application date by solving an integer programming problem that minimizes the maximum delay, and outputs differentiated suggestions based on the differences in the dynamic safety interval of each field.
[0009] Preferably, the estimation of the microbial degradation potential coefficient specifically includes: matching the measured pH, EC, temperature, and humidity data from soil sensors with the typical microbial activity range of the corresponding crop-soil type in the extended knowledge graph, and determining the microbial degradation potential coefficient according to the degree of matching. The coefficient reflects the actual degree of acceleration or inhibition of pesticide degradation by soil microorganisms.
[0010] Preferably, the daily iterative calculation of the residual concentration until it falls below the MRL includes: using the microbial degradation potential coefficient M as an additional multiplier to correct the daily degradation rate. From the initial concentration of the drug Initially, substitute the values into the corrected exponential decay formula each day. Iterative calculation of residual concentration until The number of days required to meet the target is the local dynamic safety interval. If the target is not met by the end of the next 7 days, the historical average meteorological value for the same period will be used in conjunction with the current M value to continue extrapolating daily until the residual concentration is lower than the MRL; among which, This is a temperature correction factor. For rainfall correction factor, Microbial degradation potential coefficient, This is a reference value for the pesticide half-life. The residual concentration at the end of day t. for The residual concentration at the end of the day.
[0011] Preferably, the output local dynamic safety interval includes: S431, establishing two independent concentration recording sequences for the field: a vertical degradation sequence and a comprehensive residue sequence, and initializing the upstream migration contribution table, both starting from the initial pesticide application concentration; S432, reading the current day's rainfall, soil temperature and humidity, and the previous day's comprehensive residue concentration of all upstream fields daily as input data for migration calculation; S433, determining whether the current day's rainfall reaches the runoff initiation threshold, and if so, reading the migration proportion coefficient from the runoff-carrying rate lookup table, calculating the concentration increment of each path in conjunction with the upstream residue concentration and area dilution factor, and summing them; S434, updating the previous day's vertical sequence concentration to the current day's concentration after correcting the degradation rate. The following steps are performed: S435: The concentration of the composite sequence from the previous day is superimposed with the lateral migration contribution of the current day after the same degradation process, and this is taken as the final concentration for the day; S436: At the same time, it is checked whether the concentration of both sequences is lower than the MRL for the day, and the number of days when the standard is first met is recorded as the local independent safety interval and the composite safety interval. The iteration ends after both sequences meet the standard; S437: The difference between the composite and the local independent safety interval is calculated. If it is greater than or equal to two days, a yellow warning is triggered, and the number of days of delay, the upstream fields that made the main contribution, and the key rainfall dates are displayed; S438: The composite safety interval is uploaded to the edge server as the formal dynamic safety interval for subsequent joint prevention and control decisions, and the daily data of the two sequences is saved for local traceability.
[0012] Preferably, the two independent concentration recording sequences are specifically: a first sequence and a second sequence created for the user's field, wherein the first sequence records the theoretical residual changes affected only by local meteorological and microbial factors, and the second sequence records the actual residual changes after superimposed external migration inputs; at the same time, an upstream migration contribution table indexed by date is established, and storage slots are pre-allocated for each possible upstream field.
[0013] Preferably, the upstream field includes: collecting data along the field path using a nine-axis inertial measurement unit, generating a two-dimensional micro-topographic slope grid through Kalman filtering and caching it; taking soil moisture data before rainfall, combining it with field capacity and wilting coefficient in the extended knowledge graph, and classifying infiltration capacity into three levels: dry, wet, and saturated based on the current water content to water capacity ratio; using the field boundary point as the catchment endpoint, generating the theoretical catchment area by superimposing the measured two-dimensional micro-topographic slope grid and common elevation data, and using the steepest slope method to backtrack; calculating potential upstream fields. The average flow velocity is estimated by combining the water flow length from the center point along the steepest slope path to the boundary of the field with the Manning coefficient and infiltration attenuation coefficient corresponding to the soil infiltration level. The flow time is obtained by dividing the confluence length by the flow velocity. Fields with a flow time of less than half the duration of rainfall are selected as the effective upstream field set. The newly generated effective upstream field set is compared with the topological relationship between fields. Newly generated fields are inserted into the migration contribution table slots and the application records are queried anonymously. Fields not selected are frozen and marked as having no contribution. Subsequent migration calculations are only performed on fields in the dynamic set of the day.
[0014] Preferably, the effective upstream field set is determined by the following method: obtaining the corresponding Manning coefficient and infiltration attenuation coefficient from the extended knowledge graph based on the soil infiltration level and soil texture; extracting the average slope of the confluence path by combining a two-dimensional micro-topographic slope grid and estimating the hydraulic radius; calculating the average surface water flow velocity based on the Manning formula, and then obtaining the water flow time; and selecting fields with a water flow time less than half of the rainfall duration as the effective upstream field set.
[0015] One or more technical solutions provided in this application have at least the following technical effects or advantages: By constructing a knowledge graph integrating cross-crop transmission and pesticide residue metabolism, and combining graph attention networks with a dynamic residue decay model, the system achieves joint optimization decision-making for transmission risk prediction and residue early warning. The system can automatically identify pests and diseases, predict the probability of infection in neighboring crops and the timing of symptom onset, and dynamically calculate the safety interval based on real-time meteorological data, outputting tiered action recommendations. All decisions are accompanied by data traceability links to ensure verifiability. This method effectively resolves the contradiction between preventing spread and ensuring safety in multi-crop intercropping patterns, significantly improves user decision-making efficiency, reduces the dual risks of pesticide residue exceeding limits and disease spread, and achieves intelligent and precise plant protection management.
[0016] By introducing soil microbial degradation potential factors, the prediction of safe interval periods becomes more accurate, and the degradation rate can be dynamically adjusted based on the actual microbial activity in the field, effectively reducing the risk of pesticide residue exceeding standards. Simultaneously, leveraging federated learning and differential privacy technologies, cross-field joint prevention and control are achieved without disclosing users' original data. Super-propagation nodes are automatically identified, and application and harvesting times are coordinated to block the chain of pest and disease spread. Personalized suggestions are output based on the differences in each field, and dynamic replacement of more suitable pesticide varieties is supported, achieving continuous evolution of swarm intelligence and significantly improving the collaborative efficiency and safety of regional plant protection management.
[0017] By introducing a parallel iterative computation mechanism for lateral migration of pesticide residues, the contribution of pesticide residue migration from upstream fields via surface runoff is incorporated into the degradation model, making the predicted safety interval period more closely resemble real-world field scenarios. The system outputs two safety interval periods: one independent and one integrated, and automatically determines the significance of the migration impact, triggering a yellow alert and providing the delay days and information on major pollution sources, effectively avoiding the risk of residue exceedances due to exogenous pesticide input. This solution seamlessly integrates with federated learning-based joint prevention and control decision-making, providing more accurate and differentiated basis for cross-field collaborative pesticide application and harvesting, significantly improving the scientific rigor and safety of regional plant protection management.
[0018] By introducing real-time micro-topography perception and dynamic catchment area identification mechanisms, the fixed upstream field determination method in static maps is replaced, making the estimation of lateral migration residues more consistent with actual rainfall-runoff processes. The system can dynamically screen effective upstream fields based on daily measured micro-topography slope, soil infiltration capacity, and rainfall conditions, avoiding overestimation or underestimation of migration contributions due to misjudgments caused by static topological relationships. This significantly improves the accuracy of comprehensive safety interval prediction, reduces the risk of residue exceedances caused by exogenous pesticide input, reduces unnecessary computational overhead, and enhances the adaptability of the end-side system under complex terrain and variable rainfall conditions. Attached Figure Description
[0019] Figure 1 This is a flowchart illustrating a knowledge graph-based method for tracing the origins of pests and diseases in agricultural environments, according to an embodiment of the present invention. Detailed Implementation
[0020] To facilitate understanding of the present invention, a more complete description of this application will be given below with reference to the accompanying drawings, which illustrate preferred embodiments of the invention. However, the invention can be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided to enable a more thorough and complete understanding of the disclosure of the present invention.
[0021] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains; the terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to limit the invention; the terminology used herein includes any and all combinations of one or more of the associated listed items.
[0022] Example 1: Figure 1 This is a flowchart illustrating a knowledge graph-based method for tracing the origins of pests and diseases in the agricultural environment, according to an embodiment of the present invention.
[0023] like Figure 1 As shown, a knowledge graph-based method for tracing the origins of agricultural pests and diseases includes the following steps: S1 constructs a knowledge graph of agricultural pests and diseases, cross-crop transmission, and pesticide residue metabolism, keeping the total size of the knowledge graph within 800MB and storing it in a lightweight graph database on the edge device.
[0024] The construction of the knowledge graph includes obtaining entities related to pests, crops, symptoms, natural enemies, pesticides, application methods, occurrence environment, region, and time from publicly available pest and disease texts, as well as relationships between affected crops, symptom manifestations, natural enemy suppression, pesticides, application methods, occurrence environment, occurrence region, and occurrence time. This information is stored in the Neo4j graph database and supports Cypher query statements.
[0025] Building upon this foundation, a new subgraph for cross-crop transmission has been added, including nodes for transmission vectors and host crops (all potentially infected crop varieties). Host jump relationships, transmission capacity relationships, and incubation period relationships have also been added, with each pest / disease node including a diffusion radius attribute. A new subgraph for pesticide residue metabolism has also been added, including nodes for pesticide active ingredients, metabolites, environmental factors (daily average temperature, sunshine duration, cumulative rainfall), and crop varieties. Relationships regarding the impact of degradation rate on half-life reference values and safety interval standard values (referencing GB2763) have been added, with each pesticide node including a degradation rate correction coefficient table.
[0026] S2: The user takes pictures of diseased crops and describes the disease characteristics, and the MiniCPM-V4.5 model performs visual recognition; the user draws the field layout on the screen and marks the crop varieties and infection locations, enters the pesticide application information, and the end device obtains real-time and forecast weather data through GPS.
[0027] Specifically, users take pictures of diseased crops and input text descriptions. The edge interface resizes the images to 1344×1344 pixels and normalizes them. The text is then standardized in terms of terminology before being input into the Distillation MiniCPM-V4.5 model. The visual encoding layer of the Distillation MiniCPM-V4.5 model processes the images, outputting feature images and visual recognition results; the text encoding layer processes the text, outputting feature text. The model ultimately outputs the types of pests and diseases and their confidence levels. Users can draw polygons on the edge interface (a mobile application developed based on the BeeWare framework) using their fingers or mouse, labeling the crop varieties planted in each area and marking the locations of discovered pests and diseases. The system automatically calculates the center coordinates and boundaries of each area, as well as the Euclidean distance between areas, constructing the field topology.
[0028] Users manually enter application information, including pesticide trade name, active ingredient, dilution ratio, and application date. The system automatically looks up the corresponding half-life reference value, safety interval standard value (referencing GB2763), and maximum residue limit (MRL) from the edge-side lightweight graph database (SQLite + adjacency list). The edge device obtains location information via GPS positioning. If a network connection is available, it automatically calls the local meteorological API to obtain daily high and low temperatures, rainfall, sunshine duration, and the weather forecast for the next 7 days. If in offline mode, it reads locally stored historical meteorological data for the past 7 days and extrapolates the subsequent days using the historical average for the same period. All input data records its source and timestamp to ensure data traceability.
[0029] For example, a user finds insect holes in the leaves of a cornfield. They open a smart plant protection app on their phone, take a picture of the leaves, and write "Insect holes in corn leaves, soybeans planted nearby" in the input box. The app scales the image to 1344×1344 pixels and normalizes it, simultaneously standardizing the treatment to control, and then feeds it into the Distillation MiniCPM-V4.5 model. A few seconds later, the screen displays the recognition result: Asian corn borer, 93.3% confidence level. The user then outlines their plot on the screen, marking the corn area, soybean area, and adjacent open space, and confirms the location of the pest in the corn area. They find the pesticide bottle, input chlorantraniliprole, diluted 2000 times, and the application information for the pesticide sprayed that morning. The phone automatically uses GPS to locate the user's home in Sanya, Hainan. With internet access, it immediately retrieves the temperature and rainfall records for the past week, as well as the seven-day weather forecast, with all data labeled with its source and time.
[0030] S3 constructs a transmission risk graph with crop regions as nodes and distance and media diffusion capacity as edge weights; using infected regions as seed nodes, it calculates the infection probability of each region using a graph attention network, and combines the incubation period of pests and diseases to predict the time window for symptom appearance.
[0031] Specifically, each crop region drawn by the user is used as a node, with node attributes including crop variety, area, and whether it is infected (0 or 1). The initial edge weight is the shortest straight-line distance between regions, which is then adjusted based on the diffusion ability of the main vectors of pests and diseases: if it is airborne transmission, the edge weight is multiplied by an attenuation coefficient. If the spread is by insects, the edge weights are multiplied by the insect's flight capability decay curve (effective within 2 kilometers, then set to a minimum value beyond that); if the spread is by rain splash, the edge weights are multiplied by a linear decay within 500 meters. The corrected edge weights constitute the adjacency matrix of the propagation risk graph.
[0032] Infected regions are used as seed nodes (infection flag is 1), and the initial infection flag of all other nodes is 0. The initial feature vector of all nodes is set to [variety code, area, infection flag], with the variety code using one-hot encoding or embedding. Graph Attention Network (GAT) is used for message passing: for each edge (i,j), the attention coefficient is calculated. ,in Let be the feature vector of node i, W be the learnable weight matrix, a be the attention vector, and ∥ denote concatenation. Attention weights are obtained through softmax normalization. The new feature of node i is ,in This is the ELU activation function. After multiple layers (usually two layers) of message passing, each node receives its updated feature vector. Then, the infection probability is output through a fully connected layer and a sigmoid function: Where w and b are learnable parameters. Set the threshold: A value >0.3 is marked as high risk, and 0.1≤ ≤0.3 is considered medium risk. A value of <0.1 indicates low risk.
[0033] By querying the incubation period of the pest or disease from the map and combining it with the current date, the predicted time range for the earliest appearance of symptoms in high-risk areas is from the current date plus the minimum incubation period to the current date plus the maximum incubation period. This time window is used for subsequent decision-making.
[0034] S4. Obtain the pesticide half-life reference value and degradation rate coefficient table from the knowledge graph, calculate the degradation rate based on daily temperature and rainfall, iteratively calculate the residual concentration until it is lower than the maximum residue limit, obtain the dynamic safety interval period and compare it with the labeled value to generate an early warning signal.
[0035] Specifically, reference values for pesticide half-life are obtained from end-side knowledge graphs. (Adapted from pesticide registration data or NY / T2882.2-2016 standard, stored in the half-life reference value relationship node) and degradation rate coefficient table (temperature correction factor) Rainfall correction factor The leaching rates are fitted from the Arrhenius Q10 model and simulated rainfall leaching experiments, respectively, and are discretized and stored in the graph. Let the initial concentration be... The dosage and dilution ratio of the formulation are input by the user, while the content of the active ingredient is obtained from the pesticide node in the graph.
[0036] Read the daily average temperature T and rainfall R, and calculate the temperature correction factor. ( (This is a value specific to this pesticide, default 2.58). Refer to the table to obtain the rainfall correction factor. (When R>20mm / day) =1.2, otherwise =1). Calculate the daily degradation rate: Substituting into the exponential decay formula for iterative calculation: ,in Let be the residual concentration at the end of day t. Repeat the iteration until... ≤MRL (MRL value is derived from GB2763, obtained from the relationship node of the standard value of the safety interval in the map); if the standard is not met by the end of the next 7 days, the historical average meteorological value for the same period is extrapolated. The number of days required to meet the standard is recorded as the dynamic safety interval.
[0037] Compare this number of days with the fixed safety interval indicated on the pesticide packaging (both are GB2763 standard values, stored in the graph): if the dynamic safety interval is less than or equal to the fixed safety interval, output a green alert (harvesting is permitted); otherwise, output a red alert (it is recommended to postpone harvesting by X days, where X = dynamic safety interval). (Fixed safety interval), the warning signal is accompanied by a standard number (GB2763) and a data traceability link (pointing to the source of the half-life, the source of the MRL and the source of the meteorological data on the day in the map).
[0038] S5, the joint optimizer outputs action suggestions based on the level of propagation risk and the residual warning color, according to different scenarios.
[0039] The action recommendations include delaying harvesting, setting up isolation zones, replacing pesticides with low-residue agents, or localized removal.
[0040] The technical solutions described in the embodiments of this application above have at least the following technical effects or advantages: By constructing a knowledge graph integrating cross-crop transmission and pesticide residue metabolism, and combining graph attention networks with a dynamic residue decay model, the system achieves joint optimization decision-making for transmission risk prediction and residue early warning. The system can automatically identify pests and diseases, predict the probability of infection in neighboring crops and the timing of symptom onset, and dynamically calculate the safety interval based on real-time meteorological data, outputting tiered action recommendations. All decisions are accompanied by data traceability links to ensure verifiability. This method effectively resolves the contradiction between preventing spread and ensuring safety in multi-crop intercropping patterns, significantly improves user decision-making efficiency, reduces the dual risks of pesticide residue exceeding limits and disease spread, and achieves intelligent and precise plant protection management.
[0041] Example 2: In Example 1, the dynamic early warning of pesticide residues relied solely on meteorological factors (temperature, rainfall) to correct the degradation rate, failing to consider the accelerating or inhibiting effects of soil microbial activity on pesticide degradation. This resulted in deviations in the predicted safe interval under different soil conditions. Furthermore, the joint optimization decision-making was only applied to individual fields, lacking a cross-field collaborative mechanism, thus failing to effectively block the transmission chain of pests and diseases between adjacent fields. Additionally, users' reluctance to share sensitive data limited the implementation of regional joint prevention and control. To address these issues, it is necessary to introduce soil microbial sensing capabilities to refine the degradation model and leverage federated learning to achieve cross-field joint prevention and control while protecting privacy, thereby further improving the accuracy of decision-making and the effectiveness of regional control.
[0042] In some embodiments, compared to generating a warning signal, step S4 further includes: S41 adds nodes for degrading bacteria genera, soil enzyme activity, root exudate types, and soil physicochemical properties, as well as relationships between bacteria that promote degradation, bacteria that inhibit degradation, and the activity range of related microorganisms, to the knowledge graph as an extended knowledge graph.
[0043] S42 reads pH, EC, temperature, and humidity data uploaded by the soil sensor, and estimates the microbial degradation potential coefficient based on the sensor readings and the typical microbial activity range of the crop soil type in the spectrum.
[0044] Specifically, a low-cost soil probe (integrating pH, EC, temperature, and humidity sensors) is inserted into a representative location in the field (10-15 cm deep). The end-side device automatically reads and records the sensor data, and all readings are labeled with the sensor serial number, reading time, and geographical location. Based on the crop varieties currently planted in the field and the correspondence between the crop and soil type in the extended knowledge graph, the typical microbial activity range under this combination is queried (given by the relationship between soil physicochemical indicators → correlation → microbial activity range).
[0045] The measured pH, EC, soil temperature, and soil moisture values from the sensor were matched with the activity ranges in the chromatogram: if all four indicators fell within the high activity range, the microbial degradation potential coefficient M = 1.5; if one or two indicators deviated from the high activity range but did not fall into the low activity range, M = 1.0; if three or more indicators deviated from the high activity range or any one fell into the low activity range, M = 0.7. The value of M ranges from 0.5 to 2.0, reflecting the actual degree of acceleration or inhibition of pesticide degradation by soil microorganisms.
[0046] S43 uses the microbial degradation potential coefficient as an additional multiplier to correct the daily degradation rate, iterates the residual concentration daily until it is below MRL, and outputs the local dynamic safety interval.
[0047] The formula for calculating the daily degradation rate is as follows: From the initial concentration of the drug Initially, substitute the values into the corrected exponential decay formula each day. The residual concentration is calculated iteratively. The number of days required to reach the target is recorded as the local dynamic safety interval. And calculate the safe harvest start date = application date + If the forecast for the next 7 days still fails to meet the target, then the historical average meteorological value for the same period will be used in combination with the current M value to continue extrapolating.
[0048] S44, each end-side device uses a graph attention network to calculate the probability vector of pest and disease spread in eight directions, and uploads it to the edge server after differential privacy noise addition; the server reconstructs the regional risk heat map through inverse distance weighted interpolation, identifies super-propagation nodes and clusters them to form joint prevention groups.
[0049] S45, the server collects the anonymized secure harvest start dates of each field after differential privacy processing, determines the unified application date by solving an integer programming problem that minimizes the maximum delay, and outputs differentiated recommendations based on the differences in the dynamic safety intervals of each field.
[0050] The technical solutions described in the embodiments of this application above have at least the following technical effects or advantages: By introducing soil microbial degradation potential factors, the prediction of safe interval periods becomes more accurate, and the degradation rate can be dynamically adjusted based on the actual microbial activity in the field, effectively reducing the risk of pesticide residue exceeding standards. Simultaneously, leveraging federated learning and differential privacy technologies, cross-field joint prevention and control are achieved without disclosing users' original data. Super-propagation nodes are automatically identified, and application and harvesting times are coordinated to block the chain of pest and disease spread. Personalized suggestions are output based on the differences in each field, and dynamic replacement of more suitable pesticide varieties is supported, achieving continuous evolution of swarm intelligence and significantly improving the collaborative efficiency and safety of regional plant protection management.
[0051] Example 3: In Example 2, the accuracy of safety interval prediction and regional collaborative prevention and control capabilities were improved by introducing a soil microbial degradation potential coefficient and a federated learning joint prevention and control mechanism. However, Example 2 assumed that the pesticide residue degradation process in each field was independent and did not consider the lateral migration of residues from upstream fields to downstream fields caused by surface runoff or ditch connectivity due to rainfall. In actual field environments, pesticide residues from upstream fields may enter downstream fields with water flow, causing the actual residue concentration in downstream fields to be higher than the predicted value based solely on local degradation. This leads to an underestimation of the safety interval and increases the risk of residue exceeding standards. Furthermore, the impact of this external migration varies with rainfall intensity and field topography, requiring dynamic tracking and quantification.
[0052] In some embodiments, step S43, outputting the local dynamic safety interval, further includes: S431 established two independent concentration recording sequences for the field: a vertical degradation sequence and a comprehensive residue sequence, and initialized an upstream migration contribution table, both starting from the initial concentration of pesticide application.
[0053] Specifically, after the user enters the application information, two independent residual concentration recording sequences are created for the field. The first sequence, named the vertical degradation sequence, specifically records the theoretical residual changes of the field under the influence of its own meteorological and microbial factors. The second sequence, named the comprehensive residual sequence, records the actual residual changes after superimposing all external migration inputs. An upstream migration contribution table is established in the end-side memory. This table is indexed by date and pre-allocates storage slots for each possible upstream field to temporarily store the migration inputs required for future daily calculations. Initially, the values of the first day of both sequences are equal to the initial concentration of the pesticide applied by the user.
[0054] S432 reads the daily rainfall, soil temperature and humidity, and the previous day's comprehensive residual concentration of all upstream fields as input data for migration calculation.
[0055] Among them, upstream fields are identified by querying the field topology relationships recorded in the local knowledge graph, and identifying all upstream fields that are spatially higher than the main fields and have surface runoff or ditch connectivity.
[0056] S433: Determine whether the daily rainfall has reached the runoff initiation threshold. If so, read the migration ratio coefficient from the runoff-carrying rate lookup table, and calculate and sum the concentration increments of each path by combining the upstream residual concentration and area dilution factor.
[0057] Specifically, the actual rainfall for the day is read and compared with a pre-stored runoff initiation threshold (20mm daily rainfall): if the rainfall is below the threshold, the lateral migration contribution for the day is recorded as zero, and migration estimation is skipped; if the rainfall reaches or exceeds the threshold, the physical parameters (surface slope difference, soil texture, vegetation cover, and ditch length) between the main field and each upstream field are extracted from the extended knowledge graph. Based on the amount of rainfall for the day and the current soil moisture content, the migration ratio coefficient is directly read from the pre-stored runoff-carrying rate lookup table (discreteized according to typical soil types and rainfall intensity) at the end side. For each upstream field, obtain its composite residual concentration at the end of the previous day. (Obtained via the federated learning communication module, differential privacy processed), calculate the concentration increment for a single path. (in, (The dilution factor is determined by the area ratio of upstream fields to downstream fields). The total lateral migration contribution for the day is obtained by arithmetically summing the concentration increments from all upstream paths. This value will be used for subsequent updates of the integrated residual sequence.
[0058] S434 updates the previous day's concentration of the vertical sequence to the end value of the current day after adjusting the degradation rate; and adds the lateral migration contribution of the current day to the previous day's concentration of the comprehensive sequence after the same degradation to obtain the end concentration of the current day.
[0059] Specifically, the final concentration the day before reading the vertical degradation sequence. Substitute this into the daily degradation rate, which has been corrected for meteorological temperature, rainfall, and microbial degradation potential coefficient. Calculate the concentration after degradation. The final concentration of the vertical degradation sequence for the day is taken as the end concentration, without considering any external input. The final concentration of the integrated residual sequence for the previous day is then read. Substituting the same corrected degradation rate Degradation calculations were performed to obtain the intermediate value after degradation. Then, the total lateral migration contribution Mtotal calculated in step three is directly added to this intermediate value to obtain the final concentration of the comprehensive residual sequence for that day. Thus, the two sequences obtained their respective end-of-day concentrations at the end of the same day. The vertical sequence represents the theoretical state affected only by local degradation, while the composite sequence represents the actual state after the superposition of exogenous pollution.
[0060] S435, simultaneously check whether the concentration of both sequences is lower than the MRL on the current day, and record the number of days when the standard is first met as the local independent safety interval and the comprehensive safety interval, respectively. The iteration is terminated after both sequences meet the standard.
[0061] S436 calculates the difference between the overall and local independent safety intervals. If it is greater than or equal to two days, a yellow alert is triggered, displaying the number of days of delay, the main contributing upstream fields, and the key rainfall dates.
[0062] S437 uploads the comprehensive security interval as the formal dynamic security interval to the edge server for subsequent joint defense decisions, while saving daily data of the two sequences for local traceability.
[0063] The technical solutions described in the embodiments of this application above have at least the following technical effects or advantages: By introducing a parallel iterative computation mechanism for lateral migration of pesticide residues, the contribution of pesticide residue migration from upstream fields via surface runoff is incorporated into the degradation model, making the predicted safety interval period more closely resemble real-world field scenarios. The system outputs two safety interval periods: one independent and one integrated, and automatically determines the significance of the migration impact, triggering a yellow alert and providing the delay days and information on major pollution sources, effectively avoiding the risk of residue exceedances due to exogenous pesticide input. This solution seamlessly integrates with federated learning-based joint prevention and control decision-making, providing more accurate and differentiated basis for cross-field collaborative pesticide application and harvesting, significantly improving the scientific rigor and safety of regional plant protection management.
[0064] Example 4: In Example 3, a parallel iterative computation mechanism for lateral migration residues was introduced to establish a dual sequence of vertical degradation and comprehensive residues, enabling dynamic tracking of pesticide residue migration from upstream fields via surface runoff. However, Example 3 relies on pre-stored static field topology relationships in an extended knowledge graph to identify upstream fields. These static relationships are entered once during field registration and cannot reflect the dynamic changes in the actual catchment path during each rainfall event. Different rainfall intensities, prior soil moisture content, and micro-topographic differences can lead to significant deviations between the actual catchment area and the static map record. For example, runoff initiation is difficult under dry soil conditions, while the catchment area expands under saturated soil conditions. The static topology cannot adaptively adjust, resulting in systematic errors in the estimation of migration contribution. Furthermore, the static map lacks a detailed characterization of the internal micro-topographic slope of the fields, making it impossible to calculate water flow time to screen upstream fields that can truly complete transport during rainfall events.
[0065] In some embodiments, in step S432, the upstream field further includes: 2A: Data is collected by sliding a nine-axis inertial measurement unit along the field path, and a two-dimensional micro-topographic slope grid is generated and cached after Kalman filtering.
[0066] Specifically, every morning, the nine-axis inertial measurement unit of the end-side device is activated at a set time. It is then slid three times at a constant speed along a fixed measurement path (from the highest point to the lowest point of the field), closely pressed against the field surface. Each slide records the three-axis acceleration and gyroscope angular velocity data. The device's built-in micro-topography algorithm fuses the three inertial measurements using Kalman filtering to eliminate noise caused by hand shake and small stones on the ground, outputting the average slope angle and azimuth angle of the field in that measurement direction. If the field is irregularly shaped or large, the user is prompted to measure along multiple cross-sections in different directions. Finally, a two-dimensional micro-topography slope grid map of the field's interior is generated through interpolation. This grid map is stored in the end-side cache as the underlying topographic data for all water runoff calculations that day.
[0067] 2B. Take soil moisture data before rainfall, combine it with field water holding capacity and wilting coefficient in the extended knowledge graph, and classify infiltration capacity into three levels: dry, wet, and saturated based on the ratio of current water content to water holding capacity.
[0068] Among them, field water holding capacity (obtained by field plot irrigation method) and wilting coefficient (obtained by pressure film meter method) are node values of soil physicochemical properties.
[0069] 2C, taking the field boundary point as the water catchment endpoint, uses the steepest slope method to backtrack and generate the theoretical water catchment area based on the superposition of measured two-dimensional micro-topographic slope grid and public elevation data.
[0070] Among them, public elevation data overlay is publicly available regional digital elevation model (DEM) raster data.
[0071] 2D: Calculate the water flow length from the center point of the potential upstream field along the steepest slope path to the boundary of the main field. Combine the Manning coefficient and infiltration attenuation coefficient corresponding to the soil infiltration level to estimate the average flow velocity. Divide the confluence length by the flow velocity to obtain the water flow time. Select fields with water flow time less than half of the rainfall duration as the effective upstream field set.
[0072] The average flow velocity was estimated by combining the Manning coefficient and infiltration attenuation coefficient corresponding to the soil infiltration level. This was based on the soil infiltration capacity level (dry, wet, saturated) determined in step S432. The Manning roughness coefficient n corresponding to the soil texture of the field was retrieved from the extended knowledge graph (from the standard parameter table of "Soil Physics", sandy soil n≈0.015, loam n≈0.025, clay n≈0.035). At the same time, the corresponding infiltration attenuation coefficient λ was obtained according to the infiltration level: λ=0.3 for dry state (strong infiltration, large flow velocity attenuation), λ=0.6 for wet state, and λ=0.9 for saturated state (almost no infiltration loss, small flow velocity attenuation).
[0073] Combining the two-dimensional micro-topographic slope grid generated in the S2A step, the system extracts the average slope S (obtained by dividing the elevation difference by the confluence length L) along the runoff path. The average flow velocity of the surface water is estimated using the Manning formula. Where R is the hydraulic radius, which is approximately the flow depth h for thin surface runoff (obtained by integrating the difference between the daily rainfall intensity and the infiltration rate, typically 0.005-0.02m).
[0074] Substituting the Manning coefficient n and infiltration attenuation coefficient λ obtained from the query, along with the slope S extracted from the micro-topography grid and the estimated hydraulic radius R, into the formula, the average flow velocity v along the confluence path is calculated. This velocity will be used to calculate the flow time in the S2B step: Flow time = Confluence length L ÷ Average flow velocity v. The Manning coefficient is derived from the soil texture node in the atlas (with standard source annotation), the infiltration attenuation coefficient is derived from the atlas infiltration grade mapping table, and the slope is derived from the IMU measured grid, ensuring the traceability of the calculation process.
[0075] Combining the two-dimensional micro-topographic slope grid generated in the S2A step, the average slope S (obtained by dividing the elevation difference by the confluence length L) on the confluence path is extracted. The average flow velocity of surface water is estimated according to the Manning formula: the contribution table slots are moved and the application records are queried anonymously. Fields not selected are frozen and marked as non-contributing. Subsequent migration calculations are only performed on fields in the dynamic set of the current day.
[0076] 2E: The newly generated set of valid upstream fields is compared with the topological relationships between fields. Newly generated fields are inserted into the migration contribution table slots and pesticide application records are queried anonymously. Fields not selected are frozen and marked as having no contribution. Subsequent migration calculations are only performed on fields in the dynamic set of the day.
[0077] The technical solutions described in the embodiments of this application above have at least the following technical effects or advantages: By introducing real-time micro-topography perception and dynamic catchment area identification mechanisms, the fixed upstream field determination method in static maps is replaced, making the estimation of lateral migration residues more consistent with actual rainfall-runoff processes. The system can dynamically screen effective upstream fields based on daily measured micro-topography slope, soil infiltration capacity, and rainfall conditions, avoiding overestimation or underestimation of migration contributions due to misjudgments caused by static topological relationships. This significantly improves the accuracy of comprehensive safety interval prediction, reduces the risk of residue exceedances caused by exogenous pesticide input, reduces unnecessary computational overhead, and enhances the adaptability of the end-side system under complex terrain and variable rainfall conditions.
[0078] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. For those skilled in the art, the present invention can have various modifications and variations. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A knowledge graph-based method for tracing the origins of pests and diseases in agricultural environments, characterized in that, include: S1 constructs a knowledge graph of agricultural pests and diseases, cross-crop transmission, and pesticide residue metabolism, keeping the total size of the knowledge graph within 800MB and storing it in a lightweight graph database on the edge device. S2: The user takes pictures of diseased crops and describes the disease characteristics. The MiniCPM-V4.5 model performs visual recognition. The user draws the field layout on the screen and marks the crop varieties and infection locations. The user enters the pesticide application information. The end device obtains real-time and forecast weather data via GPS. S3 constructs a transmission risk graph with crop regions as nodes and distance and vector diffusion capacity as edge weights; with infected regions as seed nodes, it uses a graph attention network to calculate the infection probability of each region and combines the incubation period of pests and diseases to predict the time window for symptom appearance. S4. Obtain pesticide half-life reference values and degradation rate coefficient tables from the knowledge graph, calculate the degradation rate based on daily temperature and rainfall, iteratively calculate the residual concentration until it is lower than the maximum residue limit, obtain the dynamic safety interval and compare it with the labeled value to generate an early warning signal. S5, the joint optimizer outputs action suggestions based on the level of propagation risk and the residual warning color, according to different scenarios.
2. The method for tracing the source of agricultural pests and diseases based on a knowledge graph of the agricultural environment according to claim 1, characterized in that, The method of calculating the infection probability of each region using a graph attention network specifically includes: setting the initial feature vectors of crop region nodes in all transmission risk graphs as variety codes, area, and infection markers; using infected regions as seed nodes for each edge, calculating the attention coefficient; this coefficient is obtained by concatenating the node feature vectors after weight transformation and then applying a nonlinear activation function; normalizing the attention coefficients to obtain attention weights; the new features of a node are obtained by weighted summation of the features of other nodes according to the attention weights and then applying an activation function; after multiple layers of message passing, each node obtains an updated feature vector, and then outputs the infection probability through a fully connected layer and a sigmoid function.
3. The method for tracing the source of agricultural pests and diseases based on a knowledge graph of the agricultural environment according to claim 1, characterized in that, The iterative calculation of residual concentration until it falls below the maximum residue limit includes: obtaining pesticide half-life reference values and degradation rate coefficient tables from the end-side knowledge graph; reading the daily average temperature and rainfall; calculating temperature correction factors and rainfall correction factors; calculating the daily degradation rate; substituting the data into the exponential decay formula to iteratively calculate the residual concentration daily until the residual concentration falls below the maximum residue limit; if the standard is not met by the end of the next 7-day forecast period, the historical average meteorological data for the same period is extrapolated, and the number of days required to meet the standard is recorded as the dynamic safety interval.
4. The method for tracing the source of agricultural pests and diseases based on a knowledge graph of the agricultural environment according to claim 1, characterized in that, The comparison to generate an early warning signal specifically includes: S41, adding nodes for degrading bacteria genera, soil enzyme activity, root exudate types, and soil physicochemical properties, as well as relationships between bacteria that promote degradation, inhibit degradation, and the activity range of related microorganisms, to the existing knowledge graph; S42, reading pH, EC, temperature, and humidity data uploaded by soil sensors, and estimating the microbial degradation potential coefficient based on sensor readings and the typical microbial activity range of the crop soil type in the graph; S43, using the microbial degradation potential coefficient as an additional multiplier to correct the daily degradation rate, and iteratively calculating daily. Calculate the residual concentration until it is below the MRL, and output the local dynamic safety interval; S44, each end device uses a graph attention network to calculate the probability vector of pest and disease spread to eight directions, and uploads it to the edge server after differential privacy noise addition; the server reconstructs the regional risk heat map through inverse distance weighted interpolation, identifies super-spreading nodes and clusters them to form joint prevention groups; S45, the server collects the anonymized safe harvest start date of each field after differential privacy processing, and determines the unified application date by solving the integer programming that minimizes the maximum delay; output differentiated suggestions based on the differences in the dynamic safety interval of each field.
5. The knowledge graph-based method for tracing the source of agricultural pests and diseases according to claim 4, characterized in that, The estimation of the microbial degradation potential coefficient specifically includes: matching the measured pH, EC, temperature, and humidity data from soil sensors with the typical microbial activity range of the corresponding crop-soil type in the extended knowledge graph, and determining the microbial degradation potential coefficient according to the degree of matching. The coefficient reflects the actual degree of acceleration or inhibition of pesticide degradation by soil microorganisms.
6. The method for tracing the source of agricultural pests and diseases based on a knowledge graph of the agricultural environment according to claim 4, characterized in that, The daily iterative calculation of the residual concentration until it falls below the MRL includes: using the microbial degradation potential coefficient M as an additional multiplier to correct the daily degradation rate. From the initial concentration of the drug Initially, substitute the values into the corrected exponential decay formula each day. Iterative calculation of residual concentration until The number of days required to meet the target is the local dynamic safety interval. If the target is not met by the end of the next 7 days, the historical average meteorological value for the same period will be used in conjunction with the current M value to continue extrapolating daily until the residual concentration is lower than the MRL; among which, This is a temperature correction factor. For rainfall correction factor, Microbial degradation potential coefficient, This is a reference value for the pesticide half-life. The residual concentration at the end of day t. This represents the residual concentration at the end of day t+1.
7. The method for tracing the source of agricultural pests and diseases based on a knowledge graph of the agricultural environment according to claim 4, characterized in that, The output local dynamic safety interval includes: S431, establishing two independent concentration recording sequences for the field: a vertical degradation sequence and a comprehensive residue sequence, and initializing the upstream migration contribution table, both starting from the initial pesticide application concentration; S432, reading the daily rainfall, soil temperature and humidity, and the previous day's comprehensive residue concentration of all upstream fields daily as input data for migration calculation; S433, determining whether the daily rainfall reaches the runoff initiation threshold, and if so, reading the migration proportion coefficient from the runoff-carrying rate lookup table, calculating the concentration increment of each path in conjunction with the upstream residue concentration and area dilution factor, and summing them; S434, updating the previous day's concentration of the vertical sequence to the current day's end value after correcting the degradation rate. ; S435, the concentration of the previous day of the composite sequence is superimposed with the lateral migration contribution of the current day after the same degradation, and the result is taken as the final concentration of the day; S436, at the same time, it is checked whether the concentration of the two sequences is lower than the MRL, and the number of days when the standard is first met is recorded as the local independent safety interval and the composite safety interval. The iteration is terminated after the two sequences meet the standard; S437, the difference between the composite and the local independent safety interval is calculated. If it is greater than or equal to two days, a yellow warning is triggered, and the number of days of delay, the upstream fields that mainly contribute, and the key rainfall dates are displayed; S438, the composite safety interval is uploaded to the edge server as the formal dynamic safety interval for subsequent joint prevention and control decision-making, and the daily data of the two sequences is saved for local traceability.
8. The method for tracing the source of agricultural pests and diseases based on a knowledge graph of the agricultural environment according to claim 7, characterized in that, The two independent concentration recording sequences are specifically: a first sequence and a second sequence created for user fields, wherein the first sequence records theoretical residual changes affected only by local meteorological and microbial factors, and the second sequence records actual residual changes after superimposed external migration inputs; at the same time, an upstream migration contribution table indexed by date is established, and storage slots are pre-allocated for each possible upstream field.
9. The method for tracing the source of agricultural pests and diseases based on a knowledge graph of the agricultural environment according to claim 7, characterized in that, The upstream fields include: data collection along the field path using a nine-axis inertial measurement unit, generating a two-dimensional micro-topographic slope grid through Kalman filtering and caching it; soil moisture data before rainfall, combined with field capacity and wilting coefficient from the extended knowledge graph, and classifying infiltration capacity into three levels: dry, wet, and saturated based on the current water content to water capacity ratio; using the field boundary points as the catchment endpoints, generating theoretical catchment areas by superimposing measured two-dimensional micro-topographic slope grids and public elevation data using the steepest slope method; and calculating the potential upstream field center. The average flow velocity is estimated by combining the length of the water flow along the steepest slope path to the boundary of the field with the Manning coefficient and infiltration attenuation coefficient corresponding to the soil infiltration level. The flow time is obtained by dividing the flow length by the flow velocity. Fields with a flow time of less than half the duration of rainfall are selected as the effective upstream field set. The newly generated effective upstream field set is compared with the topological relationship between fields. Newly generated fields are inserted into the migration contribution table slots and the application records are queried anonymously. Fields not selected are frozen and marked as having no contribution. Subsequent migration calculations are only performed on fields in the dynamic set of the day.
10. The method for tracing the source of agricultural pests and diseases based on a knowledge graph of the agricultural environment according to claim 9, characterized in that, The set of effective upstream fields was determined as follows: based on the soil infiltration level and soil texture, the corresponding Manning coefficient and infiltration attenuation coefficient were obtained from the extended knowledge graph; the average slope of the confluence path was extracted by combining the two-dimensional micro-topographic slope grid, and the hydraulic radius was estimated; the average surface water flow velocity was calculated based on the Manning formula, and then the water flow time was obtained. Fields with water flow time less than half the duration of rainfall are considered as the effective upstream field set.
