A precise monitoring method and model for the damage degree of anthribus varicornis

By combining target detection and semantic segmentation models and utilizing the biological characteristics of the tea leaf beetle, the problem of inaccurate counting and damage confusion caused by the apparent death and stacking of the tea leaf beetle was solved, realizing accurate monitoring of insect count and damage assessment, and providing a scientific assessment of the level of damage.

CN123182164APending Publication Date: 2026-11-27TEA RES INST GUANGDONG ACAD OF AGRI SCI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611704114.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-30
Publication Date
2026-11-27

Smart Images

  • Figure CN123182164A_ABST
    Figure CN123182164A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of intelligent agricultural pest monitoring, and provides a precise monitoring method and model for the damage degree of tea cerotelus staphylinus, which comprises the following steps: acquiring a sampling image, cutting the sampling image into subblocks, performing inference on the subblocks through a target detection model, and executing non-maximum suppression; performing density compensation on a bounding box of a stacking area based on a stress pseudo-death curled morphology prior and a single-head standard projection area to obtain a worm body count value; acquiring a damaged leaf image, extracting worm-eaten holes and scorched areas through a semantic segmentation model, applying a decay weight to a hole classification probability in a leaf edge buffer area based on a spatial feeding distribution law, and determining a secondary scorched area based on a spatial adjacency relationship and a median value of Euclidean distances to obtain a leaf damage quantification index; and performing weighted evaluation on the indexes based on damage irreversibility degree causal hierarchy to assign different weights and determine a target damage grade. The application solves the problems of inaccurate pseudo-death stacking counting and damage quantification distortion, and realizes precise damage degree grading evaluation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of intelligent monitoring technology for agricultural pests, specifically to a precise monitoring method and model for the damage caused by the tea leaf beetle. Background Technology

[0002] In tea tree cultivation and management, the tea leaf beetle is one of the main pests damaging tea tree leaves. Existing pest monitoring technologies typically rely on manual surveys or general computer vision algorithms for identification and counting.

[0003] However, the tea leaf beetle exhibits a significant tendency to feign death under stress. When disturbed, it retracts its six legs, curls up its body, and often falls onto the sampling surface in a densely stacked state. This makes it easy for general target detection algorithms to mistakenly merge multiple curled individuals into a single target or miss detection due to occlusion, resulting in a severely underestimation of insect population density.

[0004] Meanwhile, in terms of quantifying leaf damage, the feeding behavior of the tea leaf beetle not only causes direct insect-eaten holes but also leads to secondary scorching and necrosis due to damage to vascular tissue. Existing image segmentation methods struggle to distinguish between insect-induced secondary scorching and natural scorching caused by environmental stress, and easily misjudge natural damage at leaf edges as insect-eaten holes, resulting in damage assessment results that fail to accurately reflect the actual extent of pest damage.

[0005] Therefore, there is an urgent need for a precise monitoring method that can overcome the interference of apparent death stacking and accurately separate and quantify direct and indirect damage. Summary of the Invention

[0006] To address the problems of inaccurate counting of tea leaf beetles due to stress-induced apparent death and stacking, and quantitative distortion caused by confusion between direct damage and secondary scorching in existing technologies, this application proposes a precise monitoring method and model for the degree of damage caused by tea leaf beetles, which enables accurate statistics on insect population density and scientific classification and assessment of leaf damage.

[0007] To achieve the above objectives, this application adopts the following technical solution: A method for accurately monitoring the damage caused by the tea leaf beetle includes: acquiring sampled images, segmenting them into multiple sub-image patches according to a preset overlap rate, and performing inference on each sub-image patch using a target detection model; mapping the detection bounding boxes of each sub-image patch back to the original image coordinates and then performing non-maximum suppression; performing density compensation on the detection bounding boxes of the stacked area based on the stress-induced feigned death and curled-up morphology of the tea leaf beetle and the standard projected area of ​​a single head to obtain the insect count; acquiring images of damaged leaves, extracting the insect-eaten hole area and scorched area using a semantic segmentation model, and based on the spatial analysis of the tea leaf beetle... The distribution pattern of food is used to apply a decay weight to the classification probability of holes in the buffer zone at the leaf edge. The decay weight is proportional to the distance from the pixel to the leaf edge boundary line, and the classification probability of holes in the core feeding area in the middle and rear of the leaf remains unchanged. Secondary scorching areas are determined based on the spatial adjacency relationship between insect-eaten hole areas and scorched areas and the median Euclidean distance, and leaf damage quantification index is obtained. Based on insect count, ground-emerging insect quantity index and leaf damage quantification index, differentiated weights are assigned according to the causal hierarchy of the irreversibility of damage for weighted evaluation to determine the target damage level.

[0008] Optionally, the image is divided into multiple sub-image patches according to a preset overlap rate, and each sub-image patch is inferred through an object detection model. After mapping the detection bounding boxes of each sub-image patch back to the original image coordinates, non-maximum suppression is performed. This includes: dividing the enhanced sample image obtained after preprocessing the sampled image into multiple sub-image patches according to a preset overlap rate, where the preset overlap rate is used to eliminate target omissions at the cutting boundaries; inputting each sub-image patch into the object detection model for inference to obtain candidate detection bounding boxes for each sub-image patch; mapping the coordinates of the candidate detection bounding boxes of each sub-image patch back to the original image coordinate system of the sampled image; and performing cross-sub-image patch non-maximum suppression on all mapped candidate detection bounding boxes using a first intersection-union threshold to obtain preliminary detection results.

[0009] Optionally, in non-maximum suppression, the first crossover ratio (CUP) threshold is a low CUP threshold. Non-maximum suppression also employs a high-confidence threshold as a co-constraint. Specifically, the low CUP threshold is determined based on the spacing between the insects when they are in a state of suspended animation due to stress, and is used to distinguish between individual insects that are in a state of suspended animation due to stress. The high-confidence threshold is determined based on the chromaticity distribution of debris noise in the sampled scene and is used to filter out background debris noise. The co-constraint of the low CUP threshold and the high-confidence threshold allows the model to take into account both the suspended animation morphology and noise filtering when distinguishing between suspended insects and debris noise.

[0010] Optionally, density compensation is performed on the detection bounding boxes of the stacked region based on the stress-induced feigned death and curled-up morphology prior of the tea leaf beetle and the standard projected area of ​​a single head to obtain the insect count value. This includes: identifying the stacked region where the candidate detection bounding boxes suppressed by non-maximum values ​​are located, and calculating the total pixel area of ​​each stacked region; dividing the total pixel area of ​​each stacked region by the standard projected area of ​​a single head and rounding down to obtain the estimated number of insects in each stacked region; when the estimated number of insects is greater than the number of surviving detection bounding boxes in the stacked region, the difference is used as the compensation amount, and the corresponding number of suppressed candidate detection bounding boxes are restored in the stacked region according to the confidence level from high to low; the total number of restored effective detection bounding boxes is used as the insect count value.

[0011] Optionally, based on the spatial feeding distribution pattern of the tea leaf beetle, a decay weight is applied to the classification probability of holes within the leaf edge buffer zone. This includes: extracting the leaf edge boundary line based on the leaf contour and calculating the shortest distance from each pixel inside the leaf to the leaf edge boundary line; defining the pixel region with the shortest distance less than a preset buffer distance as the leaf edge buffer zone, the preset buffer distance being determined based on the statistical pattern of the concentrated distribution of tea leaf beetle feeding holes in the middle and rear parts of the leaf; during the decoding stage of the semantic segmentation model, multiplying the hole classification probability of each pixel within the leaf edge buffer zone by a decay weight, the decay weight being proportional to the shortest distance from the pixel to the leaf edge boundary line, so that the hole closer to the leaf edge has a lower classification probability; and keeping the classification probability of holes outside the leaf edge buffer zone but located in the core feeding area in the middle and rear parts of the leaf unchanged, so as to give priority to the identification results of insect-eaten holes in this area.

[0012] Optionally, secondary scorching areas are determined based on the spatial adjacency relationship and median Euclidean distance between the insect-eaten hole area and the scorched area. This includes: extracting the pixel coordinate set of the insect-eaten hole area and the pixel coordinate set of the scorched area; for each connected component in the scorched area, calculating the Euclidean distance from each pixel in the connected component to the nearest pixel in the pixel coordinate set of the insect-eaten hole area, and taking the median Euclidean distance of all pixels in the connected component as the representative distance of the connected component; identifying connected components with a representative distance less than a preset adjacency threshold as insect-induced secondary scorching areas, where the preset adjacency threshold is determined based on the diffusion range of water transport obstruction after the tea leaf beetle damages the vascular tissue; and identifying connected components with a representative distance greater than or equal to the preset adjacency threshold as naturally scorched areas caused by environmental stress, which are not included in the calculation of leaf damage quantification indicators.

