Next Article in Journal
Developing a Superhydrophilic/Underwater Superoleophobic Plasma-Modified PVDF Microfiltration Membrane with Copolymer Hydrogels for Oily Water Separation
Previous Article in Journal
A Comparative In Vitro Analysis of Attachment and Enhanced Structural Features for Molar Distalization in Clear Aligner Therapy
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Research on Plant Disease and Pest Diagnosis Model Based on Generalized Stochastic Petri Net

School of Logistics and Management Engineering, Yunnan University of Finance and Economics, Kunming 650221, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2025, 15(12), 6656; https://doi.org/10.3390/app15126656
Submission received: 12 May 2025 / Revised: 3 June 2025 / Accepted: 12 June 2025 / Published: 13 June 2025

Abstract

With the advancement of modern agricultural technology and the expansion of large-scale production, this article aims to solve the difficulties in plant disease and pest control through the application of artificial intelligence and automation technology, and provide accurate disease and pest warning mechanisms. This study first conducted a detailed identification and classification of plant disease and pest warning mechanisms, and established a dynamic model of disease and pests based on the environmental factors and symptoms of affected areas. On this basis, using the isomorphism relationship between generalized stochastic Petri nets and Markov chains, a plant disease and pest diagnosis model based on generalized stochastic Petri nets and an equivalent Markov chain model were constructed. The simulation results show that different combinations of infection rates have a significant impact on the probability of meeting treatment standards, with the combination of moderate and severe infection rates having the greatest impact on the probability of meeting treatment standards, while the impact of mild infection rates is relatively small. By comprehensively analyzing the interaction between mild, moderate, and severe infection rates, the critical zone surface under different disease and pest warning thresholds was obtained. Through actual data verification, the generalized stochastic Petri net model can effectively quantify the dynamic characteristics of disease and pest propagation. Combined with the equivalent analysis of Markov chains, it can provide key thresholds and decision support for disease and pest warning. This method provides a theoretical basis for automated monitoring and precise control of pests and diseases in large-scale agricultural planting, and it has high practical application value.

1. Introduction

The modernization of agriculture is characterized by achieving economies of scale through modern cultivation practices during production and management processes. It serves as an effective strategy to enhance management efficiency, reduce production costs, and ultimately improve agricultural economic benefits [1]. This strategy demands a higher yield efficiency and rational resource utilization, while also introducing a series of modernization requirements, such as resource management, pest and disease control, and environmental protection. To meet these demands, modern agriculture increasingly relies on high-tech solutions, particularly artificial intelligence and automation technologies. Plant pests and diseases refer to various afflictions and infestations that impact the health and growth of plants, including damage caused by fungi, bacteria, viruses, insects, and other pests. These diseases and pests not only deteriorate the appearance and utility value of plants but can also, in severe cases, lead to plant death, resulting in significant economic losses in the agricultural industry [2].
Traditional methods for identifying plant diseases and pests mainly rely on manual visual diagnosis, using expert knowledge along with textual and visual information from books or online resources. With the proliferation of machine vision devices equipped with cameras and internet capabilities, computer vision technology has provided new avenues for modern crop pest and disease monitoring. This study primarily involves two types of machine learning algorithms: unsupervised learning methods, such as k-means clustering, and supervised learning methods using support vector machines. In the context of plant pest and disease diagnosis, k-means clustering is mainly used for data-driven early anomaly detection and lesion classification. Meena Prakash et al. applied GLCM, KMC, and SVM algorithms to classify diseases in citrus leaf images, achieving a classification accuracy of 90% with their proposed strategy [3]. Similarly, Krithika and Veni used KMC and SVM classifiers to categorize cucumber leaf diseases [4]. SVM, on the other hand, is commonly used for multi-class classification tasks involving known disease types and for classifying small-sample, high-dimensional data. For instance, Motie et al. proposed a method based on drone aerial imagery and SVM classifiers. By analyzing near-infrared and visible light images, they effectively identified wheat plants affected by Sunn pest Eurygaster integriceps and mapped their distribution [5]. However, this technology requires significant manual intervention by experts or programmers, particularly during the feature extraction phase. It involves manually inputting extracted feature lists into traditional neural networks for data classification, which can be a labor-intensive process. The process is not only complex but also demands significant human and material resources. Despite the development of numerous disease diagnostic systems, their widespread application and adoption remain limited.
Due to the complexity and operational challenges associated with machine learning classification techniques, deep learning algorithms have become a major focus of current research both domestically and internationally. Hernández and Lópe propose a Bayesian deep learning approach for plant disease detection, emphasizing the significance of uncertainty quantification in deep learning models to enhance reliability and generalization in real-world agricultural applications [6]. Nagasubramanian et al. utilized MobileNetV2 to classify various plant stress phenotypes in soybean, demonstrating its efficient ability to detect and classify biotic and abiotic stresses while maintaining computational efficiency. This approach supports real-time, on-field applications for plant disease diagnosis [7]. In addition, various network architectures such as Alex Net [8],VGG-16 [9], GoogLeNet [10], ResNet [11], and Inception [11] have been proposed and applied in disease recognition. Although significant progress has been made in crop disease identification using deep learning methods, there are still limitations, including limited generalization ability, low accuracy in early and small lesion detection, and large computational requirements that make practical deployment difficult [12]. Furthermore, the significant symptom variability at different disease stages, symptom similarities among different diseases, and the coexistence of multiple diseases add complexity to the diagnostic process.
In the agricultural domain, the application of Petri nets has been gaining increasing attention, especially in agricultural planting and management systems. Yang et al. developed a Petri net model based on an Internet of Things system to achieve real-time monitoring of eggplant cultivation, validating the system’s effectiveness in precision agriculture [13]. Geng et al. utilized the stochastic Petri net to construct a predictive model for soil fertility trends, demonstrating its effectiveness using existing soil fertility data and highlighting the potential of Petri nets in analyzing complex agricultural systems and providing decision support [14]. Wang et al. applied a colored Petri net-based adaptive control approach in their study of an intelligent broad bean harvesting system, successfully achieving real-time optimization and decision support in the agricultural harvesting process [15]. These studies collectively demonstrate the potential of Petri nets in agricultural production, particularly in addressing the dynamics and complexities of agricultural production systems.
In light of these challenges, this paper proposes a plant pest and disease diagnostic model based on generalized stochastic Petri nets (GSPNs). The GSPN demonstrates significant advantages in handling system dynamics and complexity, effectively modeling and analyzing the progression of pests and diseases and their interactions with environmental factors. This method enables the development of dynamic and highly adaptive diagnostic systems. Moreover, GSPN models exhibit greater flexibility and efficiency in addressing diagnostic challenges involving multiple pests and diseases in complex backgrounds. Most existing Petri net research focuses on areas such as power grid failures [16], emergency response [17], logistics scheduling [18], and the spread and evolution of infectious diseases [19], often conducting sensitivity analysis on a single indicator. However, there has been limited application of Petri nets in the field of plant pest and disease early warning mechanisms. Therefore, based on the construction of a dynamic pest and disease model, this research establishes a generalized Petri net model and an equivalent Markov chain model for the propagation and evolution of plant pests and diseases, utilizing the isomorphic relationship between GSPN and Markov chains. Finally, the equilibrium states and variation patterns of the pest and disease propagation system are analyzed using Markov chains and related mathematical methods. This research direction is expected to provide more effective technical support for plant pest and disease management and is of great significance in promoting the modernization and scaling up of the agricultural industry.

2. Early Warning System for Plant Pests and Diseases

2.1. Influence of Environmental Factors