[0013] Optionally, the backbone network of the target detection model is embedded with a convolutional block attention module at the end. The convolutional block attention module enables the model to focus on the dense area of ​​insects in the center of the basin and suppress background interference signals outside the basin during inference. The target detection model adopts a dynamic label allocation strategy, which is adapted to the distribution characteristics of the densely stacked small individuals of the tea leaf beetle.

[0014] Optionally, the target detection model is a model trained on a multi-pose training set. The construction process of the multi-pose training set includes: adding simulated dead posture data augmentation on the basis of general data augmentation. The simulated dead posture data augmentation takes into account the characteristics of the six legs retracting and the body curling up after the tea-horned leaf beetle is startled, resulting in a reduction in the projected area, and generates C-shaped curled-up form, body stiff form, and side-rolling curled-up form samples of dead posture. The samples of dead posture are combined with normal crawling posture samples and antennae extended posture samples to construct a multi-pose training set.

[0015] Optionally, after acquiring the sampled image, the process further includes preprocessing the sampled image, which includes: converting the sampled image to the Lab color space; performing adaptive histogram equalization on the L channel to eliminate local reflection differences at the bottom of the pelvis; performing threshold segmentation on the background region of the pelvis based on the chromaticity differences between the a and b channels to obtain a background mask; performing nonlinear compression only on the a and b channels of the non-background region based on the background mask, while preserving the chromaticity characteristics of the dark brown body color of the tea-horned leaf beetle in both the a and b channels; and fusing the three processed channels, followed by bilateral filtering and frequency domain layered enhancement to obtain an enhanced sample image.

[0016] Optionally, the training data preparation process for the semantic segmentation model includes: collecting real-life images of damaged tea leaves; uniformly standardizing original images of varying sizes to a preset pixel size using edge patching to avoid distortion of the insect-eaten hole morphology caused by scaling and stretching, which would affect the accuracy of area calculation; setting three types of labels for pixel-level annotation: healthy leaf body, insect-eaten holes, and secondary scorched areas; simultaneously recording the spatial position of each hole relative to the leaf edge during the annotation stage; selecting and retaining insect-eaten samples with holes concentrated in the middle and rear parts of the leaf, and removing samples with holes distributed along the leaf edge; during the data augmentation process, verifying whether the insect-eaten holes are still located in the middle and rear parts of the leaf after flipping and rotating the image; if the insect-eaten holes fall into the leaf edge area after the transformation, the augmented sample is discarded to maintain the spatial distribution pattern of non-edge feeding by the tea leaf beetle.

[0017] A precise monitoring model for the damage caused by the tea leaf beetle includes: The insect counting module is used to acquire sampled images, cut them into multiple sub-image patches according to a preset overlap rate, and perform inference through the target detection model. After mapping the detection bounding boxes of each sub-image patch back to the original image coordinates, non-maximum suppression is performed. Based on the stress-induced feigned death curling morphology of the tea leaf beetle and the standard projected area of ​​a single head, density compensation is performed on the detection bounding boxes of the stacked area to obtain the insect count value. The leaf damage quantification module is used to acquire images of damaged leaves. It extracts insect-eaten hole areas and scorched areas through a semantic segmentation model. Based on the spatial feeding distribution pattern of the tea leaf beetle, it applies a decay weight to the classification probability of holes in the buffer zone at the leaf edge. The decay weight is proportional to the distance from the pixel to the leaf edge boundary line, and the classification probability of holes in the core feeding area in the middle and rear of the leaf remains unchanged. Based on the spatial adjacency relationship between the insect-eaten hole area and the scorched area and the median Euclidean distance, it determines the secondary scorched area and obtains the leaf damage quantification index. The damage level assessment module is used to perform weighted assessment based on insect count, ground-emerging insect quantity, and leaf damage quantification, assigning differentiated weights according to the causal hierarchy of the irreversibility of the damage, and determining the target damage level.

[0018] Beneficial effects:

[0019] This application achieves the following technical effects by deeply integrating the biological characteristics of the tea-horned leaf beetle into the entire process of image processing and model inference: Firstly, regarding insect counting, considering the stress-induced lethargy and dense stacking characteristics of the tea leaf beetle, a strategy combining slice inference and coordinate mapping was employed to eliminate the missed detection of small targets in large-image detection. Furthermore, a low cross-union threshold determined based on the lethargy adhesion distance and a high confidence threshold determined based on the detritus color distribution were used for collaborative constraints to effectively distinguish between the curled-up insects and background noise. On this basis, density compensation was performed on the stacked area using the standard projected area of ​​a single insect, recovering individuals that were mistakenly merged due to non-maximum suppression. This fundamentally solved the problem of underestimation of insect population density caused by lethargy stacking, significantly improving the accuracy of counting.

[0020] Secondly, in terms of leaf damage quantification, based on the spatial distribution pattern of the tea leaf beetle's concentrated feeding on the middle and posterior parts of the leaf, a distance-related attenuation weight was applied to the classification probability of holes in the edge buffer zone, effectively suppressing the interference of natural leaf edge damage on insect infestation identification. At the same time, by utilizing the spatial adjacency relationship between insect-eaten holes and scorched areas and the median Euclidean distance, secondary scorching caused by insect damage to vascular tissue and natural scorching caused by environmental stress were accurately separated, ensuring that the damage quantification index can truly reflect the direct feeding damage and secondary physiological damage of pests.

[0021] Finally, in terms of damage level assessment, a differentiated weighted system based on the causal hierarchy of the irreversibility of damage was constructed. Secondary scorching, representing loss of function, received the highest weight; insect-eaten holes, representing structural damage, received a moderate weight; and insect population indicators, representing population pressure, received the lowest weight. This system was combined with biologically measured inflection points for grading. This assessment system overcomes the assessment biases caused by traditional methods relying on single indicators or simple aggregation, ensuring that the final determined damage level scientifically and objectively represents the actual degree of damage and physiological functional decline of tea trees, providing reliable data support for precise control. Attached Figure Description

[0022] Figure 1 This is a schematic flowchart of a method for accurately monitoring the degree of damage caused by the tea leaf beetle according to an embodiment of this application; Figure 2 This is a flowchart illustrating the quantification of blade damage according to an embodiment of this application; Figure 3 This is a flowchart of the causal hierarchy weighted evaluation process according to an embodiment of this application; Figure 4 This is a model module diagram of an embodiment of this application. Detailed Implementation

[0023] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application.

[0024] 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 application pertains.

[0025] Example 1

[0026] like Figure 1 As shown in the embodiments of this application, a method for accurately monitoring the damage level of the tea leaf beetle is provided. This method deeply integrates the biological characteristics of the tea leaf beetle into the entire chain of image processing and data analysis to solve the monitoring distortion problem caused by the special behavioral habits of the pest. The method mainly includes the following steps: Step S100: Acquire the sampled image, cut it into multiple sub-image patches according to the preset overlap rate, and perform inference through the target detection model for each sub-image patch. After mapping the detection bounding box of each sub-image patch back to the original image coordinates, perform non-maximum suppression. Based on the stress-induced feigned death curling morphology prior of the tea leaf beetle and the standard projected area of ​​a single head, perform density compensation on the detection bounding box of the stacked area to obtain the insect count value.

[0027] Specifically, the sampled images are usually obtained by tapping the tea tree to make the pests fall onto the supporting surface. Because the tea leaf beetle exhibits a significant stress-induced feigning death behavior, when disturbed, its six legs retract, its body curls up, and it often appears in a densely stacked state, causing it to appear as extremely small and sticky targets in the image. If inference is directly performed on the entire high-resolution sampled image, the features of these tiny targets are easily lost during downsampling; if there is no overlapping cutting, the insects located at the cutting boundaries may be truncated, leading to missed detections. Therefore, this embodiment adopts a strategy of cutting sub-patterns according to a preset overlap rate, which ensures the integrity of the small target features and eliminates boundary effects through overlapping areas. After obtaining the detection results of each sub-pattern, the coordinates of the detection bounding boxes must be mapped back to the original image coordinate system to perform cross-sub-pattern non-maximum suppression at a uniform scale. More importantly, to address the problem of erroneous merging in conventional non-maximum suppression caused by feigning death stacking, this step introduces a density compensation mechanism based on biological priors. Because the projected area of ​​a single leaf beetle after feigning death and curling up is relatively stable, when signs of stacking are detected in a certain area, the actual number of insects contained can be estimated by dividing the total pixel area of ​​that area by the standard projected area of ​​a single beetle, and the incorrectly suppressed detection boxes can be restored accordingly. This mechanism fundamentally overcomes the deficiency of general detection algorithms in handling organism-specific stacking, ensuring the accuracy of insect population density statistics.

[0028] Step S200: Obtain images of damaged leaves, extract insect-eaten hole areas and scorched areas using a semantic segmentation model, apply attenuation weights to the classification probability of holes in the leaf edge buffer zone based on the spatial feeding distribution pattern of the tea leaf beetle, the attenuation weights are proportional to the distance from the pixel to the leaf edge boundary line, and the classification probability of holes in the core feeding area in the middle and rear of the leaf remains unchanged, determine the secondary scorched areas based on the spatial adjacency relationship between insect-eaten hole areas and scorched areas and the median Euclidean distance, and obtain quantitative indicators of leaf damage.

[0029] Specifically, the feeding behavior of the tea leaf beetle exhibits clear spatial selectivity, primarily concentrating on the middle and posterior regions of the leaf. Damage to the leaf edges is often caused by wind breakage, mechanical friction, or other non-target factors. To accurately identify genuine insect-eaten holes, this step introduces spatial regularity constraints in the decoding stage of the semantic segmentation model. Specifically, a decay weight that increases with distance is applied to the classification probability of holes within the leaf edge buffer zone, making pixels closer to the leaf edge less likely to be identified as insect-eaten holes, while prioritizing the identification results of the core feeding area in the middle and posterior regions. This effectively suppresses false detections in non-core feeding areas. Furthermore, the tea leaf beetle's feeding not only causes direct physical holes but also leads to secondary scorching due to damage to vascular tissue and disruption of water transport. This secondary damage is visually very similar to natural scorching caused by environmental stress, but its location is necessarily spatially causally related to the insect-eaten holes. Therefore, this step characterizes the adjacency between the scorched area and the insect-eaten hole area by calculating the median Euclidean distance. Only scorched areas that are spatially close to the insect-eaten holes are classified as secondary scorching, while isolated scorched areas far from the holes are considered naturally scorched and excluded. This spatial adjacency determination method based on pathological mechanisms achieves precise separation between direct damage and secondary physiological damage, enabling quantitative indicators to truly reflect the actual degree of damage caused by pests.

[0030] Step S300: Based on the insect count, the number of insects emerging from the ground, and the quantitative indicators of leaf damage, a weighted assessment is performed by assigning differentiated weights according to the causal hierarchy of the irreversibility of the damage to determine the target damage level.

[0031] Specifically, traditional pest assessments often simply aggregate various indicators, ignoring the fundamental differences in their impact on tea tree physiological functions. The weighted assessment system constructed in this step strictly adheres to biological causal logic: secondary scorching represents irreversible functional loss due to damage to vascular tissue, having the most profound negative impact on tea tree growth, and therefore receives the highest weight; insect-eaten holes represent direct loss of leaf mesophyll tissue, which, although structurally damaged, can still compensate for some functions, and thus receive a moderate weight; while insect counts and above-ground insect populations only represent current population pressure or potential risk, exhibiting a time lag and non-linear relationship with actual leaf damage, resulting in the weakest correlation, and therefore receive the lowest weight. Through this differentiated weighting based on the degree of irreversible damage, the final target damage level is no longer an abstract numerical combination, but a comprehensive technical evaluation that scientifically characterizes the actual damage state and physiological decline of the tea tree, providing a reliable basis for subsequent precise control decisions.

[0032] It should be understood that although this embodiment describes the monitoring process in a specific order of steps, in other embodiments, as long as the functional requirements of each step are met, the execution order between steps can be adaptively adjusted according to actual computing resources or data acquisition methods. For example, in some parallel processing architectures, steps S100 and S200 can be executed synchronously to improve overall monitoring efficiency.

[0033] Example 2

[0034] Based on Example 1, this example further details the specific execution logic of the slice reasoning strategy, non-maximum suppression collaborative constraint, and density compensation involved in step S100, so as to construct a complete technical closed loop for the problem of false death stacking and missed detection of tea horn leaf beetle.

[0035] Specifically, the process of dividing the sampled image into multiple sub-patterns according to a preset overlap rate, performing inference through a target detection model, mapping the detection bounding boxes of each sub-pattern back to the original image coordinates, and then performing non-maximum suppression includes the following sub-steps. First, the enhanced sample image obtained after preprocessing the sampled image is divided into multiple sub-patterns according to a preset overlap rate. The preset overlap rate is used to eliminate target misses at the cutting boundaries. Since the individual tea leaf beetles are small and often cluster in the center of the bearing surface when in a dormant state, if a non-overlapping grid is used for cutting, the insects located on the dividing lines are easily truncated, resulting in feature incompleteness and thus missed detections. By setting a reasonable overlap rate, the insects in the boundary region can appear completely in at least one sub-pattern, thus ensuring the integrity of the small target features. Subsequently, each sub-pattern is input into the target detection model for inference to obtain the candidate detection bounding boxes of each sub-pattern. Finally, the coordinates of the candidate detection bounding boxes of each sub-pattern are mapped back to the original image coordinate system of the sampled image, and non-maximum suppression across sub-patterns is performed on all mapped candidate detection bounding boxes with a first intersection-union threshold to obtain preliminary detection results. The key to this step is coordinate mapping. Only under a unified original map coordinate system can we accurately determine whether detection boxes from different sub-plots point to the same physical target, thus avoiding duplicate counting or incorrect suppression caused by coordinate system fragmentation.

[0036] In the non-maximum suppression process, the first cross-union ratio (CUP) threshold is a low CUP threshold, and non-maximum suppression also employs a high-confidence threshold for collaborative constraint. The low CUP threshold is determined based on the inter-body contact distance of the tea leaf beetle during stress-induced feigned death and curling, used to distinguish individuals that are inter-body due to feigned death and curling. Conventional target detection typically uses a high CUP threshold to remove redundant boxes, but for the tea leaf beetle, its bodies are tightly fitted after feigned death and curling, resulting in high overlap between the bounding boxes of adjacent individuals. Using a general threshold would misclassify multiple real individuals as the same target. Therefore, this application sets a low CUP threshold based on the statistical regularity of the contact distance unique to this pest, to retain detection boxes that, although highly overlapping, are actually independent individuals. Simultaneously, the high-confidence threshold is determined based on the chromaticity distribution of debris noise in the sampling scene, used to filter out background debris noise. Because the bottom of the sampling basin often contains interfering objects such as soil particles and dead branches, which are similar in shape to the curled-up insect body but differ in color characteristics, the model's prediction confidence for these noise points is usually lower than that for real insect bodies. By setting a higher confidence threshold, these false targets can be effectively eliminated. The low cross-union ratio threshold and the high confidence threshold work together to ensure that the model considers both the morphological characteristics of the curled-up insect body and noise filtering when distinguishing between the noise points and the false death morphology. This dual-threshold collaborative mechanism is the key difference between this application and existing technologies: simply reducing the cross-union ratio will lead to a surge in false detections of debris, while simply increasing the confidence will exacerbate the false negatives of stacked insects. Only by combining the two can a very low false alarm rate be maintained while retaining real stacked individuals. The inherent logic of its parameter setting is completely anchored to the biological characteristics of the tea-horned leaf beetle and the physical characteristics of the sampling environment.

[0037] After obtaining the initial detection results, density compensation was performed on the detection bounding boxes of the stacked regions based on the prior knowledge of the stress-induced feigned death and curled-up morphology of the tea leaf beetle and the standard projected area of ​​a single insect, to obtain the insect count. This process specifically includes: identifying the stacked regions containing candidate detection bounding boxes suppressed by non-maximum values, and calculating the total pixel area of ​​each stacked region. A stacked region refers to a region suppressed due to a cross-union ratio exceeding a low cross-union ratio threshold, but still spatially close to the height of the surviving bounding box; this is typically a representation of multiple insects densely packed together. Next, the total pixel area of ​​each stacked region was divided by the standard projected area of ​​a single insect and rounded down to obtain the estimated number of insects in each stacked region. The standard projected area of ​​a single insect is a prior parameter obtained by statistically averaging a large number of feigned death and curled-up samples in the training set, representing the stable projected size of the pest in its typical feigned death posture. Since the total projected area when insects are stacked is approximately equal to the linear sum of the areas of individual insects, the actual number of individuals contained can be reliably estimated using the area ratio. When the estimated number of insects exceeds the number of surviving detection bounding boxes within the stacked area, the difference is used as a compensation amount. A corresponding number of suppressed candidate detection bounding boxes are then restored within the stacked area, ranked from highest to lowest confidence. This restoration strategy ensures that incorrectly suppressed real individuals are recovered, and prioritizes the restoration of boxes with the highest confidence, maximizing the reliability of the compensation results. Finally, the total number of restored valid detection bounding boxes is used as the insect count.

[0038] To illustrate the density compensation mechanism more clearly, a specific scenario is used as an example. Suppose that in a monitoring exercise, the total pixel area of ​​a certain stacked region is calculated to be 3.5 times the standard projected area of ​​a single insect. Rounding down yields an estimated number of 3 insects. If only one detection box survives in this region after non-maximum suppression, the difference is 2. The system will then select the two highest-confidence candidate boxes from the suppressed candidate boxes in this region for recovery, resulting in a final count of 3 insects in this region. It should be understood that the above values ​​are merely illustrative examples; in actual applications, the degree of stacking, standard area, and compensation quantity all dynamically change with the on-site sampling conditions. Furthermore, although this embodiment uses rounding down as the estimation strategy, in other embodiments, rounding or weighted estimation methods can be used depending on the looseness of the stacking pattern. As long as the core logic is still based on biological prior area for quantity inference, it should be covered within the scope of protection of this application. By organically combining the above-mentioned slice reasoning, collaborative constraints and density compensation, this embodiment fundamentally solves the problem of counting distortion caused by the apparent death and stacking of tea leaf beetles, providing an accurate data foundation for subsequent damage level assessment.

[0039] Example 3

[0040] Based on Example 1, this example further details the semantic segmentation strategy involved in step S200, focusing on how to utilize the biological characteristics of the tea leaf beetle to optimize damage recognition accuracy in order to solve the problem of edge misdetection and confusion with natural scorching in traditional methods.

[0041] Specifically, based on the spatial feeding distribution patterns of the tea leaf beetle, a decay weight is applied to the classification probability of holes within the leaf edge buffer zone. This process is not a simple post-processing filter, but rather a direct intervention on the feature map or probability map during the decoding stage of the semantic segmentation model. The biological basis for this is that statistical analysis of a large number of damaged leaves reveals that the tea leaf beetle's feeding behavior exhibits significant spatial selectivity. The vast majority of insect-eaten holes are concentrated in the middle and rear regions of the leaf, where the leaf tissue is relatively tender and nutrient-rich. In contrast, damage to the leaf edge is often caused by wind friction, mechanical damage, or other non-target pests, and is not a typical characteristic of the tea leaf beetle's damage. Therefore, this application introduces the concept of a "leaf edge buffer zone" as a priori constraint region. In practical implementation, the leaf edge boundary line is first extracted based on the leaf contour, and the shortest distance from each pixel inside the leaf to the leaf edge boundary line is calculated. The pixel region with the shortest distance less than the preset buffer distance is defined as the leaf edge buffer zone. The preset buffer distance is determined based on the statistical law that the feeding holes of the tea leaf beetle are concentrated in the middle and rear of the leaf. For example, it can be set to 10% to 15% of the average width of the leaf, or determined according to the 95th percentile of the minimum distance from the insect holes to the leaf edge in historical samples.

[0042] After determining the buffer range, during the decoding stage of the semantic segmentation model, the hole classification probability of each pixel within the leaf edge buffer is multiplied by a decay weight. This decay weight is proportional to the shortest distance from the pixel to the leaf edge boundary line, thus lowering the classification probability of holes closer to the leaf edge. This proportional relationship can be achieved through various functional forms. As a preferred implementation, a linear decay function can be used, i.e. ,in For decay weights, The shortest distance from the current pixel to the leaf edge. This is a preset buffer distance. When a pixel is located on the leaf edge boundary line, With a weight of 0, the hole response at that location is completely suppressed; when the pixel is located at the outer boundary of the buffer... The weight is 1, restoring the original probability. As an alternative implementation, for a smoother transition, nonlinear functions such as cosine annealing or Gaussian decay can also be used, as long as the monotonicity principle of "the closer the distance, the stronger the suppression" is satisfied. Meanwhile, the classification probability of holes outside the leaf edge buffer zone and located in the core feeding area of ​​the middle and rear of the leaf remains unchanged, prioritizing the recognition results of insect-eaten holes in this area. This design embodies the strategy of "differentiated confidence": for typical feeding areas that conform to biological laws, the original output of the model is fully trusted to avoid missed detections introduced by human intervention; constraints are only applied to high-risk edge areas. Through this probability modulation mechanism of spatial regularity constraints, the problem of false detection caused by the similarity between the natural damage morphology of the leaf edge and insect-eaten holes is effectively overcome, significantly improving the biological rationality of the segmentation results.

[0043] See Figure 2 The flowchart for quantifying leaf damage demonstrates the spatial regularity constraints of semantic segmentation output and the logic for determining secondary scorching, reflecting the dual modulation of the algorithm results by biological priors.

[0044] After accurately segmenting the hole area, it is necessary to further distinguish the causes of the scorched area. Secondary scorched areas are determined based on the spatial adjacency relationship between the insect-eaten hole area and the scorched area, and the median Euclidean distance. During feeding, the tea leaf beetle bites off leaf veins and other vascular tissues, obstructing water transport distal to the wound and leading to secondary physiological scorching. This scorching is visually very similar to natural scorching caused by environmental stress (such as drought or high-temperature sunburn), but there is a fundamental difference in their spatial distribution: secondary scorching is always spatially adjacent to the insect-eaten hole, while natural scorching is usually distributed independently or only associated with areas of high transpiration, such as leaf tips and edges. To quantify this spatial correlation, this embodiment extracts the pixel coordinate sets of the insect-eaten hole area and the pixel coordinate set of the scorched area. Subsequently, for each connected component in the scorched area, the Euclidean distance from each pixel within that component to the nearest pixel in the pixel coordinate set of the insect-eaten hole area is calculated, and the median Euclidean distance of all pixels within that component is taken as the representative distance of that component.

[0045] The median Euclidean distance, rather than the arithmetic mean, was specifically chosen as the metric here due to considerations of noise robustness. In actual images, the shape of scorched connected regions is often highly irregular, potentially containing elongated necrotic streaks extending far from the holes, or outliers caused by segmentation errors. Using the average distance would significantly amplify these extreme values, leading to areas that are actually secondary scorching being misclassified as naturally scorched. The median, as an order statistic, effectively resists the interference of outliers and more robustly represents the true spatial proximity between the main scorched area and the insect-eaten holes. After obtaining the representative distance, connected regions with a representative distance less than a preset adjacency threshold were identified as insect-induced secondary scorching areas. The preset adjacency threshold was determined based on the diffusion range of water transport obstruction after the tea leaf beetle damages the vascular tissue. This threshold has a clear plant physiological meaning, reflecting the maximum physical radius that water deficit symptoms can reach after leaf vascular bundle damage, and can be obtained through statistical analysis of the scorching expansion range corresponding to different hole sizes in the field. Accordingly, connected regions representing distances greater than or equal to a preset adjacency threshold are identified as naturally scorched areas caused by environmental stress and are not included in the calculation of leaf damage quantification indicators. This judgment rule achieves precise separation between direct insect damage and secondary physiological damage, ensuring that the final output leaf damage quantification indicators can purely and objectively reflect the actual damage caused by the tea leaf beetle, and avoiding interference from environmental background noise on the monitoring results.

[0046] Example 4