The occurrence of plant diseases is closely related to environmental factors such as water availability, nutrient levels, temperature, humidity, light exposure, and PH value. Proper control of these environmental conditions is key to preventing diseases and ensuring healthy plant growth. The classification and definition of environmental factors related to diseases are shown in Table 1. Among them, C represents the coding of various environmental factors.
The relationship between plant diseases and environmental factors can be described in the form of a function, where the disease D m is a function of various environmental factors. Taking the first pest and disease in Table 1 as an example, the relationship between downy mildew D 1 and environmental factors can be expressed in the following form:
D 11 = f E 3 ,   A 1 ,   TR 1 ,   H 1 ,   L 1 ,   PH 1
Formula (1) indicates that downy mildew is more likely to occur in areas with standing water ( E 1 ), especially when excessive nitrogen fertilizer ( A 1 ) increases the number of susceptible young leaves. The disease develops rapidly within a temperature range of 15–20 °C ( T R 1 ). High humidity ( H 1 ) promotes the spread and development of downy mildew, while excessive shading and low light ( L 1 ) also contribute to the expansion of the disease. Additionally, an alkaline soil environment ( P H 1 ) further exacerbates the occurrence of downy mildew. These environmental factors interact to create high-risk conditions for the disease.
Similarly, the disease dynamics model can be expressed as follows:
D 21 = f E 1 ,   A 1 ,   TR 2 ,   H 1 ,   L 1 ,   PH 1
D 31 = f E 3 ,   A 1 ,   TR 1 ,   H 1 ,   L 1 ,   PH 3
D m 1 = f E a ,   A b ,   TR c ,   H d ,   L e ,   PH f
In addition to plant diseases, the occurrence of pests is also greatly influenced by environmental factors. Table 2 presents six environmental factors related to pest occurrence. By scientifically regulating these environmental parameters, the reproduction and spread of pests can be effectively suppressed, thereby ensuring the healthy growth of plants.
The pest dynamics model can be expressed sequentially as
D 41 = f E 3 ,   A 1 ,   TR 2 ,   H 1 ,   L 1 ,   PH 3
D 51 = f E 2 ,   A 1 ,   TR 3 ,   H 1 ,   L 1 ,   PH 2
D 61 = f E 2 ,   A 1 ,   TR 1 ,   H 3 ,   L 1 ,   PH 2
D n 1 = f E a ,   A b ,   TR c ,   H d ,   L e ,   PH f
In practical planting, a plant species is often simultaneously affected by multiple pests and diseases. Different pests and diseases tend to coexist under similar or complementary environmental conditions, resulting in cumulative effects on the plants. Therefore, comprehensively considering and regulating these environmental conditions is an important strategy to prevent the outbreak of multiple pests and diseases.
The following formula represents the influence of multiple pests and diseases on the plant P s :
P s = f D 11 , D 21 , D 31 , , D i 1
where each pest or disease D i 1 is a function of the environmental factors (Moisture E a , Fertilizer A b , Temperature T R c , Humidity H d , Light L e , and PH value P H f ):
D i 1 = f E a , A b , T R c , H d , L e , P H f
For example, flower P 1 is more likely to develop downy mildew, powdery mildew, and aphids in a high-humidity environment. Formulas (11) and (12) represent the influence of multiple pests and diseases on P 1 :
P 1 = f D 11 ,   D 21 ,   D 41
P 1 = f f ( E 3 ,   A 1 ,   TR 2 ,   H 1 ,   L 1 ,   PH 1 ) , f ( E 1 ,   A 1 ,   TR 2 ,   H 3 ,   L 1 ,   PH 1 ) , f ( E 3 ,   A 1 ,   TR 2 ,   H 1 ,   L 1 ,   PH 3 )

2.2. Pest and Disease Damage and Control

Different diseases and pests often affect specific parts of the plant, presenting distinct symptoms. By observing the health statuses of different plant parts such as roots, stems, leaves, flowers, fruits, young shoots, and buds, one can effectively diagnose and identify the type and severity of pests and diseases [20]. Table 3 describes the impact of plant diseases and pests on the affected areas.
The specific impact of the plant disease and pest D i on different parts of the plant, such as R g , S h , Y j , K k , F R l , N S o , B p , and the corresponding control measures C q , can be represented by the following formulas:
D 2 i = R g , S h , Y j , K k , F R l , N S o , B p , C q
For example, downy mildew can cause varying degrees of damage to different parts of the rose plant, and corresponding control measures should be implemented for each affected part:
D 21 = R 2 , S 1 , Y 1 , Y 3 , K 1 , F R 1 , N S 1 , N S 3 , B 1 , B 3 , C 1 , C 4
Formula (14) represents the impacts of downy mildew infection on different parts of the rose plant. Specifically, the root experiences indirect effects ( R 2 ) ; the stem shows water-soaked lesions covered with a mold layer ( S 1 ); the leaves develop irregularly shaped lesions ( Y 3 ), and in severe cases, they fall off within 2–3 h ( Y 1 ); the flowers become covered with mold, darken, and become deformed ( K 1 ); the fruits show poor development ( F R 1 ); young shoots exhibit sunken lesions, leading to wilting and death ( N S 1 , N S 3 ); and the buds are covered by mold, affecting their development and possibly leading to death ( B 1 , B 3 ). To address these symptoms, the main control measures include improving ventilation ( C 1 ), reducing leaf moisture, and using fungicides ( C 4 ). These symptoms collectively form the typical characteristics of downy mildew, posing a serious threat to the health and growth of the rose plant, and provide corresponding scientific control methods.

2.3. Establishing a Plant Pest and Disease Early Warning System

To establish an effective plant pest and disease early warning system, the first step is to summarize the environmental conditions that promote pest and disease outbreaks, the primary plant parts affected, and the corresponding control technologies based on research from planting experts and the literature. By continuously monitoring these data, the system can proactively identify pests and diseases, preventing potential risks. Due to the diversity and rapid spread of pests and diseases, the damage to plants will continually change. Therefore, during the occurrence of pests and diseases, real-time monitoring of plant symptoms should be conducted based on the data collected. Additionally, feedback should be provided after treatment. Some pests and diseases may not be easily detected in the early stages; therefore, for newly emerging or changing pest and disease situations, timely adjustments and appropriate control measures should be implemented. In summary, a systematic plant pest and disease early warning mechanism consists of the following three stages: the Data Observation Stage, the Disease Judgment Stage, and the Control Execution Stage. The specific process is shown in Figure 1.

3. Generalized Random Petri Net Model for Plant Pest and Disease Spread Diagnosis

Based on the plant pest and disease early warning mechanism flowchart summarized above, it is evident that pest and disease management is a complex system involving multiple variables, stages, and high interactivity. In this context, the GSPN is used for its unique modeling capabilities to study the spread and diagnosis systems of plant pests and diseases. The Petri net structure can clearly depict and analyze the dynamic relationships between system states, where transitions represent changes in the system’s state, and places represent the various states the system may be in. This approach not only effectively simulates the transmission paths and potential development trends of pests and diseases but also provides a detailed reflection of the key control points and potential risks in the plant pest and disease management process. Moreover, this method supports quantitative analysis and optimization of complex systems, helping to propose more precise and practical control strategies. By introducing randomness and time parameters, the generalized stochastic Petri net can describe and analyze the randomness and uncertainty of plant pest and disease spread, providing scientific decision support for the sustainable development of the plant industry.

3.1. Generalized Stochastic Petri Net

Petri nets are a mathematical modeling tool initially proposed by Carl Adam Petri in the 1960s to describe and analyze the behavior of information transmission systems and other dynamic systems. The basic Petri net consists of places, transitions, and directed arcs. Places represent the states of the system, transitions represent the transitions between states, and directed arcs specify the relationships between places and transitions. In a Petri net, the state is changed by placing or removing tokens in the places, which allows the simulation of various dynamic behaviors of the system. The GSPN is an extension of the standard Petri net that introduces the concepts of time and randomness, enabling the model to more accurately reflect the uncertainty and time-dependence found in real-world systems [21]. In the process of plant pest and disease spread, time is a key parameter for disease development and control effectiveness. Therefore, this study introduces the generalized stochastic Petri net into the plant pest and disease spread diagnosis model.
  • In GSPN, the system is described as a directed graph consisting of six basic elements, denoted as P N = P , T , F , W , M , λ [22]. These elements are specifically defined as follows:
  • P = P 1 , P 2 , , P n is the set of places, representing the various states or conditions in the system. In the plant pest and disease spread diagnosis model, places represent the key states and factors designed in the spread process, such as moisture factor E a , fertilizer factor A b , and so on. Here, n > 0 denotes the number of elements.
  • T = T i T j T i T j = is the set of transitions, triggered based on the conditions defined in   D i j . This set includes two types of transitions: Time transitions T i = t 1 , t 2 , , t k ,which simulate activities with delays, such as the disease development stages. Instantaneous transitions T j = t k + 1 , t k + 2 , , t m , m > 0 , used to represent immediate events, such as the rapid diagnosis of a disease.
  • F a + a is the set of directed arcs, connecting places and transitions, determining the flow of tokens. a P × T represents the input arcs of transitions in the Petri net; a + T × P represents the output arcs of transitions in the Petri net. The association matrix in the Petri net is defined as a = a + a . Set F has direction, representing the path through which pests and diseases transition from one state to another.
    W : F N + is the arc weight function vector, where N + = 1 , 2 , , m , m > 0 represents the capacity of each system transition.
  • M : P N is the state-marking vector of the Petri net, which represents the possible states of the pest and disease spread system during its dynamic operation by defining the number of tokens in each place. M 0 represents the initial marking of the system. If there is no function defined on an arc, the default weight is 1.
  • λ = λ 1 , λ 2 , , λ m represents the average triggering frequency associated with time transitions [23]. Each λ i is an exponential distribution parameter used to describe the average time interval between the triggers of the corresponding time transition. This allows the model to probabilistically express the occurrence of transitions, with the λ value for instantaneous transitions defaulting to zero, reflecting their characteristic of occurring immediately with no delay.