[0047] Building upon the monitoring methods described in Examples 1 to 3, this example further elucidates how to deeply adapt the target detection model to the biological characteristics of the tea leaf beetle from the perspectives of model construction and training data preparation, thereby providing underlying algorithmic support for accurate counting in the aforementioned steps. Specifically, a convolutional block attention module is embedded at the end of the backbone network of the target detection model. This module enables the model to focus on the densely populated area of ​​insects in the center of the basin during inference and suppress background interference signals outside the basin. This structural design is not a simple application of a general attention mechanism, but rather a specific customization for the tea leaf beetle sampling scenario. In the basin-sampling scenario, startled insects often gather in the central area of ​​the bearing surface due to gravity and their tendency to feign death, while the edges of the basin and the external background are filled with non-target noise such as soil particles and dead branches. Embedding the convolutional block attention module at the end of the backbone network introduces a dual filtering mechanism of spatial and channel attention at the critical stage of feature extraction. The spatial attention branch learns the global spatial weight map to automatically enhance the feature response in the central region of the basin, concentrating network resources on dense areas with a high probability of insect appearance. The channel attention branch analyzes the statistical information of each feature channel to suppress redundant channels that primarily respond to background texture or lighting reflections. This dual focusing mechanism effectively solves the problem of small target features being easily obscured by complex backgrounds, significantly improving the purity of feature extraction in low signal-to-noise ratio environments.

[0048] Meanwhile, the target detection model employs a dynamic label allocation strategy, which adapts to the densely stacked distribution characteristics of tiny individuals of the Tea-horned Leaf Beetle. Traditional target detection algorithms typically use a fixed intersection-union (IU) threshold to distinguish between positive and negative samples. However, when dealing with tiny and highly overlapping targets like the Tea-horned Leaf Beetle, a fixed threshold is prone to missed detections or misclassifications: a threshold that is too high will classify closely fitted real individuals as negative samples, while a threshold that is too low will introduce a large number of low-quality anchor boxes. The dynamic label allocation strategy adopted in this application (such as SimOTA or similar adaptive strategies) abandons static rules and instead dynamically adjusts the number of positive samples for each real instance based on the real-time quality of the prediction results. For densely stacked regions, this strategy can adaptively increase the number of positive sample matches, allowing the model to learn more feature representations of overlapping bounding boxes; for sparse regions, it reduces the number of positive samples to avoid overfitting. This strategy is highly consistent with the spatial distribution pattern of the Tea-horned Leaf Beetle, which is "locally extremely dense and globally uneven," fundamentally improving the recall rate and localization accuracy in dense scenes.

[0049] To ensure the effectiveness of the aforementioned model structure, the construction of training data must also adhere to biological principles. The target detection model is based on a multi-posture training set. The construction process of the multi-posture training set includes: adding simulated death posture data augmentation to the general data augmentation. This simulated death posture data augmentation targets the characteristic of the tea leaf beetle retracting its six legs and curling its body after being startled, resulting in a reduction in the projected area. It generates C-shaped curled posture, rigid body posture, and side-rolled curled posture samples of death posture. These three postures are not arbitrarily designed, but strictly correspond to the typical behavioral spectrum of this pest during stress-induced death posture: the C-shaped curled posture simulates the defensive posture of the insect's abdomen curling inward and the head and tail approaching each other, at which time the projected area is reduced by about 40% to 60% compared to the normal crawling state; the rigid body posture simulates the tense static state of the six legs tightly pressed against the abdomen and the body in a straight line suspended in the air or close to the ground, with a significant change in its length-to-width ratio; the side-rolled curled posture simulates the asymmetrical posture of the insect landing on its side and retracting its appendages after losing balance, presenting unique side-view projection characteristics. By procedurally generating or artificially synthesizing these specific morphological samples, the model is forced to learn the intrinsic relationship between "reduced projected area" and "limb retraction," rather than simply memorizing a fixed appearance. This allows the model to accurately identify individuals in apparent death with varying degrees of variation in actual reasoning.

[0050] Furthermore, a multi-pose training set is constructed by combining samples of the seemingly dead posture with samples of normal crawling posture and antennae-extended posture. In this mixed training set, the proportion of various types of samples needs to be carefully controlled to prevent cognitive bias in the model. As a preferred implementation, the proportion of seemingly dead posture samples in the total training set can be set to 30% to 50%, ensuring that the model fully learns the features of seemingly dead posture while retaining sufficient normal posture samples to maintain its ability to recognize active individuals. In addition, a progressive fusion strategy can be introduced during training, that is, in the early stages of training, normal posture samples are used as the main source of basic feature representations, and in the middle and later stages, the proportion of seemingly dead posture samples is gradually increased to guide the model to smoothly transition to adapting to complex stacked scenarios. It should be understood that although this embodiment lists three typical seemingly dead postures, in practical applications, it can also be extended based on other rare postures observed in the field (such as supine curling, semi-extended leg seemingly dead, etc.), as long as its generation logic is still based on the projection geometric change law caused by the stress behavior of the tea leaf beetle, it should be considered a reasonable extension of the technical solution of this application. Through the synergistic optimization of the above model structure and training data, this embodiment injects profound biological prior knowledge into the target detection algorithm, making it no longer a general visual tool, but a customized intelligent perception engine specifically for monitoring the infestation of the tea leaf beetle.

[0051] Example 5

[0052] Building upon the monitoring methods described in Examples 1 to 4, this embodiment further elucidates how to provide a high-quality data foundation for target detection and semantic segmentation through biologically-perceived preprocessing and training data fidelity strategies from the data input perspective. Although image preprocessing and data preparation are routine practices in the field of computer vision, the specific processing method in this application is not a simple application of general algorithms, but rather deeply anchored to the body color characteristics and feeding spatial patterns of the tea-horned leaf beetle, exhibiting clear biological orientation.

[0053] Specifically, after acquiring the sampled images, preprocessing is performed. This preprocessing includes converting the sampled images to the Lab color space and performing adaptive histogram equalization (CLAHE) on the L channel to eliminate local reflectivity differences at the bottom of the basin. In field sampling environments, the bearing surface often exhibits complex brightness gradients due to uneven soil moisture, water stains, or changes in lighting angle. This non-uniform illumination can severely interfere with subsequent target detection and background segmentation. The L channel, independent of chromaticity information, specifically represents the luminance component. Performing CLAHE on it can enhance the contrast between the insect and the bottom of the basin while effectively suppressing overexposed or underexposed areas, making the brightness distribution of the entire image more uniform and establishing a stable photometric benchmark for subsequent chromaticity processing.

[0054] Based on this, a background mask is obtained by thresholding the basin background area according to the difference in chromaticity values ​​between channels a and b. Nonlinear compression is then applied only to channels a and b of the non-background areas using this background mask, while preserving the chromaticity characteristics of the dark brown body color of the tea-horned leaf beetle, which is positively biased in both channels a and b. This step is the core innovation of the preprocessing in this application, and its underlying mechanism stems entirely from the unique biological attributes of the tea-horned leaf beetle's body color. In the Lab color space, channel a represents the red-green axis, and channel b represents the yellow-blue axis. Statistical analysis of a large number of samples revealed that the adult tea-horned leaf beetle has a dark brown body surface, with significant positive value shifts in both channels a and b. In contrast, the blue basin background used for sampling has negative values ​​in both channels a and b. While interfering elements such as dead leaves and twigs may have positive values ​​in one channel, they are unlikely to maintain the same high positive value characteristics as the beetle in both channels simultaneously. Therefore, by setting a joint threshold for channels a and b, the basin background can be accurately separated and a mask generated. More importantly, when performing nonlinear compression on non-background regions (i.e., foreground regions containing insect bodies and potential interfering elements), the positive bias of the dark brown body color in the dual channels is deliberately preserved, and only the noise colors deviating from this feature are converged towards neutral gray. This selective chromaticity preservation strategy not only suppresses the interference of background noise on the model, but also maintains the intrinsic chromaticity signal of the target pest to the greatest extent, avoiding the feature annihilation problem caused by traditional global chromaticity normalization.

[0055] Subsequently, the three processed channels are fused and sequentially subjected to bilateral filtering and frequency domain layered enhancement to obtain the enhanced sample image. Bilateral filtering utilizes the joint constraints of spatial distance weights and pixel value difference weights to smooth the texture of soil particles and residual reflective noise at the bottom of the basin while sharply preserving the edge gradient between the 3-4 mm-scale tiny insect and the basin bottom, overcoming the inherent defect of traditional Gaussian filtering in blurring the boundaries of small targets during denoising. Frequency domain layered enhancement decouples the image into a structural basal layer and a texture detail layer: edge sharpening is performed on the structural basal layer to enhance the physical boundaries of the insect's outline, while adaptive high-frequency enhancement is performed on the texture detail layer to highlight subtle distinguishing features such as the insect's legs and antennae. This differentiated processing mechanism ensures that the enhanced sample image, while improving the signal-to-noise ratio, does not lose any microstructural information crucial for identifying the feigned dead, curled-up posture.

[0056] Besides the preprocessing in the inference stage, the quality of the training data also determines the upper limit of the model. The training data preparation process for the semantic segmentation model includes collecting real-life images of damaged tea leaves, and uniformly standardizing the original images of varying sizes to a preset pixel size using edge patching to avoid scaling and stretching that would distort the shape of the insect-eaten holes and affect the accuracy of area calculation. In existing technologies, uniformizing image size usually involves direct scaling, but this is fatal for the damage quantification task in this case. The insect-eaten holes caused by the tea leaf beetle are usually small and irregular in shape. Scaling operations will cause nonlinear distortion of the aspect ratio of the holes, resulting in systematic deviations in pixel-level area calculations, and thus distorting the area-based damage quantification index in Example 3. The edge patching strategy adopted in this application, through the original... Figure 4 The canvas is expanded to the target size by filling with zero or mean pixels around the perimeter, which completely preserves the geometry and absolute pixel area of ​​the holes in the original image, ensuring the physical authenticity of damage quantification from the data source.

[0057] Furthermore, three types of labels were set up for pixel-level annotation: healthy leaf body, insect-eaten holes, and secondary scorching areas. During the annotation stage, the spatial position of each hole relative to the leaf edge was recorded simultaneously. Insect-eaten samples with holes concentrated in the middle and rear of the leaf were selected and retained, while samples with holes distributed along the leaf edge were discarded. This selection rule, together with the "leaf edge buffer probability decay" mechanism described in Example 3, forms a rigorous data-algorithm closed loop. Since the algorithm has already applied suppression to the edge region based on the biological law that "tea leaf beetles prefer to feed in the middle and rear," the training data must purely reflect this law, avoiding the inclusion of edge damage samples caused by other leaf-eating pests, which could lead to the model learning incorrect spatial priors.

[0058] Finally, during data augmentation, the images after flipping and rotating are checked to ensure that the insect-eaten holes are still located in the middle and rear regions of the leaf. If the insect-eaten holes fall into the leaf margin region after the transformation, the augmented sample is discarded to maintain the spatial distribution pattern of non-edge feeding by the tea leaf beetle. Conventional data augmentation (such as random rotation and horizontal flipping) often disrupts the spatial topology of the target. For example, a qualified sample with holes originally located at the leaf base may have its holes moved to the leaf tip edge after a 180-degree rotation. If included in the training set without verification, it will directly inject the erroneous gradient of "insect-eaten holes also exist at the edges" into the model, negating the training effect of the probability decay mechanism in Example 3. By adding this spatial location verification step, it is ensured that each augmented sample strictly conforms to the feeding biological characteristics of the tea leaf beetle, making the spatial constraints learned by the model highly robust and interpretable. It should be understood that although this embodiment uses edge patching and spatial verification as the preferred implementation method, alternative means such as content-based intelligent filling or affine transformation correction can also be used in other embodiments. As long as their core purpose is still to maintain the geometric fidelity of holes and the non-edge feeding pattern, they should all be covered within the protection scope of this application.

[0059] Example 6

[0060] Building upon the accurate insect counts, surface insect population, and quantitative leaf damage indicators including insect-eaten holes and secondary scorch obtained in Examples 1 to 5, this example further elucidates how to scientifically assess the damage level based on these technical indicators. A weighted assessment is performed by assigning differentiated weights according to the causal hierarchy of the irreversibility of the damage. The core of this assessment mechanism lies in abandoning the drawbacks of simple aggregation or subjective weighting of indicators in traditional methods, and instead establishing a causal weighting system that strictly adheres to the physiological and pathological mechanisms of plants. Specifically, differentiated weights are assigned to the percentage of secondary scorch area, insect-eaten hole index, insect population density index, and surface insect population index according to the causal hierarchy from high to low degree of irreversibility of damage. The percentage of secondary scorch area has the highest weight, the insect-eaten hole index has a medium weight, and the insect population density index and surface insect population index have the lowest weights.

[0061] This weighting order is supported by a clear biological mechanism. The weight of the secondary scorching area percentage is set to the highest value because secondary scorching is an irreversible secondary physiological damage caused by insects densely drilling and destroying the vascular tissue. From a plant physiology perspective, once the vascular tissue is damaged and broken, the loss of its water and nutrient transport function is permanent. Even if the pests are removed, the scorched necrosis cannot be restored, directly representing the substantial loss of the leaf's photosynthetic function. The weight of the insect-eaten hole index is set to a medium value because holes are structural damage that can be partially restored caused by direct feeding by adult insects. Although the loss of mesophyll tissue reduces the effective photosynthetic area, the remaining mesophyll cells can still maintain some function through physiological compensation, and the growth of new leaves can compensate for the loss to some extent; its damage is less severe than functional failure. The weights of the insect population density index and the number of insects emerging from the ground index are set to the lowest values ​​because the insect population only represents population pressure and has the weakest correlation with the actual degree of leaf damage. Field monitoring shows that high insect population density does not necessarily lead to the same degree of leaf damage. There are significant spatiotemporal lag effects and nonlinear relationships. For example, although the insect population is large in the early stages of adult emergence, they have not yet concentrated on feeding, or tea trees are more tolerant under suitable environmental conditions. Therefore, using it as a supplementary early warning indicator rather than a core damage indicator is more scientific. It should be noted that the insect population density index is calculated based on the insect count values ​​obtained in the aforementioned examples, ensuring technical consistency of the data sources.

[0062] See Figure 3 The flowchart of the causal hierarchical weighted assessment shows the complete logic of the harm level assessment, including the differentiated weight allocation of four indicators, the calculation of the comprehensive harm index, and the determination of the four-level threshold.

[0063] To enable mathematical calculations of the aforementioned differential weights, each indicator is graded and standardized based on its biologically measured inflection point. The resulting comprehensive damage index is then calculated using a weighted average based on these differential weights. Here, the "biologically measured inflection point" refers to a critical threshold, determined through extensive field control experiments, at which significant changes occur in the physiological functions of tea trees, rather than an artificially set integer boundary. For example, the grading of the secondary scorched area proportion is based on the measured correlation between scorched area and the degree of obstruction of leaf water transport. When the scorched area reaches a certain proportion, the leaf transpiration rate experiences a precipitous drop; this proportion is a key scoring inflection point. For the insect-eaten hole indicator, the grading is based on the measured correlation between the hole area and the proportion of decreased photosynthetic efficiency. For the insect population indicator, the grade boundary is determined by the inflection point in insect population when the photosynthetic leaf area of ​​the tea tree begins to decrease significantly. By mapping continuous physical quantities to discrete standardized scores (e.g., 0 to 4 points), the non-linear characteristics of biological significance are preserved, while a standardized numerical basis is provided for subsequent weighted calculations.

[0064] After obtaining the standardized scores of each indicator, the sum of the products of the standardized scores of each indicator and their corresponding weights is divided by the total weights to obtain the comprehensive damage index. This calculation formula is essentially a weighted fusion of multidimensional technical characteristics, and its output is a scalar value that comprehensively reflects the damage status of tea trees. Subsequently, the comprehensive damage index is compared with three thresholds determined based on field verification to determine the target damage level. These thresholds are also obtained through long-term field observation and physiological indicator measurement; each threshold corresponds to a clear and verifiable agrophysical state, thus ensuring the technical attributes of the assessment results.

[0065] Specifically, when the comprehensive damage index is less than the first threshold, it is judged as mild damage, corresponding to the occasional adult insects and the leaves being basically intact without scorching. At this time, the physiological functions of the tea tree are not substantially affected, and only routine monitoring is required. When the comprehensive damage index is greater than or equal to the first threshold and less than the second threshold, it is judged as moderate damage, corresponding to the leaves having obvious holes but the proportion of secondary scorching area not exceeding the preset critical value. At this stage, structural damage is the main issue, and functional compensation still exists, making it a critical window for prevention and control. When the comprehensive damage index is greater than or equal to the second threshold and less than the third threshold, it is judged as severe damage, corresponding to the leaves having dense holes and the proportion of secondary scorching area exceeding the preset critical value, resulting in significant obstruction of photosynthesis. At this time, the damage to the vascular tissue has exceeded the self-repair threshold of the tea tree, and the accumulation of photosynthetic products is insufficient to maintain normal growth, requiring emergency intervention measures. When the comprehensive damage index is greater than or equal to the third threshold, it is judged as extremely severe damage, corresponding to the leaves having dense holes and the proportion of secondary scorching area exceeding the preset functional loss threshold, resulting in leaf drying. This indicates that the leaf function has been largely lost, which may lead to tree decline or even the death of the entire tree. It should be understood that the above four-level classification and its corresponding physical state description are only illustrative examples. In practical applications, the thresholds at each level and the corresponding agricultural characteristics can be adaptively adjusted according to different tea tree varieties, ages, or regional climate conditions. As long as the evaluation logic still follows the core technical concept of "the degree of irreversible damage determines the weight," it should be covered within the scope of protection of this application.

[0066] Example 7

[0067] Please see Figure 4 This application also provides a precise monitoring model for the damage caused by the tea leaf beetle, which can execute the precise monitoring method for the damage caused by the tea leaf beetle described in any one of Embodiments 1 to 6 above. The model includes: The insect counting module is used to acquire sampled images, cut them into multiple sub-image patches according to a preset overlap rate, and perform inference through the target detection model. After mapping the detection bounding boxes of each sub-image patch back to the original image coordinates, non-maximum suppression is performed. Based on the stress-induced feigned death curling morphology of the tea leaf beetle and the standard projected area of ​​a single head, density compensation is performed on the detection bounding boxes of the stacked area to obtain the insect count value. The leaf damage quantification module is used to acquire images of damaged leaves. It extracts insect-eaten hole areas and scorched areas through a semantic segmentation model. Based on the spatial feeding distribution pattern of the tea leaf beetle, it applies a decay weight to the classification probability of holes in the buffer zone at the leaf edge. The decay weight is proportional to the distance from the pixel to the leaf edge boundary line, and the classification probability of holes in the core feeding area in the middle and rear of the leaf remains unchanged. Based on the spatial adjacency relationship between the insect-eaten hole area and the scorched area and the median Euclidean distance, it determines the secondary scorched area and obtains the leaf damage quantification index. The damage level assessment module is used to perform weighted assessment based on insect count, ground-emerging insect quantity, and leaf damage quantification, assigning differentiated weights according to the causal hierarchy of the irreversibility of the damage, and determining the target damage level.

[0068] Example 8

[0069] Building upon the detailed explanations of the algorithmic principles and data processing flow of the precise monitoring method for the damage caused by the tea leaf beetle in Examples 1 to 6, this example further applies the method to a real-world tea garden monitoring scenario, comprehensively demonstrating the entire implementation process from physical sampling to intelligent analysis. This example focuses on illustrating the specific field operation procedures for acquiring sampling images and ground-emerging insect indicators, verifying the operability and data validity of the aforementioned technical solution in a real agricultural production environment.

[0070] Specifically, during the emergence period of adult tea leaf beetles, multiple monitoring points were randomly set up in the tea garden according to a pre-set monitoring cycle. The layout of the monitoring points should follow the principles of statistical random sampling, taking into account the topography of the tea garden, tea varieties, and historical pest occurrences to ensure the spatial representativeness of the samples. The pre-set monitoring cycle is usually dynamically adjusted according to the number of generations of tea leaf beetles and meteorological conditions. For example, it can be shortened to once a day during the peak adult emergence period, and extended to once every three days in the early or late stages of the infestation. This spatiotemporal sampling strategy provides a statistically significant data foundation for subsequent algorithmic analysis.

[0071] When performing basin-tapping sampling at each monitoring point, a sampling basin of a preset diameter is placed under the tea canopy. After tapping the tea canopy directly above the sampling basin a preset number of times, the surface of the basin is immediately photographed within the time window during which the tea leaf beetle, feigning death, falls into the basin and has not yet recovered its activity and escaped. This step is the key anchor point of the technical solution of this application at the physical level. The sampling basin of the preset diameter is usually a standard white or blue plastic basin with a diameter of 30cm to 40cm, and its color selection is adapted to the background segmentation strategy based on the Lab color space in Example 5. The preset number of taps is generally set to 3 to 5 times, and the force should be uniform and moderate, which can shake off the adults inhabiting the back of the leaves without excessively damaging the tender shoots of the tea tree. More importantly, the strict control of the shooting time window is crucial: after being disturbed, the tea leaf beetle exhibits a typical stress-induced feigned death and curled-up state, which usually lasts from tens of seconds to several minutes. The photography must be completed within this time window for two reasons: First, only in the state of apparent death and curling up will the insect exhibit the stable projected area and stacking pattern upon which the density compensation mechanism in Example 2 relies. If photography is delayed until the insect resumes crawling, the insect's expansion will cause a change in projected area and the insect will no longer be stacked, rendering the density compensation algorithm ineffective. Second, timely photography prevents some individuals from escaping out of the container after resuming activity, ensuring the integrity of the count. Therefore, this time window is not only an operational standard but also a necessary technical condition to ensure that the algorithm's input data conforms to the prior biological assumptions.

[0072] To comprehensively assess pest pressure, it is also necessary to simultaneously acquire the ground-emerging insect quantity index. The specific operation involves placing a pre-sized net frame upside down on the ground beneath the tea trees at each monitoring point. Adult insects emerging from the net frame are collected according to a pre-set monitoring cycle and dumped into a sampling basin. After verifying that all remaining insects at the bottom of the frame have been transferred, the surface of the basin is photographed to obtain an image of the ground-emerging insect quantity. The ground-emerging insect quantity reflects the emergence progress of overwintering or oversummering adults in the soil and is a forward-looking indicator for predicting future population growth trends on the trees. Using an upside-down net frame limits the collection area and prevents interference from external adult migration. Pouring the collected emerging adults into a sampling basin of the same size for photographing ensures that the ground-emerging insect image and the basin-sampled image have the same imaging conditions and background features. This allows for direct reuse of the preprocessing, target detection, and density compensation algorithm processes described in Examples 1 to 6, eliminating the need for separate model training for ground-emerging insect quantity and significantly reducing system deployment complexity and maintenance costs. It should be understood that although this embodiment describes the preferred method of pouring the emerging adult insects into a basin for photography, in other embodiments, the ground inside the net can also be photographed directly, as long as the subsequent algorithm can adapt to the corresponding background features.

[0073] After acquiring the two types of images, they are uploaded to the computing terminal to run the model, triggering the processing flow of Examples 1 to 6. Specifically, two-stage preprocessing, slice inference detection, density compensation, semantic segmentation damage quantification, and causal hierarchy weighted evaluation are performed on the sampled images and the images of insect populations on the ground, respectively, ultimately outputting a monitoring report containing the target damage level. Through this seamless integration of standardized field sampling and automated analysis processes, this application encapsulates complex computer vision algorithms into a monitoring tool easily implemented by frontline plant protection personnel. This ensures both the biological standardization of data collection and the objectivity and timeliness of analysis results, enabling the technical solution to truly take root and serve precise control decisions in tea gardens.

[0074] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for accurately monitoring the damage caused by the tea leaf beetle, characterized in that, include: The sampled image is acquired, cut into multiple sub-patterns according to a preset overlap rate, and inference is performed on each sub-pattern through the target detection model. After mapping the detection bounding box of each sub-pattern back to the original image coordinates, non-maximum suppression is performed. Based on the stress-induced death and curled-up morphology of the tea leaf beetle and the standard projected area of ​​a single head, density compensation is performed on the detection bounding box of the stacked area to obtain the insect count value. Images of damaged leaves are acquired, and the insect-eaten hole area and scorched area are extracted using a semantic segmentation model. Based on the spatial feeding distribution pattern of the tea leaf beetle, a decay weight is applied to the classification probability of holes in the buffer zone at the leaf edge. The decay weight is proportional to the distance from the pixel to the leaf edge boundary line, and the classification probability of holes in the core feeding area in the middle and rear of the leaf remains unchanged. Secondary scorched areas are determined based on the spatial adjacency relationship between the insect-eaten hole area and the scorched area and the median Euclidean distance, thus obtaining a quantitative index of leaf damage. Based on insect count, surface insect emergence, and leaf damage quantification, a weighted assessment was conducted by assigning differentiated weights according to the causal hierarchy of the irreversibility of the damage to determine the target damage level.

2. The method for accurately monitoring the degree of damage caused by the tea leaf beetle according to claim 1, characterized in that, The process of dividing the image into multiple sub-patterns according to a preset overlap rate and performing inference through an object detection model on each sub-pattern, mapping the detection bounding boxes of each sub-pattern back to the original image coordinates, and then performing non-maximum suppression includes: The enhanced sample image obtained after preprocessing the sampled image is cut into multiple sub-image patches according to the preset overlap rate. The preset overlap rate is used to eliminate the target missed detection at the cutting boundary. Each sub-image patch is input into the target detection model for inference to obtain candidate detection bounding boxes for each sub-image patch; the coordinates of the candidate detection bounding boxes of each sub-image patch are mapped back to the original coordinate system of the sampled image, and non-maximum suppression across sub-image patches is performed on all mapped candidate detection bounding boxes with a first intersection-union threshold to obtain preliminary detection results.

3. The method for accurately monitoring the degree of damage caused by the tea leaf beetle according to claim 2, characterized in that, In the non-maximum suppression, the first cross-union ratio (CUP) threshold is a low CUP threshold, and the non-maximum suppression also employs a high-confidence threshold collaborative constraint, wherein: The low crossover ratio threshold is determined based on the spacing between the insect bodies when the tea leaf beetle is in a state of suspended animation due to stress, and is used to distinguish individual insect bodies that are in contact with each other due to suspended animation. The high confidence threshold is determined based on the chromaticity distribution of debris noise in the sampled scene and is used to filter out background debris noise.

4. The method for accurately monitoring the degree of damage caused by the tea leaf beetle according to claim 1, characterized in that, The prior a priori information on the stress-induced feigned death and curled-up morphology of the tea-horned leaf beetle and the standard projected area of ​​a single head are used to perform density compensation on the detection bounding box of the stacked area to obtain the insect count value, including: Identify the stacked regions where the candidate detection bounding boxes suppressed by the non-maximum value are located, and calculate the total pixel area of ​​each stacked region; Divide the total pixel area of ​​each stacked region by the standard projected area of ​​a single head and round down to obtain the estimated number of insects in each stacked region. When the estimated number of insects is greater than the number of surviving detection bounding boxes in the stacked area, the difference is used as a compensation amount to restore the corresponding number of suppressed candidate detection bounding boxes in the stacked area according to the confidence level from high to low. The total number of all valid detection bounding boxes after recovery is used as the insect count value.

5. The method for accurately monitoring the degree of damage caused by the tea leaf beetle according to claim 1, characterized in that, The method of applying attenuation weights to the classification probability of holes in the leaf edge buffer zone based on the spatial feeding distribution pattern of the tea leaf beetle includes: Extract the leaf edge boundary line based on the leaf contour, and calculate the shortest distance from each pixel inside the leaf to the leaf edge boundary line; The pixel region where the shortest distance is less than the preset buffer distance is defined as the leaf edge buffer zone. The preset buffer distance is determined based on the statistical law that the feeding holes of the tea leaf beetle are concentrated in the middle and rear of the leaf. In the decoding stage of the semantic segmentation model, the hole classification probability of each pixel in the leaf edge buffer is multiplied by a decay weight. The decay weight is proportional to the shortest distance from the pixel to the leaf edge boundary line, so that the hole classification probability is lower the closer it is to the leaf edge. During the decoding stage of the semantic segmentation model, for pixels outside the leaf edge buffer and located in the core feeding area in the middle and rear of the leaf, the attenuation weight is not applied, and the hole classification probability output by the semantic segmentation model is directly used as the hole recognition result for that region.

6. The method for accurately monitoring the degree of damage caused by the tea leaf beetle according to claim 1 or 5, characterized in that, The determination of secondary scorched areas based on the spatial adjacency relationship between insect-eaten and scorched areas and the median Euclidean distance includes: Extract the pixel coordinate set of the insect-eaten hole region and the pixel coordinate set of the scorched region; For each connected component in the scorched region, calculate the Euclidean distance from each pixel in the connected component to the nearest pixel in the set of pixel coordinates of the worm-eaten hole region, and take the median of the Euclidean distances of all pixels in the connected component as the representative distance of the connected component. The connected regions whose representative distance is less than a preset adjacency threshold are identified as the secondary scorching areas induced by pests. The preset adjacency threshold is determined based on the diffusion range of water transport obstruction after the tea leaf beetle damages the vascular tissue by feeding. The connected regions whose representative distance is greater than or equal to the preset adjacency threshold are determined to be natural scorching areas caused by environmental stress and are not included in the calculation of the leaf damage quantification index.

7. The method for accurately monitoring the degree of damage caused by the tea leaf beetle according to claim 1, characterized in that, The sampling images were taken from the surface of the sampling basin within the time window after the tea tree was patted to induce the tea leaf beetle to appear dead and fall into the sampling basin. The backbone network of the target detection model has a convolutional block attention module embedded at the end. The convolutional block attention module enables the model to focus on the dense area of ​​insects in the center of the basin and suppress background interference signals outside the sampling basin during inference. The target detection model adopts a dynamic label allocation strategy, which is adapted to the distribution characteristics of densely stacked small individuals of the tea-horned leaf beetle.

8. The method for accurately monitoring the degree of damage caused by the tea leaf beetle according to claim 7, characterized in that, The target detection model is a model trained on a multi-pose training set, and the process of constructing the multi-pose training set includes: Based on general data augmentation, a simulated death posture data augmentation is added. The simulated death posture data augmentation targets the characteristic of the six legs retracting and the body curling up after the tea-horned leaf beetle is startled, resulting in a reduction of the projected area, and generates C-shaped curling posture, body stiffness posture and side-rolling curling posture samples of the apparent death posture. The simulated death state samples, along with normal crawling posture samples and antennae-extending posture samples, are used to construct the multi-posture training set.

9. The method for accurately monitoring the degree of damage caused by the tea leaf beetle according to claim 1, characterized in that, The sampling image is obtained by photographing the surface of the sampling basin within the time window after the tea plant is tapped to induce the tea leaf beetles to appear dead and fall into the sampling basin. After acquiring the sampling image, the process further includes preprocessing the image, which includes: The sampled image is converted to the Lab color space, and adaptive histogram equalization is performed on the L channel to eliminate local reflection differences at the bottom of the sampled basin. A background mask is obtained by threshold segmentation of the background area of ​​the sampling basin based on the difference in chromaticity values ​​between the a and b channels. Based on the background mask, nonlinear compression is performed only on the a and b channels of the non-background area, while preserving the chromaticity characteristics of the dark brown body color of the tea horn leaf beetle in the a and b channels that are positively biased. The three processed channels are fused and then sequentially subjected to bilateral filtering and frequency domain layered enhancement to obtain the enhanced sample image; The training data preparation process for the semantic segmentation model includes: Collect real-life images of damaged tea leaves, and use edge patching to uniformly standardize the original images of different sizes to a preset pixel size to avoid scaling and stretching that would cause distortion of the shape of insect-eaten holes and affect the accuracy of area calculation. Three types of labels are set up for pixel-level annotation: healthy leaf body, insect-eaten holes, and secondary scorched areas; During the labeling stage, the spatial position of each hole relative to the leaf edge was recorded simultaneously. Samples with holes concentrated in the middle and rear of the leaf were selected and retained, while samples with holes distributed along the leaf edge were removed. During the data augmentation process, the images after flipping and rotating are checked to see if the insect holes are still located in the middle and rear regions of the leaf. If the insect holes fall into the leaf margin region after the transformation, the augmented sample is discarded to maintain the spatial distribution pattern of non-marginal feeding by the tea leaf beetle.

10. A precise monitoring model for the damage caused by the tea leaf beetle, characterized in that, include: The insect counting module is used to acquire sampled images, cut them into multiple sub-image patches according to a preset overlap rate, and perform inference through the target detection model. After mapping the detection bounding boxes of each sub-image patch back to the original image coordinates, non-maximum suppression is performed. Based on the stress-induced feigned death curling morphology of the tea leaf beetle and the standard projected area of ​​a single head, density compensation is performed on the detection bounding boxes of the stacked area to obtain the insect count value. The leaf damage quantification module is used to acquire images of damaged leaves, extract insect-eaten hole areas and scorched areas through a semantic segmentation model, apply attenuation weights to the classification probability of holes in the leaf edge buffer based on the spatial feeding distribution pattern of the tea leaf beetle, the attenuation weights are proportional to the distance from the pixel to the leaf edge boundary line and the classification probability of holes in the core feeding area in the middle and rear of the leaf remains unchanged, and determine the secondary scorched areas based on the spatial adjacency relationship between the insect-eaten hole area and the scorched area and the median Euclidean distance, thus obtaining the leaf damage quantification index. The damage level assessment module is used to perform weighted assessment based on insect count, ground-emerging insect quantity, and leaf damage quantification, assigning differentiated weights according to the causal hierarchy of the irreversibility of the damage, and determining the target damage level.