The GSPN has an isomorphic relationship with continuous-time homogeneous Markov chains, which allows for the establishment of a corresponding Markov chain model by analyzing the reachability set of the GSPN. This isomorphism means that once the Markov chain reaches its equilibrium distribution, the long-term steady-state probabilities of the system can be calculated. By constructing and analyzing such a Markov chain, it becomes possible to effectively analyze the starting points of the plant pest and disease spread diagnostic system.

3.2. Pest and Disease Spread Evolution Modeling Methods

Based on the structural description of the plant pest and disease spread evolution process mentioned earlier, the pest and disease spread evolution model using the GSPN is established. The specific steps are as follows:
Step 1: Construct the GSPN model. Build the GSPN model based on the characteristics and requirements of pest and disease spread. This includes defining the places in the system (representing the states of pest and disease), transitions (representing the changes between states), and their relationships (directed arcs). Additionally, associate time delays with the corresponding transitions.
Step 2: Generate the reachability graph and construct the isomorphic Markov chain. The distribution and movement of tokens represent changes in the system’s state. Based on the calculation results of D i j (whether the conditions are met), tokens can move from one place to another, simulating the results of the D i j conditions through transitions. This generates the reachability graph R m , where each state or marking is denoted as M 1 , M 2 , , M n (n being the total number of states), representing a specific configuration in the Petri net. Then, assign the corresponding firing rate to each arc and construct the isomorphic Markov chain [24], followed by an analysis of the model’s validity.
Step 3: Analyze the Markov chain. Convert the obtained reachability graph into a Markov model to calculate the steady-state probabilities. The steady-state probability P M i can be solved using the relevant theorems of the stationary distribution of the Markov chain and the Chapman–Kolmogorov equation:
P = P M 0 , P M 1 , , P M n 1
P Q = 0 i = 0 n 1 P M i = 1
where n is the number of states in the model, i = 0 , 1 , , n 1 , P is the state probability vector, and Q = q i j , where i = 0 , 1 , , n 1 and   j = 0 , 1 , , n 1 . For the elements off the main diagonal q i j , if there is an arc from state M i to state M j , the value is the firing rate λ k associated with the exponential distribution of the transition T k from M i to M i ; if no arc connects the two states, this element is 0. The elements on the main diagonal q i j follow the equation i j q i j , ensuring that the sum of each row equals zero [19].
Step 4: Performance evaluation and optimization. After calculating the steady-state probabilities, evaluate and optimize the performance of the pest and disease spread system constructed by the generalized stochastic Petri net model. The busy probability of places can be calculated using Formula (17). The idle probability of places can be calculated using Formula (18). Additionally, the utilization rate of system transitions can be calculated using Formula (19) [25].
P M p i = 1 = j P M j , M j [ M 0 > M j ( p ) = i
P M p i = 0 = 1 P M p i = 1
U t = M E P M

3.3. The GSPN Model for Plant Pest and Disease Spread Evolution

Based on the plant pest and disease early warning system diagram shown in Figure 1, define the places, transitions, and directed arcs. Following Step 1 as mentioned earlier, construct the GSPN model for plant pest and disease spread evolution, as shown in Figure 2.
As shown in the figure above, the model contains 12 places and 22 transitions. The specific meanings of each place and transition are provided in Table 4.
According to Step 2, the plant pest and disease spread evolution process is modeled and run using PIPEv5.2.0 to determine the reachability marking set of the Petri net. The initial marking of the GSPN is assumed to be M 1 = 1 , 1 , 1 , 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , indicating that there is one token in places P 1 , P 2 , P 3 , P 4   and   P 5 . By applying different transitions, the corresponding reachability set can be obtained.
M 1 = 1 , 1 , 1 , 1 , 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 M 2 = 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 , 0 M 3 = 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 M 4 = 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 M 5 = 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 M 6 = 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 M 7 = 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 M 8 = 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 M 9 = 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 , 0 M 10 = 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 M 11 = 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 M 12 = 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 , 0 M 13 = 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 , 0 M 14 = 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 M 15 = 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 M 16 = 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 M 17 = 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 M 18 = 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 M 19 = 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 , 0 M 20 = 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 0 M 21 = 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1 , 1 , 1 , 0 M 22 = 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 1
By constructing the reachability set of 22 states ( M 1 , M 2 , M 3 , , M 22 ), the equivalent isomorphic Markov chain of the GSPN model for plant pest and disease spread evolution is formed, as shown in Figure 3. The directed arcs in the figure represent the state transitions within the plant pest and disease spread evolution system.
Based on the construction of the Markov chain, and following Step 3 in this chapter, the steady-state probability equations for the GSPN model of plant pest and disease spread evolution are constructed using Formulas (15) and (16) to analyze the system’s operational efficiency [26]. Let P M i ,   i = 1 , 2 , , 22 be the probability that the system is in state M i in the steady state. λ j represents the transition rate ( j > 0 ). From this, the relationship between the state probabilities can be derived using Equation (20).
7 λ 1 P M 1 = λ 22 P M 22 3 λ 2 P M 2 = λ 1 P M 1 3 λ 3 P M 3 = λ 1 P M 1 3 λ 4 P M 4 = λ 1 P M 1 3 λ 5 P M 5 = λ 1 P M 1 3 λ 6 P M 6 = λ 1 P M 1 3 λ 7 P M 7 = λ 1 P M 1 3 λ 8 P M 8 = λ 1 P M 1 λ 9 P M 9 = λ 2 P M 2 + λ 3 P M 3 + λ 4 P M 4 + λ 5 P M 5 + λ 6 P M 6 + λ 7 P M 7 + λ 8 P M 8 λ 10 P M 10 = λ 2 P M 2 + λ 3 P M 3 + λ 4 P M 4 + λ 5 P M 5 + λ 6 P M 6 + λ 7 P M 7 + λ 8 P M 8 λ 11 P M 11 = λ 2 P M 2 + λ 3 P M 3 + λ 4 P M 4 + λ 5 P M 5 + λ 6 P M 6 + λ 7 P M 7 + λ 8 P M 8 7 λ 12 P M 12 = λ 9 P M 9 + λ 10 P M 10 + λ 11 P M 11 3 λ 13 P M 13 = λ 12 P M 12 3 λ 14 P M 14 = λ 12 P M 12 3 λ 15 P M 15 = λ 12 P M 12 3 λ 16 P M 16 = λ 12 P M 12 3 λ 17 P M 17 = λ 12 P M 12 3 λ 18 P M 18 = λ 12 P M 12 λ 19 P M 19 = λ 13 P M 13 + λ 14 P M 14 + λ 15 P M 15 + λ 16 P M 16 + λ 17 P M 17 + λ 18 P M 18 λ 20 P M 20 = λ 13 P M 13 + λ 14 P M 14 + λ 15 P M 15 + λ 16 P M 16 + λ 17 P M 17 + λ 18 P M 18 λ 21 P M 21 = λ 12 P M 12 + λ 13 P M 13 + λ 14 P M 14 + λ 15 P M 15 + λ 16 P M 16 + λ 17 P M 17 + λ 18 P M 18 + λ 19 P M 19 + λ 20 P M 20 λ 22 P M 22 = λ 21 P M 21 i = 1 22 P M i = 1

3.4. Stimulation Experiment of the Model

To verify the rationality and feasibility of the GSPN model for plant pest and disease spread diagnosis, a simulation experiment was conducted using the PIPE [27]. First, the model was drawn in the PIPE software, and initial markings were placed in the initial places. Then, by running the State Space Analysis function, a detailed analysis of the model’s state space was performed. The simulation results are shown in Figure 4. The analysis results indicate that the optimized Petri net model maintains a bounded state during its operation, without deadlocks, and exhibits good safety. These results confirm that the model design is reasonable and feasible.

4. Simulation Analysis

4.1. Performance Analysis of Pest and Disease Spread Evolution Process Based on the GSPN Model

By solving the above linear system of equations, the steady-state probabilities of the pest and disease spread evolution events in different states can be obtained. From the steady-state probabilities, the key areas for improving the system’s operational efficiency can be identified, which is of significant practical importance for enhancing the efficiency of emergency decision-making in pest and disease outbreaks. First, solve the place busy probability, place idle probability, and the transition utilization rate to analyze the model’s performance and identify the main factors and key nodes in the pest and disease spread process [28]. Subsequently, the average implementation rates of these key nodes are adjusted, and MATLAB is used to generate a trend graph of the steady-state probability changes, thus providing robust data support and a theoretical foundation for pest and disease control.
Based on the evolution process of plant pest and disease spread, this study divides the entire process into three stages: the data observation stage, the disease assessment stage, and the treatment execution stage. The relevant λ values are reasonably set according to the characteristics and practical conditions of each stage. The basis for these settings is illustrated in Table 5.
In the data observation stage, following the study by Grünig et al. [29], the data collection and processing rates in similar agricultural pest and disease monitoring projects were optimized based on actual sampling and processing times. Drawing upon the practical experience and data processing methodologies outlined in the literature, we set   λ 1 = 18 . In consultation with agricultural experts, the setting of λ values for observing symptoms in various plant parts was determined by considering the difficulty and time required for observation. Experts indicated that symptom observation for roots and stems is conducted at a moderate pace, with λ 2 = 10 and λ 3 = 12 , respectively. In contrast, the observation of symptoms in leaves, flowers, fruits, young shoots, and buds necessitates a more meticulous inspection, leading to the following λ values: λ 4 = 8 ,   λ 5 = 7 ,   λ 6 = 6 ,   λ 7 = 9 , and λ 8 = 8 .
In the disease assessment stage, referring to the work of Appeltans et al., which classifies the severity of leek white tip disease into early, moderate, and severe stages, we set the corresponding λ values for disease symptoms in accordance with the gradual acceleration characteristics of disease spread discussed in the literature [30]. In the early stage of the disease, the symptoms in affected plants are not immediately apparent; however, as the disease progresses, the plants gradually exhibit disease susceptibility characteristics, ultimately leading to rapid wilting and death within a short period. Based on this, we set the infection rates for mild, moderate, and severe stages as λ 9 = 18 ,   λ 10 = 8 , and λ 11 = 3 , respectively. The determination of whether the treatment standard has been met requires a comprehensive evaluation, for which λ 12 = 8 .
In the treatment execution stage, environmental control and nutrient management, as foundational measures, generally require a longer period to gradually exhibit their effects. Accordingly, we set λ 13 = 7 and λ 14 = 6 . Alimzhanova et al. noted that physical and chemical methods (such as the use of chemical pesticides and fungicides) are commonly employed treatment approaches, which can yield significant effects in a short period, leading to faster disease control [31]. Therefore, we set λ 15 = 5 and λ 16 = 4 . Mubeen et al. highlighted that biological control and field sanitation practices, as long-term measures, rely on the natural regulation and resistance enhancement of plants, and their effects appear gradually and more slowly [32]. Based on this, we set λ 17 = 3 and λ 18 = 2 . Through the corresponding treatment measures, plants gradually recover their health, with λ 19 = 3 . The plant death rate is relatively slow, with λ 20 = 14 . Finally, the determination of the treatment effect is made with λ 21 = 9 . To ensure timely updates and processing of all data, the data feedback rate is rapid, and thus, λ 22 = 20 .
Using Formulas (15), (16), and (20) from Section 3.2, the steady-state probabilities are calculated and shown in Table 6.

4.1.1. Busy Probability of a Place

In the GSPN system, when a place contains resources, it indicates that the corresponding place is busy during the pest and disease spread evolution process. First, the token distribution in each place under each marking state is presented to identify which parts of the system are active or utilized at each point. The analysis results are shown in Table 7, which details the number of tokens present in each place under each reachable marking.
Next, in conjunction with the place busy probability from Formula (17), the busy probability for each place is calculated as shown in Table 8.
In the GSPN model, the relatively busy places are P 8 and   P 10 , with busy probabilities reaching 29% and 47%, respectively. This indicates that invasion severity assessment and implementation of control measures are the two most active stages in the entire pest and disease spread model. These stages are prone to information accumulation and thus represent critical nodes for model optimization. The invasion severity assessment stage ( P 8 ) occupies a pivotal position in the decision-making chain. Any delay or error at this stage may have significant cascading effects on the overall system. To enhance the accuracy of this assessment, it is often necessary to conduct multi-level analyses and verifications, including preliminary diagnosis, refined analysis, and final confirmation. The high busy rate at the implementation of control measure stage ( P 10 ) suggests that this process involves the coordination of multiple resources, such as pesticides, labor, equipment, and funding. The scheduling and allocation of these resources are characterized by high levels of dynamism and uncertainty. Furthermore, the pest and disease control process requires real-time monitoring of treatment efficacy and timely adjustment of strategies in response to continuously evolving pest and disease symptoms.

4.1.2. Place Idle Probability

The place idle probability represents the likelihood that a specific place is in a non-busy state at a given moment. In other words, it indicates the probability that there are no tokens in that place under steady-state conditions. In accordance with Equation (18), the idle probabilities for each place were calculated, as shown in Table 9.
In the GSPN model, the places P 1 to P 6 corresponding to the data observation stage exhibit relatively high idle probabilities, indicating that information accumulation is less likely to occur during the early phase of the plant pest and disease early warning system. Therefore, these stages can be considered key targets for optimization. By enhancing the efficiency of information collection and processing at these points, the overall early warning capability of the system can be improved, thereby playing a crucial role in the effective prevention of pest and disease outbreaks.

4.1.3. Transition Utilization Rate

The transition utilization rate reflects the activity level and resource usage efficiency of each transition node within a specific time frame. In accordance with Equation (19), the utilization rates for each system transition are calculated as shown in Table 10.
Compared to other transitions, the utilization rates of t 19 , t 20 , and t 21 are relatively high. The frequent triggering of recovery of health ( t 19 ) and plant death ( t 20 ) transitions indicates a strong system demand for evaluating treatment outcomes. This reflects the necessity of continuously monitoring and assessing the health status of plants to ensure the effectiveness of control measures and to promptly adjust strategies to prevent further spread of pests and diseases. Among all, the treatment effectiveness assessment ( t 21 ) transition has the highest utilization rate. This is because, following the implementation of control measures, the system must assess their effectiveness to verify that the pest or disease is effectively managed. The high utilization rate of this transition node is critical for ensuring that pest and disease control measures are appropriate, strategies are adjusted in a timely manner, and overall system performance is optimized.

4.2. Stimulation Analysis of the Pest and Disease Diagnosis Model

Simulation analysis was performed on the plant pest and disease diagnosis model to verify the effectiveness of the proposed method and to uncover key patterns in the evolution of pest and disease spread. By comprehensively analyzing place busy probabilities, place idle probabilities, and transition utilization rates, several critical nodes within the spread evolution process were identified: namely, information filtering ( t 1 ), mild infection ( t 9 ), moderate infection ( t 10 ), severe infection ( t 11 ), reaching treatment standards ( t 12 ), and treatment effectiveness assessment ( t 21 ). By altering the average firing rates of these transitions, the analysis explored their impact on the overall pest and disease propagation process and investigated the underlying mechanisms of each node within the diagnostic workflow. This approach contributes to optimizing the efficiency and effectiveness of the early warning system, enhancing the timeliness and accuracy of pest and disease control measures, and ultimately safeguarding the healthy development of plant cultivation.

4.2.1. Data Observation Stage

By varying λ 1 from 1 to 20 while keeping all other λ value constants, the relationship between λ 1 and the steady-state probabilities of each system state is uncovered, as illustrated in Figure 5. As λ 1 increases—indicating a faster data-processing rate in the data observation stage—the probability of the system remaining in the information filtering state P M 1 significantly decreases, while the probability of reaching the treatment effectiveness assessment state P M 21 increases most rapidly. This suggests that enhancing the data-filtering efficiency during the early stages of pest and disease spread can substantially improve the system’s overall processing performance, thereby accelerating progression toward the final stage of treatment assessment. The observed trend reflects the presence of an effective feedback mechanism: speeding up the information filtering and integration phase directly drives higher efficiency in subsequent evaluation, decision-making, and control processes. Such changes highlight the critical role of the information-processing speed in pest and disease diagnosis. In practical applications, it is essential to optimize the information-processing pipeline to improve the system’s overall response speed and effectiveness.

4.2.2. Disease Judgment Stage

A systematic simulation analysis was conducted on the disease judgment phase in the plant pest and disease spread evolution process. First, the relationships between the mild infection rate, moderate infection rate, and severe infection rate with the probability of meeting treatment criteria were explored. Then, the interactions between the mild infection rate, moderate infection rate, and severe infection rate were analyzed. Based on this, the simulation derived the critical surfaces for three different pest and disease early warning thresholds. These findings provide scientific evidence for developing effective pest and disease control strategies.
While keeping all other λ values constant except for λ 9 and λ 10 , the relationship between the mild infection rate, moderate infection rate, and the probability of meeting treatment criteria is derived from Formula (20):
P M 12 = 945 λ 9 λ 10     17640 λ 9 + 17640 λ 10   + 28057 λ 9 λ 10
The plant pest and disease early warning threshold is set at 0.005. The contour lines in Figure 6 show the regions where the probability of meeting treatment criteria is the same under different infection rate combinations. For example, when λ 9 = 1.8 and λ 10 = 2.4 , P M 12 = 0.0209 . This indicates that under this infection rate combination, the probability of meeting treatment criteria is 2.09%. The system needs to activate the early warning mechanism and promptly implement corresponding control measures. This combination is particularly important in the prevention and early intervention stages. By enhancing monitoring, integrated control, and preventive measures, plant health and efficient production can be ensured.
Under the condition that all other λ values remain constant except for λ 10 and λ 11 , the relationship between the moderate infection rate, severe infection rate, and the probability of meeting treatment criteria is derived from Formula (20):
P M 12 = 105 λ 10   λ 11     1960 λ 10 + 1960 λ 11   + 2573 λ 10 λ 11
The changes in the contour lines in Figure 7 show the regions where the probability of meeting the treatment criteria is the same under different infection rate combinations. For example, when λ 10 = 1.8 and λ 11 = 2.4 , P M 12 = 0.0234 . This indicates that under this infection rate combination, the probability of meeting the treatment criteria is 2.34%. The system needs to activate the early warning mechanism and promptly implement corresponding control measures. Compared to the λ 9 , λ 10 combination, the combination of λ 10 and λ 11 has a greater influence on the probability of meeting the treatment criteria, with more regions reaching higher probabilities. This combination requires special attention in pest and disease control measures. For areas with high rates of moderate and severe infection, the monitoring frequency should be increased. Combined physical, chemical, and biological control methods should be employed to comprehensively manage moderate and severe infections.
Under the condition that all other λ values remain constant except for λ 11 and λ 9 , the relationship between the severe infection rate, mild infection rate, and the probability of meeting treatment criteria is derived from Formula (20):
P M 12 = 945 λ 9   λ 11     17640 λ 9 + 17640 λ 11   + 24382 λ 9 λ 11
The changes in the contour lines in Figure 8 show the regions where the probability of meeting the treatment criteria is the same under different infection rate combinations. For example, when λ 11 = 1.8 and λ 9 = 2.4 , P M 12 = 0.0231 . This indicates that under this infection rate combination, the probability of meeting the treatment criteria is 2.31%. The system needs to activate the early warning mechanism and promptly implement corresponding control measures. Compared to the λ 9 , λ 10 combination and the λ 10 , λ 11 combination, the λ 11 , λ 9 rate combination has an intermediate impact on the probability of meeting the treatment criteria. This indicates that, although the individual effect of mild infection is relatively small, its combined impact with severe infection remains significant. Therefore, in the pest and disease control process, it is essential to consider the combined effects of different infection stages and develop multi-level control strategies to ensure timely and effective management of disease progression.
Through the comparative analysis of the different infection rate combinations, the key impacts of different infection stages on pest and disease control can be identified. To further understand the complex spread mechanisms of plant pests and diseases, and to develop more effective control strategies in practical applications, the interactions between the mild infection rate, moderate infection rate, and severe infection rate will continue to be explored in order to establish graded early warning and control strategies.
Three different early warning activation thresholds are set to measure the severity of pest and disease occurrence and trigger the corresponding control measures. The specific definitions are as follows: When the probability of pest and disease occurrence reaches 0.005, the system activates the blue alert. This is applicable when pests or diseases have just started to appear or have a low level of spread, and the main goal is early detection and prevention to avoid further spread of the condition. When the probability of pest and disease occurrence reaches 0.01, the system activates the yellow alert. This applies when the pest and disease spread is more significant but not yet severe, requiring more active control measures to manage the disease progression. When the probability of pest and disease occurrence reaches 0.015, the system activates the red alert. This applies when the pest and disease spread is rapid and severe, requiring immediate and strong control measures to prevent widespread economic losses and plant death.
As shown in Figure 9, when λ 9 = 1.15 , λ 10 = 0.13 , λ 11 = 0.95 , the system reaches the blue alert critical surface, indicating the need for attention and early control measures. When λ 9 = 1.17 , λ 10 = 0.37 , λ 11 = 1.81 , the system reaches the yellow alert critical surface, suggesting the need for more active control measures to prevent further deterioration of the condition. When λ 9 = 1.59 , λ 10 = 0.88 , λ 11 = 1.84 , the system reaches the red alert critical surface, requiring immediate and strong control measures to prevent widespread economic losses.

4.2.3. Treatment Execution Stage

In the simulation, keeping all other λ values constant, λ 21 was varied from 1 to 20. The relationship between λ 21 and the steady-state probabilities of each system state is shown in Figure 10. As λ 21 increases, which indicates that the speed of the treatment effectiveness assessment process is accelerated, the probability of meeting the treatment effectiveness assessment, P M 21 , significantly decreases. This results in an overall increase in the probabilities of other states, with the probabilities of severe infection P M 11 and recovery of health P M 19 increasing the most. This behavior occurs because the system has more opportunities to try different treatment methods until a viable and effective solution is found, thus improving the treatment speed. Additionally, the changes in treatment effectiveness assessment also affect data monitoring and subsequent control measure implementation through feedback. Since the system needs to continuously adjust control measures based on treatment effectiveness, this change leads to iterative and repeated adjustments in the treatment process. This, in turn, enhances the overall system’s efficiency and resource allocation. Therefore, to improve treatment efficiency and effectiveness, the system needs to automatically adjust its treatment strategies based on real-time plant growth data and pest/disease conditions, ensuring a responsive and optimized treatment process.

5. Case Study

5.1. The GSPN Model for the Spread and Evolution of Grape Downy Mildew

Grape downy mildew is a common plant disease caused by Plasmopara viticola, widely distributed in grape-growing areas, and especially severe under humid and warm climatic conditions. The disease is transmitted through airborne spores that infect grape plants, often initially attacking the leaves and forming typical white mold layers on the leaf surfaces. If not promptly controlled, downy mildew can cause significant losses to both the yield and quality of grapes [33]. As the spread of downy mildew is influenced by environmental factors such as temperature and humidity, establishing an effective early warning system is crucial for the prevention and control of this disease.
In the early warning system for grape downy mildew, the leaves are the most critical observation area, while the monitoring of young shoots also holds certain significance. In comparison, the observation of roots, stems, flowers, fruits, and buds has a lesser role in disease assessment. To better align the GSPN model with the actual prevention and control needs of grape downy mildew, the model of plant pest and disease spread evolution is simplified in this case study. Based on practical considerations, we set λ 2 = λ 3 = λ 5 = λ 6 = λ 7 = λ 8 = 0 , thereby creating a more simplified GSPN model focused specifically on the leaf disease analysis of grape downy mildew.

5.2. Verification of the Grape Downy Mildew Pest and Disease Early Warning System

Based on the GSPN model for the spread and evolution of grape downy mildew, this study evaluated the severity of the disease and implemented corresponding control strategies through simulation analysis of different disease occurrence probability combinations. To validate the effectiveness of this model, data collection was conducted from April to May 2025 at a grape planting base in Kunming, Yunnan Province, with the experimental period lasting two months. During the experiment, the health status of grape leaves was closely monitored, and high-resolution imaging equipment was used for periodic image data collection of these areas. Researchers collected images of selected grape plants at a fixed time each day (from 9:00 am to 10:00 am) to ensure stable environmental lighting and avoid interference with image quality. At least three images were taken of each grape plant to comprehensively document growth changes and disease development. The captured images were annotated by professionals, particularly marking the infected areas for downy mildew lesions. The annotation and segmentation of the leaves and lesions were performed using Labelme, which allows for precise labeling of the leaf and lesion areas and generates corresponding JSON format files. These files were ultimately used to train and validate the segmentation model’s performance.
The indicators for classifying disease severity are typically set based on the extent of the disease’s impact on crops. These indicators help farmers, horticulturists, and plant protection experts assess the severity of the disease and take appropriate control measures accordingly. For downy mildew, the area of the lesions is an intuitive indicator for evaluating disease severity. By measuring the proportion of the lesion area relative to the leaf area, one can roughly determine the stage of development and severity of the disease. The calculation involves determining the ratio of the number of pixels in the lesion area to the number of pixels in the leaf area, which gives the percentage of the leaf area affected by the lesions. The formula for this calculation is shown in Formula (24):
P = A d A 1 × 100 %
In Formula (24), P represents the percentage of the downy mildew lesion area relative to the entire leaf area; A d is the area of the lesion region; and A 1 is the area of the leaf region. Since the dataset used in this study consists of single-leaf images, to better assess the severity of the disease, the severity of grape downy mildew was classified by calculating the ratio of the pixel area of the downy mildew lesions on a single leaf to the pixel area of the entire grape leaf.
In the disease identification process, a two-step segmentation method is used to process grape leaf images. The first step involves using a leaf segmentation model to extract the grape leaf, separating it from the complex background and obtaining an image of the leaf with a simple background. In the second step, based on the leaf image with a simple background, a lesion segmentation model is used to extract the lesion area of downy mildew. After obtaining the lesion area, the pixel area of the lesion is calculated and compared with the pixel area of the leaf. This ratio is used to calculate the proportion of the lesion area relative to the total leaf area, and the severity of the disease is then determined.
According to the Chinese national standard GB/T17980.122-2004 [34], the classification of grape downy mildew is based on the proportion of the lesion area relative to the leaf area. In this study, the classification is specifically divided into mild, moderate, and severe infections. The classification standards are as follows: mild infection is defined as when the lesion occupies less than 25% of the leaf area; moderate infection is when the lesion occupies between 25% and 75% of the leaf area; severe infection is when the lesion occupies more than 75% of the leaf area. The specific grading standards are shown in Table 11.
Based on the GSPN model for the spread and evolution of grape downy mildew, the analysis of different combinations of disease occurrence probabilities enables the assessment of disease severity and the implementation of corresponding control strategies. Through comparative analysis of various infection stages, this study illustrates the spread of downy mildew in grape-growing areas of Kunming and demonstrates the effectiveness of the early warning mechanism. The specific descriptions of grape downy mildew severity are detailed in Table 12.
According to the early warning activation rules, the early warning probability for grape downy mildew is determined to be P M 12 = 0.018 > 0.015 , thereby triggering a red warning. Experimental data further show that on 30 April 2025, lesions almost completely covered all leaves, fruits were rotting, and mold had nearly entirely spread across the plant surfaces, resulting in severe damage to grapevine health—consistent with the findings of this study. The disease progression trend of grape downy mildew is illustrated in Figure 11.

6. Conclusions

In the context of modern agricultural demands generated by large-scale planting, the spread and control of plant pests and diseases have become important research topics in agricultural production and plant protection, which are critical for improving production efficiency and ensuring crop health. However, existing studies often lack an in-depth analysis of the dynamic evolution of pest and disease spread and complex system modeling, especially the spatial and temporal dynamics of pest and disease spread, which have not been systematically quantitatively analyzed.
This paper first identifies and classifies plant pest and disease early warning mechanisms. Based on environmental factors and symptomatology of affected plant parts, a dynamic model of pest and disease spread is established, and a systematic description of the plant pest and disease early warning mechanism system is provided. Secondly, a generalized GSPN model is constructed to analyze the spread process and influencing factors of pests and diseases. By utilizing the isomorphic relationship between Petri nets and Markov chains, the reachability graph is generated, and a Markov chain model is constructed. The model’s validity and feasibility are verified using PIPE.
On this basis, three performance indicators—place busy probability, place idle probability, and transition utilization rate—are calculated to identify the key factors and critical nodes in the pest and disease spread process, namely, information filtering ( t 1 ), mild infection ( t 9 ), moderate infection ( t 10 ), severe infection ( t 11 ), reaching treatment standards ( t 12 ), and treatment effectiveness assessment ( t 21 ). By changing the values of these key factors, the impact of these factors on the overall pest and disease evolution process is analyzed. The simulation results show that different infection rate combinations significantly affect the probability of meeting treatment criteria. Among them, the combination of a moderate infection rate and severe infection rate has the most significant impact on the probability of meeting treatment criteria, while the effect of the mild infection rate is relatively smaller. By considering the interactions between mild, moderate, and severe infection rates, critical surfaces for different pest and disease early warning thresholds (0.005, 0.01, 0.015) are derived. The plant pest and disease early warning critical surfaces illustrate the probability distribution of reaching the respective early warning thresholds under different infection rate combinations, providing an intuitive basis for early warning decisions and treatment measures.
In practice, the plant pest and disease diagnosis model based on the GSPN developed in this paper is designed to provide effective decision support for agricultural production and plant protection. This model can be used to monitor and alert for pest and disease situations in plant cultivation by simulating the probability of meeting treatment criteria under different infection rate combinations, helping farmers and agricultural management departments take appropriate control measures in a timely manner. Based on the characteristics of the spread and evolution of grape downy mildew, this study established a simplified GSPN model focusing on the analysis of leaf lesions. Experimental data were collected at a grape cultivation base in Kunming, Yunnan Province, China. The experimental results demonstrate that the predictions made by the GSPN model are consistent with the actual data collected. During the early warning and control of grape downy mildew, the model accurately identified the disease transmission process and severity, successfully predicting the occurrence of the disease. This experimental validation further confirms the practical applicability and value of the model in real-world agricultural environments.
However, there are still some limitations in this study. Firstly, in the process of agricultural pest and disease spread, multiple environmental factors, different crop types, and complex interactions are often involved. This means the application of Petri nets in these areas potentially faces challenges such as high model complexity and difficulties in directly applying simulation results to practice. In addition, with large and rapidly changing datasets, ensuring the real-time performance and accuracy of the model is also an important direction for future research. Second, although this paper considers the interactions between mild, moderate, and severe infection rates, other factors, such as climatic conditions, soil moisture, and nutritional status, which can also influence pest and disease spread, have not been thoroughly addressed. These factors will be the focus of more in-depth research in future experiments.

Author Contributions

Conceptualization, W.R. and Q.T.; funding acquisition, W.R.; methodology, Q.T.; project administration, W.R.; software, Q.T.; writing—original draft, Q.T. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author [Qilian Tang. Email: 202302111607@stu.ynufe.edu.cn].

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Zou, B.; Mishra, A.K. Modernizing Smallholder Agriculture and Achieving Food Security: An Exploration in Machinery Services and Labor Reallocation in China. Appl. Econ. Perspect. Policy 2024, 46, 1662–1691. [Google Scholar] [CrossRef]
  2. Corredor-Moreno, P.; Saunders, D.G.O. Expecting the Unexpected: Factors Influencing the Emergence of Fungal and Oomycete Plant Pathogens. New Phytol. 2020, 225, 118–125. [Google Scholar] [CrossRef] [PubMed]
  3. Prakash, R.M.; Saraswathy, G.P.; Ramalakshmi, G.; Mangaleswari, K.H.; Kaviya, T. Detection of Leaf Diseases and Classification Using Digital Image Processing. In Proceedings of the 2017 International Conference on Innovations in Information, Embedded and Communication Systems (ICIIECS), Coimbatore, India, 17–18 March 2017; pp. 1–4. [Google Scholar]
  4. Krithika, P.; Veni, S. Leaf Disease Detection on Cucumber Leaves Using Multiclass Support Vector Machine. In Proceedings of the 2017 International Conference on Wireless Communications, Signal Processing and Networking (WiSPNET), Chennai, India, 22–24 March 2017; pp. 1276–1281. [Google Scholar]
  5. Motie, J.B.; Saeidirad, M.H.; Jafarian, M. Identification of Sunn-Pest Affected (Eurygaster integriceps put.) Wheat Plants and Their Distribution in Wheat Fields Using Aerial Imaging. Ecol. Inform. 2023, 76, 102146. [Google Scholar] [CrossRef]
  6. Hernández, S.; López, J.L. Uncertainty Quantification for Plant Disease Detection Using Bayesian Deep Learning. Appl. Soft Comput. 2020, 96, 106597. [Google Scholar] [CrossRef]
  7. Nagasubramanian, K.; Singh, A.K.; Singh, A.; Sarkar, S.; Ganapathysubramanian, B. Usefulness of Interpretability Methods to Explain Deep Learning Based Plant Stress Phenotyping. arXiv 2020. [Google Scholar] [CrossRef]
  8. Qiu, J.; Lu, X.; Wang, X.; Chen, C.; Chen, Y.; Yang, Y. Research on Image Recognition of Tomato Leaf Diseases Based on Improved AlexNet Model. Heliyon 2024, 10, e33555. [Google Scholar] [CrossRef]
  9. Fuentes, A.; Yoon, S.; Kim, S.C.; Park, D.S. A Robust Deep-Learning-Based Detector for Real-Time Tomato Plant Diseases and Pests Recognition. Sensors 2017, 17, 2022. [Google Scholar] [CrossRef]
  10. Szegedy, C.; Liu, W.; Jia, Y.; Sermanet, P.; Reed, S.; Anguelov, D.; Erhan, D.; Vanhoucke, V.; Rabinovich, A. Going Deeper With Convolutions. In Proceedings of the 2015 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Boston, MA, USA, 7–12 June 2015; pp. 1–9. [Google Scholar]
  11. Adegun, A.; Viriri, S. Deep Learning Techniques for Skin Lesion Analysis and Melanoma Cancer Detection: A Survey of State-of-the-Art. Artif. Intell. Rev. 2021, 54, 811–841. [Google Scholar] [CrossRef]
  12. Ahad, M.T.; Li, Y.; Song, B.; Bhuiyan, T. Comparison of CNN-Based Deep Learning Architectures for Rice Diseases Classification. Artif. Intell. Agric. 2023, 9, 22–35. [Google Scholar] [CrossRef]
  13. Yang, C.-Y.; Lin, Y.-N.; Shen, V.R.L.; Shen, F.H.C.; Lin, Y.-C. Petri Net Modeling and Analysis of an IoT-Enabled System for Real-Time Monitoring of Eggplants. Syst. Eng. 2025, 28, 270–283. [Google Scholar] [CrossRef]
  14. Geng, X.; Zhu, C.; Zhang, J.; Xiong, Z. Prediction of Soil Fertility Change Trend Using a Stochastic Petri Net. J. Signal Process. Syst. 2021, 93, 285–297. [Google Scholar] [CrossRef]
  15. Wang, W.; Yang, S.; Zhang, X.; Xia, X. Research on the Smart Broad Bean Harvesting System and the Self-Adaptive Control Method Based on CPS Technologies. Agronomy 2024, 14, 1405. [Google Scholar] [CrossRef]
  16. Zhang, Y.; Zhang, Y.; Wen, F.; Chung, C.Y.; Tseng, C.-L.; Zhang, X.; Zeng, F.; Yuan, Y. A Fuzzy Petri Net Based Approach for Fault Diagnosis in Power Systems Considering Temporal Constraints. Int. J. Electr. Power Energy Syst. 2016, 78, 215–224. [Google Scholar] [CrossRef]
  17. Hui, M.; Ni, F.; Liu, W.; Liu, J.; Chen, N.; Zhou, X. SPN-Based Dynamic Risk Modeling of Fire Incidents in a Smart City. Appl. Sci. 2025, 15, 2701. [Google Scholar] [CrossRef]
  18. Zegordi, S.H.; Davarzani, H. Developing a Supply Chain Disruption Analysis Model: Application of Colored Petri-Nets. Expert Syst. Appl. 2012, 39, 2102–2111. [Google Scholar] [CrossRef]
  19. Peng, L.; Xie, P.; Tang, Z.; Liu, F. Modeling and Analyzing Transmission of Infectious Diseases Using Generalized Stochastic Petri Nets. Appl. Sci. 2021, 11, 8400. [Google Scholar] [CrossRef]
  20. Shafik, W.; Tufail, A.; De Silva Liyanage, C.; Apong, R.A.A.H.M. Using Transfer Learning-Based Plant Disease Classification and Detection for Sustainable Agriculture. BMC Plant Biol. 2024, 24, 136. [Google Scholar] [CrossRef]
  21. Song, Y.; Xu, H.; Fang, D.; Sang, X. Modelling and Analysis of Emergency Scenario Evolution System Based on Generalized Stochastic Petri Net. Systems 2025, 13, 107. [Google Scholar] [CrossRef]
  22. Chiola, G.; Marsan, M.A.; Balbo, G.; Conte, G. Generalized Stochastic Petri Nets: A Definition at the Net Level and Its Implications. IEEE Trans. Softw. Eng. 1993, 19, 89–107. [Google Scholar] [CrossRef]
  23. Molloy, M.K. Discrete Time Stochastic Petri Nets. IEEE Trans. Softw. Eng. 1985, 11, 417–423. [Google Scholar] [CrossRef]
  24. Sun, H.; Liu, J.; Han, Z.; Jiang, J. Stochastic Petri Net Based Modeling of Emergency Medical Rescue Processes during Earthquakes. J. Syst. Sci. Complex. 2021, 34, 1063–1086. [Google Scholar] [CrossRef] [PubMed]
  25. Ma, Z.; Li, Z.; Giua, A. Design of Optimal Petri Net Controllers for Disjunctive Generalized Mutual Exclusion Constraints. IEEE Trans. Autom. Control 2015, 60, 1774–1785. [Google Scholar] [CrossRef]
  26. Liu, S.; Li, W.; Gao, P.; Sun, Y. Modeling and Performance Analysis of Gas Leakage Emergency Disposal Process in Gas Transmission Station Based on Stochastic Petri Nets. Reliab. Eng. Syst. Saf. 2022, 226, 108708. [Google Scholar] [CrossRef]
  27. Dingle, N.J.; Knottenbelt, W.J.; Suto, T. PIPE2: A Tool for the Performance Evaluation of Generalised Stochastic Petri Nets. ACM SIGMETRICS Perform. Eval. Rev. 2009, 36, 34–39. [Google Scholar] [CrossRef]
  28. Wang, C.; Wang, L.; Su, C.; Jiang, M.; Li, Z.; Deng, J. Modeling and Performance Analysis of Emergency Response Process for Hydrogen Leakage and Explosion Accidents. J. Loss Prev. Process Ind. 2024, 87, 105239. [Google Scholar] [CrossRef]
  29. Grünig, M.; Razavi, E.; Calanca, P.; Mazzi, D.; Wegner, J.D.; Pellissier, L. Applying Deep Neural Networks to Predict Incidence and Phenology of Plant Pests and Diseases. Ecosphere 2021, 12, e03791. [Google Scholar] [CrossRef]
  30. Appeltans, S.; Pieters, J.G.; Mouazen, A.M. Detection of Leek White Tip Disease under Field Conditions Using Hyperspectral Proximal Sensing and Supervised Machine Learning. Comput. Electron. Agric. 2021, 190, 106453. [Google Scholar] [CrossRef]
  31. Alimzhanova, M.; Meirbekov, N.; Syrgabek, Y.; López-Serna, R.; Yegemova, S. Plant- and Microbial-Based Organic Disease Management for Grapevines: A Review. Agriculture 2025, 15, 963. [Google Scholar] [CrossRef]
  32. Mubeen, I.; Fawzi Bani Mfarrej, M.; Razaq, Z.; Iqbal, S.; Naqvi, S.A.H.; Hakim, F.; Mosa, W.F.A.; Moustafa, M.; Fang, Y.; Li, B. Nanopesticides in Comparison with Agrochemicals: Outlook and Future Prospects for Sustainable Agriculture. Plant Physiol. Biochem. 2023, 198, 107670. [Google Scholar] [CrossRef]
  33. Sun, Z.-B.; Song, H.-J.; Liu, Y.-Q.; Ren, Q.; Wang, Q.-Y.; Li, X.-F.; Pan, H.-X.; Huang, X.-Q. The Potential of Microorganisms for the Control of Grape Downy Mildew—A Review. J. Fungi 2024, 10, 702. [Google Scholar] [CrossRef]
  34. GB/T 17980.122-2004; Pesticide-Guidelines for the Field Efficacy Trials (II)—Part 122: Fungicides Against Downy Mildew of Grape. General Administration of Quality Supervision, Inspection and Quarantine of the People’s Republic of China: Beijing, China, 2004.
Figure 1. System diagram of plant pest and disease early warning mechanism.
Figure 1. System diagram of plant pest and disease early warning mechanism.
Applsci 15 06656 g001
Figure 2. The GSPN model for plant pest and disease spread evolution.
Figure 2. The GSPN model for plant pest and disease spread evolution.
Applsci 15 06656 g002
Figure 3. The equivalent isomorphic Markov chain of the GSPN model.
Figure 3. The equivalent isomorphic Markov chain of the GSPN model.
Applsci 15 06656 g003
Figure 4. PIPE model simulation validation diagram.
Figure 4. PIPE model simulation validation diagram.
Applsci 15 06656 g004
Figure 5. Steady-state probability distribution of the plant pest and disease diagnosis model under variation in λ 1 .
Figure 5. Steady-state probability distribution of the plant pest and disease diagnosis model under variation in λ 1 .
Applsci 15 06656 g005
Figure 6. Relationship between mild infection rate, moderate infection rate, and probability of meeting treatment criteria.
Figure 6. Relationship between mild infection rate, moderate infection rate, and probability of meeting treatment criteria.
Applsci 15 06656 g006
Figure 7. Relationship between moderate infection rate, severe infection rate, and probability of meeting treatment criteria.
Figure 7. Relationship between moderate infection rate, severe infection rate, and probability of meeting treatment criteria.
Applsci 15 06656 g007
Figure 8. Relationship between severe infection rate, mild infection rate, and probability of meeting treatment criteria.
Figure 8. Relationship between severe infection rate, mild infection rate, and probability of meeting treatment criteria.
Applsci 15 06656 g008
Figure 9. Critical surface of plant pest and disease early warning.
Figure 9. Critical surface of plant pest and disease early warning.
Applsci 15 06656 g009
Figure 10. Steady-state probability distribution of the plant pest and disease diagnosis model under variation in λ 21 .
Figure 10. Steady-state probability distribution of the plant pest and disease diagnosis model under variation in λ 21 .
Applsci 15 06656 g010
Figure 11. Figure grape downy mildew disease progression trend.
Figure 11. Figure grape downy mildew disease progression trend.
Applsci 15 06656 g011
Table 1. Classification and definition of environmental factors for diseases.
Table 1. Classification and definition of environmental factors for diseases.
CDiseaseCMoistureCFertilizerCTemperatureCHumidityCLightCPH Value
D1Downy MildewE1DryA1Excessive Nitrogen FertilizerTR115–20 °CH1High HumidityL1Low LightPH1Alkaline
D2Powdery MildewE2Insufficient WaterA2Insufficient FertilizationTR220–25 °CH2Moderate HumidityL2Moderate LightPH2Neutral
D3Gray MoldE3Water ExcessA3Proper Fertilizer ApplicationTR325–30 °CH3Low HumidityL3High LightPH3Acidic
DmDisease mEaMoisture Condition aAbFertilization Status bTRcTemperature Condition cHdHumidity Condition dLeLight Condition ePHfPH Value Condition f
Table 2. Classification and definition of environmental factors for pests.
Table 2. Classification and definition of environmental factors for pests.
CDiseaseCMoistureCFertilizerCTemperatureCHumidityCLightCPH Value
D4AphidsE1DryA1Excessive Nitrogen FertilizerTR115–20 °CH1High HumidityL1Low LightPH1Alkaline
D5BorersE2Insufficient WaterA2Insufficient FertilizationTR220–25 °CH2Moderate HumidityL2Moderate LightPH2Neutral
D6Red Spider MiteE3Water ExcessA3Proper Fertilizer ApplicationTR325–30 °CH3Low HumidityL3High LightPH3Acidic
DnDisease nEaMoisture Condition aAbFertilization Status bTRcTemperature Condition cHdHumidity Condition dLeLight Condition ePHfPH value Condition f
Table 3. Classification and definition of damage symptoms and control measures.
Table 3. Classification and definition of damage symptoms and control measures.
CRootCStemCLeafCFlowerCFruitCYoung ShootCBudCControl Measures
R1NoS1Disease SpotsY1AbsciseK1Mold LayerFR1PoorNS1DeathB1Mold LayerC1Environmental Control
R2IndirectS2Powder CoatingY2DriedK2Disease SpotsFR2RotNS2Restricted GrowthB2Spots AppearC2Nutritional Management
R3AttachedS3PestY3Disease SpotsK3DeathFR3IndirectNS3Disease SpotsB3ObstructionC3Nutritional Management
……
RgRoot gShStem hYjLeaf jKkFlower kFRlFruit lNSoYoung Shoot oBpBud pCqControl Measures q
Table 4. The meanings of places and transitions in the GSPN model for plant pest and disease spread evolution.
Table 4. The meanings of places and transitions in the GSPN model for plant pest and disease spread evolution.
PlacesMeaning of PlacesTransitionsMeaning of Transitions
P1Water and Fertilizer Datat1Information Filtering
P2Temperature Datat2Root Symptom Observation
P3Humidity Datat3Stem Symptom Observation
P4Light Datat4Leaf Symptom Observation
P5pH Valuet5Flower Symptom Observation
P6Data Integrationt6Fruit Symptom Observation
P7Infection Severity Assessmentt7Young Shoot Symptom Observation
P8Invasion Severity Assessmentt8Bud Symptom Observation
P9Control Method Decisiont9Mild Infection
P10Implementation of Control Measurest10Moderate Infection
P11Data Monitoringt11Severe Infection
P12End of Treatmentt12Reaching Treatment Standards
t13Environmental Control
t14Nutritional Management
t15Physical Methods
t16Chemical Methods
t17Biological Control
t18Field Cleanliness and Standard Cultivation
t19Recovery of Health
t20Plant Death
t21Treatment Effectiveness Assessment
t22Data Feedback
Table 5. Basis for setting λ value.
Table 5. Basis for setting λ value.
Data Stageλ ValueSpecific ValueSource
Data Observation Stageλ118Grünig et al., Experimental Data
λ210Expert Recommendations
λ312Expert Recommendations
λ48Expert Recommendations
λ57Expert Recommendations
λ66Expert Recommendations
λ79Expert Recommendations
λ88Expert Recommendations
Disease Assessment Stageλ918Appeltans et al.
λ108Appeltans et al.
λ113Appeltans et al.
λ128Expert Recommendations, Experimental Data
Treatment Execution Stageλ137Alimzhanova et al.
λ146Alimzhanova et al.
λ155Alimzhanova et al.
λ164Alimzhanova et al.
λ173Mubeen et al.
λ182Mubeen et al.
λ193Expert Recommendations
λ2014Expert Recommendations
λ219Expert Recommendations, Experimental Data
λ2220Expert Recommendations, Experimental Data
Table 6. Steady-state probabilities.
Table 6. Steady-state probabilities.
MarkSteady-State ProbabilityMarkSteady-State Probability
P(M1)0.013443P(M12)0.030248
P(M2)0.008066P(M13)0.011523
P(M3)0.006722P(M14)0.013443
P(M4)0.010083P(M15)0.016132
P(M5)0.011523P(M16)0.020165
P(M6)0.013443P(M17)0.026887
P(M7)0.008962P(M18)0.04033
P(M8)0.010083P(M19)0.161321
P(M9)0.031368P(M20)0.034569
P(M10)0.070578P(M21)0.188208
P(M11)0.188208P(M22)0.084694
Table 7. Distribution of tokens in the library under different identification states.
Table 7. Distribution of tokens in the library under different identification states.
P1P2P3P4P5P6P7P8P9P10P11P12
M1111110000000
M2000001000000
M3000000100000
M4000000100000
M5000000100000
M6000000100000
M7000000100000
M8000000100000
M9000000100000
M10000000010000
M11000000010000
M12000000010000
M13000000001000
M14000000000100
M15000000000100
M16000000000100
M17000000000100
M18000000000100
M19000000000100
M20000000000010
M21000000001110
M22000000000001
Table 8. Busy probability for each place.
Table 8. Busy probability for each place.
PlaceBusy ProbabilityPlaceBusy Probability
M10.013443M70.092184
M20.013443M80.289034
M30.013443M90.199731
M40.013443M100.466486
M50.013443M110.222777
M60.008066M120.084694
Table 9. Idle probabilities for each place.
Table 9. Idle probabilities for each place.
PlaceIdle ProbabilityPlaceIdle Probability
M10.986557M70.907816
M20.986557M80.710966
M30.986557M90.800269
M40.986557M100.533514
M50.986557M110.777223
M60.991934M120.915306
Table 10. Transition utilization rate.
Table 10. Transition utilization rate.
TransitionUtilization RateTransitionUtilization Rate
t10.013443t120.289034
t20.008066t130.011523
t30.008066t140.011523
t40.008066t150.011523
t50.008066t160.011523
t60.008066t170.011523
t70.008066t180.011523
t80.008066t190.278278
t90.092184t200.278278
t100.092184t210.188208
t110.092184t220.084694
Table 11. Classification standard of downy mildew.
Table 11. Classification standard of downy mildew.
Severity LevelDescription
Mild InfectionLesions occupy less than 25% of the leaf area
Moderate InfectionLesions occupy 25% to 75% of the leaf area
Severe InfectionLesions occupy more than 75% of the leaf area
Table 12. Description of grape downy mildew severity.
Table 12. Description of grape downy mildew severity.
DateP(M12)Detailed Disease DescriptionWarning Level
10 April0.002Small, translucent spots appear on the front side of the leaves; under high humidity, mold is visible; lesion edges are unclear.Blue Warning
11 April0.004Lesions begin to turn yellow and gradually take on a circular or irregular shape; a small amount of white mold appears on the leaf underside.Blue Warning
18 April0.007Lesions expand; under high humidity, mold increases significantly; infected leaves begin to wither, affecting grape photosynthesis.Blue Warning
22 April0.012Lesions merge; mold spreads further with increased humidity; fruits begin to show signs of mold infection, affecting fruit development.Yellow Warning
26 April0.014Lesions have extensively expanded; mold covers most leaves; some fruits show severe rot, impacting yield.Yellow Warning
30 April0.018Lesions nearly cover all leaves; fruits rot; mold almost fully covers surfaces, causing severe damage to grapevine health.Red Warning
3 May0.017Lesions decrease; some leaves recover, but mold persists; fruit conditions improve somewhat but full recovery has not yet occurred.Yellow Warning
10 May0.013Most mold disappears; lesion area gradually reduces; grapevines begin to recover and resume growth; further management is still required.Yellow Warning
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Ran, W.; Tang, Q. Research on Plant Disease and Pest Diagnosis Model Based on Generalized Stochastic Petri Net. Appl. Sci. 2025, 15, 6656. https://doi.org/10.3390/app15126656

AMA Style

Ran W, Tang Q. Research on Plant Disease and Pest Diagnosis Model Based on Generalized Stochastic Petri Net. Applied Sciences. 2025; 15(12):6656. https://doi.org/10.3390/app15126656

Chicago/Turabian Style

Ran, Wenxue, and Qilian Tang. 2025. "Research on Plant Disease and Pest Diagnosis Model Based on Generalized Stochastic Petri Net" Applied Sciences 15, no. 12: 6656. https://doi.org/10.3390/app15126656

APA Style

Ran, W., & Tang, Q. (2025). Research on Plant Disease and Pest Diagnosis Model Based on Generalized Stochastic Petri Net. Applied Sciences, 15(12), 6656. https://doi.org/10.3390/app15126656

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop