A greenhouse crop water, fertilizer and pesticide integrated intelligent control method

By using a cross-mapping fusion network to adaptively segment greenhouse crop data and extract features from dual paths, the problem of low accuracy in the coordinated decision-making of water, fertilizer and pesticides in greenhouse crops is solved, and an efficient coordinated supply strategy of water, fertilizer and pesticides is realized.

CN123180930APending Publication Date: 2026-11-27ANHUI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In existing technologies, the synergistic decision-making of water, fertilizer and pesticide in greenhouse crops has low accuracy, poor efficiency in long-term processing, and the models are difficult to adapt to the multi-stage growth changes of crops, and cannot effectively model the nonlinear coupling relationship and causal dependence relationship between multiple variables of water, fertilizer and pesticide.

Method used

A cross-mapping fusion network is used for data processing, including a dynamic hierarchical partitioning module, a cross-mapping causal Mamba module, and a decision output module. The dynamic hierarchical partitioning module adaptively segments the data according to the crop growth status, the cross-mapping causal Mamba module performs dual-path parallel feature extraction, and the decision output module performs end-to-end decision-making.

Benefits of technology

It improves the accuracy and efficiency of water, fertilizer and pesticide collaborative decision-making, realizes explicit modeling of nonlinear coupling relationships and causal chains among multiple variables of water, fertilizer and pesticide, and enhances the synergy and interpretability of decision-making.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123180930A_ABST
    Figure CN123180930A_ABST
Patent Text Reader

Abstract

The application provides a kind of greenhouse crop water, fertilizer and pesticide integrated intelligent control method, comprising: obtaining long time series multivariate data containing at least greenhouse environmental factors and crop physiological state;It is input into the cross mapping fusion network trained to obtain the water, fertilizer and pesticide collaborative supply decision result at the current time.The network comprises: a dynamic hierarchical division module for adaptive cutting of long time series multivariate data, obtaining K semantic blocks corresponding to the growth stage;Cross mapping causal Mamba module for double parallel feature extraction and fusion of K semantic blocks respectively, and splicing into global features in time sequence;Decision output module for outputting decision results.The application avoids data confusion through dynamic hierarchical division, explicitly models the causal dependence and nonlinear coupling between variables through double parallel feature extraction, enhances the decision collaboration and interpretability, realizes the end-to-end mapping from long time series data to collaborative decision, and improves the decision accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of smart agriculture and deep learning technology, and in particular to an integrated intelligent control method for water, fertilizer and pesticide application in greenhouse crops. Background Technology

[0002] Greenhouse cultivation is widely used in agricultural production. The growth and development of crops in greenhouses are not only constrained by their own physiological mechanisms but also influenced by environmental factors such as temperature, light, and humidity. Therefore, it is necessary to dynamically adjust the coordinated supply strategy of water, fertilizer, and pesticides in real time according to environmental changes and crop growth status. Taking tomatoes as an example, as a typical economic crop, greenhouse cultivation places stringent requirements on the supply strategy of water, fertilizer, and pesticides. With the rapid development of smart agriculture technology, using artificial intelligence technologies such as deep learning to make intelligent decisions regarding the supply of water, fertilizer, and pesticides to greenhouse crops has become an important research direction in the field of precision agriculture.

[0003] In existing technologies, several deep learning-based methods for water and fertilizer regulation in greenhouse crops have been proposed. For example, some researchers have used Long Short-Term Memory (LSTM) networks to model greenhouse environmental time-series data to predict irrigation and fertilization amounts; others have applied the Mamba model to agricultural time-series data processing, leveraging its efficient sequence modeling capabilities to improve prediction speed. Furthermore, Graph Attention Networks (GAT) have been used to model the relationship between environmental factors and crop growth states. However, these existing methods typically use fixed time windows to process time-series data in blocks, making it difficult to adapt to semantic changes at different crop growth stages; and models like Mamba only perform unidirectional processing on a one-dimensional sequence, failing to simultaneously capture temporal dynamics and causal dependencies between variables.

[0004] The shortcomings of existing technologies are as follows: First, the fixed time window segmentation method is difficult to adapt to the actual needs of crop growth changes at multiple stages, easily leading to data from different growth stages within the same semantic block, causing feature confusion; second, existing models are insufficient in modeling the nonlinear coupling and causal dependencies among multiple variables such as water, fertilizer, and pesticides, resulting in poor decision-making coordination; third, there is a semantic gap between high-level decision features and low-level executable action parameters, and existing methods lack effective knowledge transfer mechanisms, limiting the interpretability and execution accuracy of decision results. Therefore, there is an urgent need for an integrated intelligent control method for water, fertilizer, and pesticides that can deeply integrate long-term time-series data, explicitly model causal relationships between variables, and effectively transfer high-level decision semantics to low-level action parameters. Summary of the Invention

[0005] In view of the above-mentioned deficiencies of the prior art, the present invention provides an integrated intelligent control method for water, fertilizer and pesticide in greenhouse crops to solve the technical problems of low accuracy of water, fertilizer and pesticide collaborative decision-making and poor efficiency of long-term processing in the prior art.

[0006] To achieve the above and other related objectives, this invention provides an intelligent control method for integrated water, fertilizer, and pesticide application in greenhouse crops, comprising: acquiring long-term multivariate data, wherein the long-term multivariate data includes at least time-series data of greenhouse environmental factors and time-series data of crop physiological states; inputting the long-term multivariate data into a trained cross-mapping fusion network to obtain the current-time water, fertilizer, and pesticide coordinated supply decision result; wherein the cross-mapping fusion network comprises: a dynamic hierarchical partitioning module, used to adaptively segment the long-term multivariate data according to the semantic information of crop growth state to obtain K semantic blocks, wherein the semantic blocks correspond to the growth stages of the crop; a cross-mapping causal Mamba module, used to perform dual-path parallel feature extraction on the K semantic blocks respectively to obtain the joint features of each semantic block, and concatenating the joint features of all semantic blocks in chronological order to form a global feature; wherein one path is used to extract temporal dynamic dependencies, and the other path is used to extract causal dependencies, and the two paths of features are fused to obtain the joint feature; and a decision output module, used to regress and output the current-time water, fertilizer, and pesticide coordinated supply decision result based on the global feature.

[0007] In one embodiment of the present invention, the time-series data of greenhouse environmental factors includes at least temperature time-series data, humidity time-series data, light intensity time-series data, and soil electrical conductivity time-series data; the time-series data of crop physiological state includes at least leaf area index time-series data, transpiration rate time-series data, and leaf water potential time-series data.

[0008] In one embodiment of the present invention, the long-time series multivariate data is constructed in the following manner: the time-series data of greenhouse environmental factors and the time-series data of crop physiological state are aligned on the time axis, and the environmental factor data and crop physiological state data at the same time step are concatenated into a feature vector. The feature vectors of each time step are arranged in chronological order to form a feature matrix, which serves as the long-time series multivariate data.

[0009] In one embodiment of the present invention, the dynamic hierarchical partitioning module adaptively segments the long-term multivariate data, specifically including: inputting the long-term multivariate data into a semantic encoder, extracting the comprehensive growth state features of each time step to obtain a semantic feature sequence; wherein, the semantic encoder is composed of a cascaded one-dimensional convolutional layer and a gated recurrent unit; performing change point detection on the semantic feature sequence to identify boundary points where significant changes occur in the crop growth stage; and using the boundary points as partitioning points to divide the long-term multivariate data into K semantic blocks.

[0010] In one embodiment of the present invention, the semantic feature sequence is subjected to change point detection to identify boundary points where significant changes occur during crop growth stages. This includes: dividing the semantic feature sequence into multiple sliding windows and calculating the feature distribution within each window; measuring the distribution difference between adjacent windows using KL divergence, and determining the center point of the window as a candidate boundary point when the distribution difference exceeds a preset threshold; inputting the statistical features of the window containing each candidate boundary point into a pre-trained binary classifier to obtain the probability that the candidate boundary point is a boundary point; and obtaining the final set of boundary points after non-maximum suppression processing based on the probabilities of all candidate boundary points being boundary points.

[0011] In one embodiment of the present invention, the cross-mapping causal Mamba module performs dual-path parallel feature extraction on the K semantic blocks to obtain joint features for each semantic block. Specifically, this includes: performing linear projection and layer normalization on each semantic block to obtain the initial features of the temporal branch and the initial features of the causal branch for that semantic block; inputting the initial features of the temporal branch into the temporal mapping branch, extracting the temporal dynamic dependencies through a bidirectional state-space sequence model to obtain the temporal features of the semantic block; inputting the initial features of the causal branch into the causal mapping branch, extracting the causal dependencies between variables through a causal graph attention network to obtain the causal features of the semantic block; and fusing the temporal features and the causal features to obtain the joint features of the semantic block.

[0012] In one embodiment of the present invention, the initial features of the temporal branch are input to the temporal mapping branch, and the temporal dynamic dependencies are extracted through a bidirectional state-space sequence model to obtain the temporal features of the semantic block. Specifically, this includes: inputting the initial features of the temporal branch to a bidirectional state-space sequence model... The temporal mapping branch, composed of stacked bidirectional state space sequence modules, processes each layer as follows: First, it performs a one-dimensional convolution on the temporal features input to the current layer, obtaining locally enhanced temporal features. Then, it inputs these enhanced features along the time dimension into the forward and backward state space models respectively, capturing forward and backward temporal dependencies to obtain forward and backward temporal outputs. Finally, it concatenates the forward and backward temporal outputs along the feature dimension, compresses them to a preset hidden dimension via a linear layer, and performs a residual connection with the temporal features input to the current layer, serving as the input to the next layer. After stacking the layers, the temporal features of the semantic block are obtained.

[0013] In one embodiment of the present invention, the initial features of the causal branch are input to the causal mapping branch, and the causal dependencies between variables are extracted by a causal graph attention network to obtain the causal features of the semantic block. Specifically, this includes: reshaping the initial features of the causal branch into a three-dimensional tensor, wherein the three dimensions of the three-dimensional tensor are time step, variable node, and node feature dimension, respectively, each time step corresponds to a graph structure containing all variable nodes, and each variable node is represented by a feature vector; inputting the three-dimensional tensor to a causal mapping branch... The causal mapping branch, composed of stacked attention layers in a layered causal graph, processes each layer as follows: For each time step of the current layer, calculate the attention score between any two variable nodes within that time step; mask the attention scores according to a preset causal adjacency matrix, retaining only the attention scores between node pairs that satisfy the causal relationship; normalize the masked attention scores to obtain normalized attention weights; based on the normalized attention weights, weighted aggregate the features of all causal parent nodes, and after processing with an activation function, update the feature representation of each variable node; after... After stacking the layers, the output tensor is pooled along the variable node dimension to obtain the causal features of the semantic block.

[0014] In one embodiment of the present invention, the temporal features and the causal features are fused to obtain the joint features of the semantic block. Specifically, this includes: concatenating the temporal features and the causal features along the feature dimension to obtain concatenated features; performing a linear transformation on the concatenated features and then processing them with a Sigmoid activation function to generate a gating weight matrix, the size of which is consistent with the size of the temporal features and the causal features; and performing a weighted summation of the temporal features and the causal features according to the gating weight matrix to obtain the joint features of the semantic block.

[0015] In one embodiment of the present invention, the decision output module is obtained using a distillation training method, specifically including: constructing a teacher network and a student network, wherein the structural complexity of the teacher network is higher than that of the student network; inputting the global features into the teacher network and the student network respectively; the teacher network extracting high-level decision semantic vectors from the global features as soft labels; the student network extracting temporal information from the global features and regressing and outputting the water, fertilizer, and pesticide co-supply decision result at the current moment; constructing a first loss based on the difference between the decision result output by the student network and the real action label, constructing a second loss based on the semantic difference between the intermediate layer features of the student network and the intermediate layer features of the teacher network, and using the weighted sum of the first loss and the second loss as the total loss; performing end-to-end training on the cross-mapping fusion network using the total loss, at least updating the parameters of the cross-mapping causal Mamba module and the student network; after training, discarding the teacher network, and using only the student network as the decision output module for inference.

[0016] In one embodiment of the present invention, the teacher network includes a multi-layer Transformer encoder, and the student network includes a two-layer bidirectional LSTM network. After adding positional encoding to the global features, the teacher network performs context enhancement through the multi-layer Transformer encoder and pools the temporal dimension, and then maps it to a high-level decision semantic vector through a fully connected layer. The student network uses a two-layer bidirectional LSTM network to extract temporal information from the global features, takes the hidden state of the last time step, and outputs the water, fertilizer and pesticide co-supply decision result at the current moment through a fully connected layer.

[0017] In one embodiment of the present invention, the first loss is a smoothed L1 loss, used to measure the difference between the decision result output by the student network and the real action label; the second loss is a cosine embedding loss, used to measure the semantic difference between the intermediate layer features of the student network and the intermediate layer features of the teacher network; the second loss is constructed as follows: the output of the last layer Transformer encoder of the teacher network is selected as the teacher intermediate layer feature, and the output of the first layer bidirectional LSTM network of the student network is selected as the student intermediate layer feature; the teacher intermediate layer feature and the student intermediate layer feature are mapped to a common semantic space through a learnable projection network to obtain teacher projection features and student projection features; the cosine embedding loss between the teacher projection features and the student projection features is used as the second loss.

[0018] The beneficial effects of this invention are as follows: This invention proposes an intelligent control method for integrated water, fertilizer, and pesticide application in greenhouse crops. This method uses a dynamic hierarchical partitioning module to adaptively segment long-term multivariate data based on the semantic information of crop growth status, dividing the data into semantic blocks corresponding to growth stages. This avoids the data confusion problem caused by traditional fixed-window partitioning and improves the processing efficiency of long sequences. A cross-mapping causal Mamba module performs dual-path parallel feature extraction on each semantic block. One path extracts the time-series dynamic dependencies, and the other path extracts the causal dependencies between variables. The two feature paths are then fused, achieving explicit modeling of the nonlinear coupling relationships and causal chains between multiple variables related to water, fertilizer, and pesticides, enhancing the synergy and interpretability of the decision. A decision output module outputs the decision results for coordinated water, fertilizer, and pesticide supply based on global feature regression, realizing end-to-end mapping from multi-source long-term data to coordinated decision-making, effectively improving the accuracy of coordinated water, fertilizer, and pesticide decision-making. Attached Figure Description

[0019] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. The accompanying drawings are incorporated in and constitute a part of this specification, illustrating embodiments consistent with this application, and are used together with the description to explain the principles of this application. Obviously, the drawings described below are merely some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without creative effort.

[0020] Figure 1 This is a flowchart of an integrated intelligent control method for water, fertilizer and pesticide application in greenhouse crops according to an embodiment of the present invention.

[0021] Figure 2 This is an architecture diagram of a dynamic hierarchical partitioning module provided in an embodiment of the present invention;

[0022] Figure 3 This is an architecture diagram of a cross-mapping causal Mamba module provided in an embodiment of the present invention;

[0023] Figure 4 This is an architectural diagram of a hierarchical feature distillation framework provided in an embodiment of the present invention. Detailed Implementation

[0024] The following specific embodiments illustrate the implementation of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. It should be noted that, unless otherwise specified, the following embodiments and features can be combined with each other. In addition to the specific methods, equipment, and materials used in the embodiments, based on the knowledge of the prior art and the description of the present invention by those skilled in the art, any prior art methods, equipment, and materials similar to or equivalent to the methods, equipment, and materials in the embodiments of the present invention can be used to implement the present invention.

[0025] It should be understood that the terminology used in the embodiments of this invention is for describing specific implementations and not for limiting the scope of protection of this invention. Unless otherwise defined, all technical and scientific terms used in this invention have the same meaning as commonly understood by one of ordinary skill in the art.

[0026] In the following description, numerous details are explored to provide a more thorough explanation of embodiments of the invention. However, it will be apparent to those skilled in the art that embodiments of the invention may be practiced without these specific details. In some embodiments, well-known structures and devices are shown in block diagram form rather than in detail to avoid obscuring embodiments of the invention.

[0027] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functions, and operations that may be implemented in the methods and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0028] Please see Figure 1 , Figure 1An embodiment of the present invention provides an intelligent control method for integrated water, fertilizer, and pesticide application in greenhouse crops, comprising: acquiring long-term multivariate data, the long-term multivariate data including at least time-series data of greenhouse environmental factors and time-series data of crop physiological states; inputting the long-term multivariate data into a trained cross-mapping fusion network to obtain the decision result of coordinated water, fertilizer, and pesticide supply at the current moment. The cross-mapping fusion network includes a dynamic hierarchical partitioning module, a cross-mapping causal Mamba module, and a decision output module. The dynamic hierarchical partitioning module is used to adaptively segment the long-term multivariate data according to the semantic information of crop growth state to obtain K semantic blocks, each semantic block corresponding to a crop growth stage; the cross-mapping causal Mamba module is used to perform dual-path parallel feature extraction on the K semantic blocks respectively to obtain the joint features of each semantic block, and concatenate the joint features of all semantic blocks in chronological order to obtain global features; one path is used to extract temporal dynamic dependencies, and the other path is used to extract causal dependencies, and the two paths are fused to obtain the joint features; the decision output module is used to regress and output the decision result of coordinated water, fertilizer, and pesticide supply at the current moment based on the global features.

[0029] This method first acquires long-term time-series data on greenhouse environmental factors and crop physiological states, and inputs this data into a pre-trained cross-mapping fusion network. A dynamic hierarchical segmentation module adaptively segments the input data based on the semantic information of crop growth states, obtaining semantic blocks corresponding to different growth stages such as seedling stage, flowering and fruit setting stage, fruit enlargement stage, and ripening and harvesting stage. The cross-mapping causal Mamba module extracts and fuses temporal dynamic features and causal dependency features in parallel on each semantic block, generating joint features which are then concatenated in chronological order to form global features. The decision output module regresses and outputs the current moment's water, fertilizer, and pesticide co-supply decision based on the global features. Through this three-level cascaded structure, this method achieves end-to-end mapping from multi-source long-term time-series data to collaborative decision-making, effectively improving the accuracy and efficiency of water, fertilizer, and pesticide co-supply decision-making.

[0030] In a specific embodiment of the present invention, the time-series data of greenhouse environmental factors includes at least temperature time-series data, humidity time-series data, light intensity time-series data, and soil electrical conductivity time-series data; the time-series data of crop physiological states includes at least leaf area index time-series data, transpiration rate time-series data, and leaf water potential time-series data. By limiting the time-series data of greenhouse environmental factors to at least temperature, humidity, light intensity, and soil electrical conductivity, the impact of the greenhouse microclimate on crop growth can be comprehensively reflected; by limiting the time-series data of crop physiological states to at least leaf area index, transpiration rate, and leaf water potential, the growth potential and water stress level of crops can be accurately characterized. The alignment and fusion of the above-mentioned multi-source heterogeneous data on the time axis provides rich input feature information for subsequent network models, which is beneficial to improving the comprehensiveness of the model's perception of crop growth status and the accuracy of decision-making.

[0031] In a specific embodiment of the present invention, long-term time-series multivariate data is constructed as follows: Time-series data of greenhouse environmental factors and time-series data of crop physiological states are aligned on the time axis; environmental factor data and crop physiological state data at the same time step are concatenated into a feature vector; and the feature vectors of each time step are arranged in chronological order to form a feature matrix, which serves as the long-term time-series multivariate data. The final long-term time-series multivariate data can be denoted as... Where T is the number of time steps and F is the number of feature dimensions. Concatenating environmental factor data and physiological state data at the same time step into a single feature vector, and arranging them chronologically to form a feature matrix, effectively preserves the correlation information between different data sources at the same moment. Representing long-term time-series data as a feature matrix X allows this data format to directly adapt to the input requirements of the subsequent dynamic hierarchical partitioning module. This standardized data construction method ensures data alignment in the time dimension and integrity in the feature dimension, laying a data foundation for the processing of subsequent modules.

[0032] Please see Figure 2 The dynamic hierarchical partitioning module adaptively segments long-time-series multivariate data, specifically including the following steps 2.1 to 2.3.

[0033] 2.1. Input long-term multivariate data into the semantic encoder, extract the comprehensive growth state features at each time step, and obtain the semantic feature sequence; wherein, the semantic encoder is composed of a cascaded one-dimensional convolutional layer and gated recurrent units, and this process can be represented as:

[0034] ,

[0035] ,

[0036] In the formula, For the t-th time step of long-series multivariate data X, GRU is a gated recurrent unit, and Conv1D is a one-dimensional convolutional layer. Given the hidden states of the GRU, the final semantic feature sequence is: Each feature vector in this semantic feature sequence It represents the overall growth status of the crop at the current moment, providing an accurate semantic representation for subsequent change point detection, making the identification of growth stage boundaries more reliable.

[0037] 2.2 Detect change points in the semantic feature sequence to identify boundary points where significant changes occur during crop growth stages.

[0038] In a specific embodiment of the present invention, step 2.2 specifically includes: (1) dividing the semantic feature sequence into multiple sliding windows of fixed length and calculating the feature distribution within each window; (2) measuring the distribution difference between adjacent windows using KL divergence, and determining the center point of the window as a candidate boundary point when the distribution difference exceeds a preset threshold; (3) inputting the statistical features (e.g., mean, variance) of the window containing each candidate boundary point into a pre-trained binary classifier (e.g., a small multilayer perceptron) to obtain the probability that the candidate boundary point is a boundary point; (4) obtaining the final set of boundary points after processing with non-maximum suppression (NMS) based on the probability that all candidate boundary points are boundary points. .

[0039] This change point detection method employs a strategy combining Bayesian change point detection with sliding window statistical testing. This approach integrates unsupervised distribution difference detection and supervised classifier validation, enabling accurate identification of significant change points in crop growth stages and effectively avoiding the false positives and false negatives inherent in single-method approaches.

[0040] 2.3. Using boundary points as splitting points, long-term multivariate data is divided into K semantic blocks. Each semantic block length It is uncertain, but each data block has a high degree of uniformity in agricultural semantics, which ensures the focus of the model's processing of unit data information; each semantic block The shape is This serves as the input to the cross-mapping causal Mamba module.

[0041] The above process can be represented as:

[0042] ,

[0043] In the formula, SemanticChunking represents a semantically adaptive segmentation function. The parameters are for the semantic boundary detection network, including the parameters of the semantic encoder (GRU and Conv1D) and the parameters of the binary classifier (MLP).

[0044] Please see Figure 3 In a specific embodiment of the present invention, the cross-mapping causal Mamba module performs dual-path parallel feature extraction on K semantic blocks to obtain the joint features of each semantic block, specifically including the following steps 3.1 to 3.4.

[0045] 3.1 Perform linear projection and layer normalization on each semantic block to obtain the initial features of the temporal branch of that semantic block. and initial features of causal branches :

[0046] ,

[0047] ,

[0048] In the formula, , This represents the dimension of the hidden layer (for example, it can be 128). and These are the bias terms for the temporal and causal branches, respectively, which, together with the corresponding weight matrices, participate in the linear projection calculation. LN (Layer Normalization) represents the layer normalization process. The original semantic block is mapped to the initial feature spaces of the temporal and causal branches through two independent linear projection layers, respectively. The initial features of the temporal branch... and initial features of causal branches All dimensions are Layer normalization (LN) after projection stabilizes the training process and accelerates model convergence. The two branches use the same input but independent projection parameters, allowing each branch to learn different feature representations according to its specific task requirements, laying the foundation for subsequent dual-path parallel extraction.

[0049] 3.2 Input the initial features of the temporal branch into the temporal mapping branch, extract the temporal dynamic dependencies through the bidirectional state-space sequence model, and obtain the temporal features of the semantic block.

[0050] In a specific embodiment of the present invention, step 3.2 specifically includes: inputting the initial features of the temporal branch into the input... The timing mapping branch is formed by stacking bidirectional state space sequence modules, and the processing method of each layer is as follows.

[0051] (3.2.1) Temporal features of the current layer input One-dimensional convolution is performed to obtain temporal features with enhanced local features. :

[0052] ,

[0053] For the first-layer bidirectional state-space sequence module, its input is the initial feature of the temporal branch. .

[0054] (3.2.2) Temporal features enhanced with local features By inputting a forward state-space model (Forward SSM) and a backward state-space model (Backward SSM) along the time dimension, the forward and backward temporal dependencies are captured respectively, yielding the forward temporal output. and backward timing output .

[0055] The discretization process of the state-space model (SSM) can be expressed as follows:

[0056] ,

[0057] ,

[0058] ,

[0059] ,

[0060] In the formula, A is a fixed state transition matrix. All are from the current input Selective memorization and forgetting of historical information are achieved through dynamic generation of linear layers, where I is the identity matrix. That is, in step (3.2.1) The slice at time step t. The difference between forward SSM and backward SSM lies in the direction of the input sequence—forward SSM follows the original time order (from step 1 to step t). Step 1 Processing The SSM then reverses the sequence and arranges it in reverse chronological order (starting from the first...). The calculation formulas for both steps (step 1 and step 2) are identical in form, but because the processing directions are opposite, the output of the forward SSM differs. The time-series dependencies from the past to the present are encoded and then output to the SSM. It encodes the time-series dependencies from the future to the present, and the two are complementary.

[0061] One-dimensional convolution is used to locally enhance the temporal features of the current layer input, allowing for the full fusion of information from adjacent time steps. The enhanced features are then input into the forward SSM and backward SSM along the time dimension, capturing temporal dependencies from both directions. The forward SSM processes the sequence in forward chronological order, encoding the evolution of states from history to the present, while the backward SSM processes the sequence in reverse chronological order, encoding backward dependencies from the future to the present. The discretization parameters of both the forward and backward SSMs are dynamically generated from the current input, enabling selective memorization and forgetting of historical information. This allows the model to adaptively adjust the degree of information retention based on the input content, effectively capturing key temporal patterns in long sequences.

[0062] (3.2.3) After concatenating the forward and backward temporal outputs along the feature dimension, the concatenation is compressed to the preset hidden dimension via a linear layer, and residually connected with the temporal features input to the current layer, serving as the input to the next layer. This process can be represented as:

[0063] .

[0064] Residual connections can effectively alleviate the vanishing gradient problem in deep network training, ensuring stable gradient propagation during multi-layer stacking. At the same time, by preserving the original input information, each layer can perform incremental optimization based on the original features, improving the model's learning efficiency and representation ability.

[0065] go through After stacking the layers, the semantic block is obtained. Corresponding time series features .

[0066] 3.3 Input the initial features of the causal branch into the causal mapping branch, and extract the causal dependencies between variables through the causal graph attention network to obtain the causal features of the semantic block.

[0067] In a specific embodiment of the present invention, step 3.3 specifically includes: (1) initial features of causal branches. Remodeled into a three-dimensional tensor The reshaping operation here can be implemented by copying and expanding along the node dimension. The three dimensions of the three-dimensional tensor are time steps ( ), variable nodes (F) and node feature dimensions ( Each time step corresponds to a graph structure containing all variable nodes, and each variable node is represented by an eigenvector; (2) Input the three-dimensional tensor into the graph structure containing all variable nodes. The causal mapping branches formed by stacked attention layers in a layered causal graph pass through... After stacking the layers, the output tensor is pooled along the variable node dimension (either through global average pooling or linear transformation) to obtain the semantic block. Corresponding causal characteristics .

[0068] The processing method for each causal graph attention layer is as follows.

[0069] (3.3.1) For each time step of the current layer, calculate the attention score between any two variable nodes within that time step. For the l-th layer, the original attention scores of variable nodes i and j at time step t are... Represented as:

[0070] ,

[0071] In the formula, It is a learnable weight matrix. Let [;] be the attention parameter vector, where [;] represents the concatenation operation. and Represent the three-dimensional tensor of the l-th layer respectively The feature vectors at time step t and variable nodes i and j are both... After processing the corresponding node features through l layers of C-GAT, LeakyReLU is an activation function defined as f(x)=max(αx,x), where α is a very small positive number (such as 0.01). Compared with ordinary ReLU, LeakyReLU allows the negative part to retain a non-zero gradient, thereby avoiding the "death" problem of neurons having zero gradient due to negative input during training, and ensuring that the gradient can flow effectively.

[0072] (3.3.2) The attention scores are masked according to a pre-defined causal adjacency matrix, retaining only the attention scores between node pairs that satisfy the causal relationship. To introduce causal priors, we introduce a learnable causal adjacency matrix. Its elements This represents the strength of the causal influence of variable j on variable i. This matrix can be initialized with agricultural expert knowledge and subjected to sparsity constraints during training using the Gumbel-Softmax technique, making the causal association more interpretable. The attention coefficients are masked using the causal adjacency matrix M, i.e., only when... Only when the time is right will information be allowed to flow from node j to node i.

[0073] (3.3.3) Normalize the attention score after masking to obtain the normalized attention weights. The above masking and normalization operations can be expressed as:

[0074] ,

[0075] In the formula, This is an indicator function.

[0076] (3.3.4) Based on the normalized attention weights, the features of all causal parent nodes are weighted and aggregated, and then processed by an activation function to update the feature representation of each variable node. This process can be expressed as:

[0077] ,

[0078] In the formula, This is the ELU activation function.

[0079] The core of the causal mapping branch lies in explicitly modeling the causal dependencies between variables through a causal graph attention network (C-GAT). First, the initial features of the causal branch are reshaped into a three-dimensional tensor, so that each time step corresponds to a graph structure containing F variable nodes. In each layer of C-GAT, the attention score between any two variable nodes is calculated, and then the attention score is masked using a pre-defined causal adjacency matrix M—allowing only information transfer between node pairs that satisfy the causal relationship (i.e., information flows from the causal parent node to the child node), thereby incorporating causal prior knowledge from the agricultural field into the model. The causal adjacency matrix M is initialized with agricultural expert knowledge (e.g., the causal chain of light → leaf temperature → transpiration → water requirement) and is sparsified during training using the Gumbel-Softmax technique, making it both interpretable and data-adaptive. After stacking multiple layers of C-GAT, each node can aggregate multi-hop information from its causal ancestors, thereby capturing long-range causal dependencies; finally, causal features are obtained by pooling along the variable node dimension. This enables explicit modeling of the nonlinear causal relationships among multiple variables, including water, fertilizer, and pesticides.

[0080] 3.4. Temporal characteristics and causal characteristics By performing fusion, the joint features of the semantic block are obtained. Temporal characteristics With causal characteristics All in dimensions To fully utilize the complementary information of the two features, this invention designs a gated fusion unit (GFU), whose core idea is to enable the network to adaptively learn the fusion weights of the two features at each time step.

[0081] The specific calculation process for GFU is as follows:

[0082] (3.4.1) The temporal features and causal features are concatenated along the feature dimension to obtain the concatenated features. .

[0083] (3.4.2) After linear transformation of the concatenated features, the sigmoid activation function is applied to generate a gating weight matrix. The size of the gating weight matrix is ​​consistent with the size of the temporal and causal features. This process can be represented as:

[0084] ,

[0085] In the formula, , .

[0086] (3.4.3) Based on the gating weight matrix, the temporal features and causal features are weighted and summed to obtain the joint features of the semantic block:

[0087] .

[0088] In the formula, time series characteristics Causal characteristics and joint features For a general representation of different semantic blocks, for semantic blocks In this regard, its joint characteristics can be denoted as: After all semantic blocks are processed by the cross-mapping causal Mamba module, the corresponding joint feature set can be obtained. Then, by splicing the data in the original time sequence, a global feature representation of the entire growth cycle is obtained. ,in It is important to note that here... The specific value is equal to the previous T; the different symbols are only used to emphasize the sequence before and after processing.

[0089] Please see Figure 4 In a specific embodiment of the present invention, the decision output module is obtained by distillation training, specifically including: (1) constructing a teacher network and a student network, wherein the structural complexity of the teacher network is higher than that of the student network; (2) inputting global features into the teacher network and the student network respectively; (3) extracting high-level decision semantic vectors from the global features of the teacher network as soft labels; (4) extracting temporal information from the global features of the student network and regressing the decision result of water, fertilizer and pesticide co-supply at the current moment; (5) constructing a first loss based on the difference between the decision result output by the student network and the real action label, constructing a second loss based on the semantic difference between the intermediate layer features of the student network and the intermediate layer features of the teacher network, and using the weighted sum of the first loss and the second loss as the total loss; (6) performing end-to-end training on the cross-mapping fusion network with the total loss, at least updating the parameters of the cross-mapping causal Mamba module and the student network; (7) after training, discarding the teacher network and using only the student network as the decision output module for inference.

[0090] The decision output module employs a teacher-student distillation architecture. The teacher network extracts high-level decision semantic vectors (e.g., "Currently under mild water stress, in a critical period of fertilizer demand, with low disease risk; a combined promotion and control strategy is recommended") from global features, serving as soft labels. The student network directly regresses and outputs executable 6-dimensional action parameters (irrigation amount, nitrogen / phosphorus / potassium fertilizer concentration, pesticide application identifier, and application amount). The action prediction accuracy of the student network is supervised by task loss (smoothed L1 loss), and alignment loss (cosine embedding loss) forces the intermediate layer features of the student network to align with the semantic features of the teacher network, achieving effective transfer of high-level decision knowledge from the teacher network to the student network. After training, the teacher network is discarded, and only the lightweight student network performs inference, ensuring both decision quality and meeting the real-time requirements of greenhouse control.

[0091] In one specific embodiment of the present invention, the teacher network includes a multi-layer Transformer encoder, for example, the teacher network consists of... The network consists of a multi-layer Transformer encoder, with each layer containing multi-head self-attention and a feedforward network (FFN). The student network comprises a two-layer bidirectional LSTM network. The teacher network adds positional encoding to the global features, then performs context enhancement via a multi-layer Transformer encoder and pools the temporal dimension before mapping to a high-level decision semantic vector via a fully connected layer. The student network uses a two-layer bidirectional LSTM network to extract temporal information from the global features, taking the hidden state at the last time step, and then regressing through a fully connected layer to output the water, fertilizer, and pesticide co-supply decision result for the current time step. The specific processing procedures for the teacher and student networks are detailed below.

[0092] To capture global dependencies in the time dimension, first... Add learnable positional coding :

[0093] ;

[0094] Subsequently, the features are processed through multiple Transformer encoders to obtain context-enhanced features. ;

[0095] To obtain a fixed-length semantic vector, we perform average pooling on the time dimension:

[0096] ;

[0097] Finally, the output of the teacher network is mapped to the semantic space through two fully connected layers. (In this invention, take) ):

[0098] ;

[0099] This represents the semantics of high-level decision-making, such as "Currently, we are under mild water stress, in a critical period of fertilizer demand, and at a low risk of disease. It is recommended to adopt a strategy that combines promotion and control."

[0100] The student network has a more lightweight structure, designed to directly output executable action parameters. It uses the same global features. As input, a two-layer bidirectional LSTM (BiLSTM) is used to capture temporal information, and then the specific action vector is regressed through two fully connected layers. Specifically:

[0101] ,

[0102] ,

[0103] ,

[0104] in , The number of decision variables. The decision outcome for coordinated water, fertilizer, and pesticide supply may include, for example, irrigation volume ( ), nitrogen fertilizer concentration ( ), phosphate fertilizer concentration ( ), potassium fertilizer concentration ( ), application label ( ), and dosage ( ),therefore The output layer uses the Sigmoid function to constrain the values ​​to... Within the range, the actual physical quantity is obtained through inverse normalization.

[0105] In a specific embodiment of the present invention, the first loss is a smoothed L1 loss, used to measure the decision result output by the student network. With real motion tags The differences between them. Real motion tags. The optimal control sequence can be determined by agronomic experts based on historical best operating records, or obtained through simulation generated by high-precision crop growth models (such as APSIM and DSSAT).

[0106] First loss Calculate using the following formula:

[0107] ,

[0108] SmoothL1 is defined as:

[0109] .

[0110] The second loss adopts cosine embedding loss, which is used to measure the semantic difference between the intermediate layer features of the student network and the intermediate layer features of the teacher network. Its construction method is as follows: (1) Select the output of the last layer Transformer encoder of the teacher network. As a feature of the teacher's intermediate layer, the output of the first layer of the bidirectional LSTM network of the student network is selected. As student intermediate layer features. (2) By using a learnable projection network, the teacher intermediate layer features and student intermediate layer features are mapped to a common semantic space to obtain teacher projection features and student projection features. Since the two may have different dimensions, we use a learnable projection network. Map them to a common semantic space:

[0111] ,

[0112] ,

[0113] In the formula, and Both are two-layer MLPs. .

[0114] (3) The cosine embedding loss between the teacher's projected features and the student's projected features is used as the second loss, which can be expressed by the formula:

[0115] ,

[0116] This loss function forces the student network to mimic the semantic representation of the teacher network at local time steps, thereby achieving fine-grained knowledge transfer.

[0117] The total loss function is:

[0118] ,

[0119] In the formula, To balance the hyperparameters of the two loss terms, they are usually tuned on the validation set, with typical values ​​set to 0.3 to 0.7.

[0120] It should be noted that the steps of the various methods described above are only for clarity. In practice, they can be combined into one step or some steps can be split into multiple steps. As long as they contain the same logical relationship, they are all within the scope of protection of this application. Adding insignificant modifications or introducing insignificant designs to the algorithm or process, but without changing the core design of the algorithm and process, are also within the scope of protection of this patent.

[0121] To verify the effectiveness of the greenhouse water, fertilizer and pesticide collaborative decision-making method based on cross-mapping fusion network (CMCM-Net) proposed in this invention, this embodiment uses a virtual simulation environment of a mapped physical greenhouse built on a high-performance computing server (configured with NVIDIA RTX 3090 GPU) based on the PyTorch framework to conduct simulation experiments.

[0122] This experiment used a DSSAT (Decision Support System for Agrotechnology Transfer) crop growth model coupled with a Tomgro model to simulate the entire growth process of tomatoes (approximately 120 days). Environmental parameters were set as follows: simulated meteorological conditions included light intensity of 400–600 μmol / m² / s, temperature of 20–30℃, and relative humidity of 50%–70%; soil properties were set as loam, with initial moisture content of 40%–60% of field capacity.

[0123] 5000 training samples and 1000 test samples were generated using the DSSAT model. Input features included temperature, humidity, light intensity, soil EC value, and crop growth status (leaf area index, etc.) collected by environmental sensors; the output label was the optimal water, fertilizer, and pesticide supply calculated by the model. The input data were normalized, and a 24-hour sliding window was used to construct time-series features.

[0124] Traditional LSTM and standard Mamba were selected as comparison models, and the Adam optimizer was used uniformly with a learning rate of 0.001 for 200 epochs. Evaluation metrics included irrigation amount prediction error (RMSE), fertilizer amount prediction error (RMSE), overall decision accuracy, and time taken per inference.

[0125] The LSTM model has an RMSE of 0.154 for irrigation and 0.121 for fertilizer, a decision accuracy of 82.4%, and an inference time of 45ms. The standard Mamba model has an RMSE of 0.112 for irrigation and 0.095 for fertilizer, a decision accuracy of 88.1%, and an inference time of 25ms. The CMCM-Net model of this invention has an RMSE of 0.085 for irrigation and 0.068 for fertilizer, a decision accuracy of 93.5%, and an inference time of 28ms.

[0126] Simulation results show that, compared to the LSTM model, CMCM-Net reduces irrigation prediction error by 44.8% and improves decision accuracy by 11.1%. This demonstrates that the "cross-mapping" structure in this invention can effectively capture the nonlinear coupling relationship between water, fertilizer, and pesticides. Although the inference time is slightly higher than the standard Mamba (28ms vs 25ms), it is still far below the real-time requirements of greenhouse control (typically <50ms), making it valuable for practical engineering applications.

[0127] The irrigation volume, nitrogen fertilizer concentration, phosphorus fertilizer concentration, potassium fertilizer concentration, pesticide application indicator, and pesticide application amount output by this method can be directly used to control greenhouse irrigation pumps, fertilizer valves, and pesticide application devices, realizing integrated automatic and precise control of water, fertilizer, and pesticides in greenhouse tomatoes.

[0128] In summary, this invention proposes an integrated intelligent control method for greenhouse crops using water, fertilizer, and pesticides. It employs a dynamic hierarchical partitioning module to adaptively segment long-term multivariate data based on semantic information about crop growth status, resolving the data confusion problem caused by traditional fixed-window segmentation. Through parallel extraction of temporal and causal mapping branches in a cross-mapping causal Mamba module, it captures temporal dynamic dependencies and causal dependencies between variables, respectively. Adaptive fusion of these two feature paths is achieved via a gated fusion unit, effectively improving the modeling capability and decision-making synergy of nonlinear coupling relationships among multiple water, fertilizer, and pesticide variables. The teacher-student distillation architecture of the decision output module effectively transfers high-level decision semantics to low-level executable action parameters, bridging the semantic gap between the feature space and the execution space. Simulation results demonstrate that this invention outperforms traditional LSTM and standard Mamba models in terms of irrigation prediction error, fertilizer prediction error, and overall decision accuracy. Furthermore, its inference time meets the real-time requirements of greenhouse control (<50ms), demonstrating practical engineering application value. The irrigation volume, fertilizer concentration, and pesticide application rate output by this method can be directly used to control greenhouse irrigation pumps, fertilizer valves, and pesticide application devices, realizing automatic and precise integrated water, fertilizer, and pesticide control for greenhouse crops.

[0129] The above embodiments are merely illustrative of the principles and effects of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in the present invention should still be covered by the claims of the present invention.

Claims

1. A method for integrated intelligent control of water, fertilizer, and pesticide application in greenhouse crops, characterized in that, include: Acquire long-term multivariate data, which includes at least time-series data of greenhouse environmental factors and time-series data of crop physiological states; The long-term multivariate data is input into a trained cross-mapping fusion network to obtain the current water, fertilizer, and pesticide co-supply decision-making result; wherein, the cross-mapping fusion network includes: The dynamic hierarchical segmentation module is used to adaptively segment the long-term multivariate data according to the semantic information of crop growth status to obtain K semantic blocks, which correspond to the growth stages of the crop. The cross-mapping causal Mamba module is used to perform dual-path parallel feature extraction on the K semantic blocks to obtain the joint features of each semantic block, and then concatenates the joint features of all semantic blocks in chronological order to form a global feature; one path is used to extract temporal dynamic dependencies, and the other path is used to extract causal dependencies. The features from the two paths are fused to obtain the joint feature; and The decision output module is used to output the decision result of water, fertilizer and pesticide synergistic supply at the current moment based on the regression of the global features.

2. The integrated intelligent control method for water, fertilizer, and pesticide application in greenhouse crops according to claim 1, characterized in that, The time-series data of greenhouse environmental factors include at least time-series data of temperature, humidity, light intensity, and soil electrical conductivity; the time-series data of crop physiological states include at least time-series data of leaf area index, transpiration rate, and leaf water potential.

3. The integrated intelligent control method for water, fertilizer, and pesticide application in greenhouse crops according to claim 1, characterized in that, The dynamic hierarchical partitioning module adaptively segments the long-time-series multivariate data, specifically including: The long-term multivariate data is input into the semantic encoder to extract the comprehensive growth state features of each time step, thereby obtaining a semantic feature sequence; wherein, the semantic encoder is composed of a cascaded one-dimensional convolutional layer and a gated recurrent unit; Change point detection is performed on the semantic feature sequence to identify boundary points where significant changes occur during crop growth stages; Using the boundary points as the dividing points, the long-term time-series multivariate data is divided into K semantic blocks.

4. The integrated intelligent control method for water, fertilizer, and pesticide application in greenhouse crops according to claim 3, characterized in that, Change point detection is performed on the semantic feature sequence to identify boundary points where significant changes occur during crop growth stages, including: The semantic feature sequence is divided into multiple sliding windows, and the feature distribution within each window is calculated. The distribution difference between adjacent windows is measured by KL divergence. When the distribution difference exceeds a preset threshold, the center point of the window is determined to be a candidate boundary point. The statistical features of the window containing each candidate boundary point are input into a pre-trained binary classifier to obtain the probability that the candidate boundary point is a boundary point. Based on the probability that all candidate boundary points are boundary points, the final set of boundary points is obtained after non-maximum suppression.

5. The integrated intelligent control method for water, fertilizer, and pesticide application in greenhouse crops according to claim 1, characterized in that, The cross-mapping causal Mamba module performs dual-path parallel feature extraction on the K semantic blocks to obtain joint features for each semantic block, specifically including: For each semantic block, linear projection and layer normalization are performed to obtain the initial features of the temporal branch and the initial features of the causal branch of that semantic block. The initial features of the temporal branch are input into the temporal mapping branch, and the temporal dynamic dependencies are extracted through the bidirectional state-space sequence model to obtain the temporal features of the semantic block. The initial features of the causal branch are input into the causal mapping branch, and the causal dependencies between variables are extracted through the causal graph attention network to obtain the causal features of the semantic block. The temporal features and the causal features are fused to obtain the joint features of the semantic block.

6. The integrated intelligent control method for water, fertilizer, and pesticide application in greenhouse crops according to claim 5, characterized in that, The initial features of the temporal branch are input into the temporal mapping branch, and the temporal dynamic dependencies are extracted through a bidirectional state-space sequence model to obtain the temporal features of the semantic block, specifically including: The initial features of the time-series branch are input into the... The temporal mapping branch, formed by stacking bidirectional state-space sequence modules, has the following processing method for each layer: One-dimensional convolution is performed on the temporal features input to the current layer to obtain temporal features with local feature enhancement; The enhanced temporal features of the local features are input into the forward state space model and the backward state space model along the time dimension, respectively, to capture the forward temporal dependencies and the backward temporal dependencies, and obtain the forward temporal output and the backward temporal output. The forward and backward temporal outputs are concatenated along the feature dimension, compressed to a preset hidden dimension via a linear layer, and then residually connected with the temporal features input to the current layer as the input to the next layer. go through After stacking the layers, the temporal features of the semantic block are obtained.

7. The integrated intelligent control method for water, fertilizer, and pesticide application in greenhouse crops according to claim 6, characterized in that, The initial features of the causal branch are input into the causal mapping branch, and the causal dependencies between variables are extracted through a causal graph attention network to obtain the causal features of the semantic block, specifically including: The initial features of the causal branch are reshaped into a three-dimensional tensor. The three dimensions of the three-dimensional tensor are time step, variable node, and node feature dimension, respectively. Each time step corresponds to a graph structure containing all variable nodes, and each variable node is represented by a feature vector. The three-dimensional tensor is input to... The causal mapping branches formed by stacked attention layers in the layered causal graph are processed as follows: For each time step of the current layer, calculate the attention score between any two variable nodes within that time step; The attention scores are masked according to a preset causal adjacency matrix, and only the attention scores between node pairs that satisfy the causal relationship are retained. The attention scores after masking are normalized to obtain normalized attention weights. Based on the normalized attention weights, the features of all causal parent nodes are weighted and aggregated, and then processed by an activation function to update the feature representation of each variable node. go through After stacking the layers, the output tensor is pooled along the variable node dimension to obtain the causal features of the semantic block.

8. The intelligent control method for integrated water, fertilizer, and pesticide application in greenhouse crops according to claim 1, characterized in that, The decision output module is obtained through distillation training, specifically including: Construct a teacher network and a student network, wherein the structural complexity of the teacher network is higher than that of the student network; The global features are input into the teacher network and the student network, respectively. The teacher network extracts high-level decision semantic vectors from the global features as soft labels. The student network extracts temporal information from the global features and regresses to output the decision result of water, fertilizer and pesticide co-supply at the current moment. A first loss is constructed based on the difference between the decision results output by the student network and the real action labels. A second loss is constructed based on the semantic difference between the intermediate layer features of the student network and the intermediate layer features of the teacher network. The weighted sum of the first loss and the second loss is used as the total loss. The cross-mapping fusion network is trained end-to-end using the total loss, at least updating the parameters of the cross-mapping causal Mamba module and the student network; After training is complete, the teacher network is discarded, and only the student network is used as the decision output module for inference.

9. The integrated intelligent control method for water, fertilizer, and pesticide application in greenhouse crops according to claim 8, characterized in that, The teacher network includes a multi-layer Transformer encoder, and the student network includes a two-layer bidirectional LSTM network. After the teacher network adds positional encoding to the global features, it performs context enhancement through a multi-layer Transformer encoder, pools the temporal dimension, and then maps it to a high-level decision semantic vector through a fully connected layer. The student network uses a two-layer bidirectional LSTM network to extract temporal information from the global features, takes the hidden state of the last time step, and outputs the water, fertilizer and pesticide co-supply decision result at the current moment through a fully connected layer regression.

10. The intelligent control method for integrated water, fertilizer, and pesticide application in greenhouse crops according to claim 8, characterized in that, The first loss uses smoothed L1 loss to measure the difference between the decision output of the student network and the real action label; the second loss uses cosine embedding loss to measure the semantic difference between the intermediate layer features of the student network and the intermediate layer features of the teacher network. The second loss is constructed as follows: The output of the last layer Transformer encoder of the teacher network is selected as the teacher intermediate layer feature, and the output of the first layer bidirectional LSTM network of the student network is selected as the student intermediate layer feature. The teacher intermediate layer features and the student intermediate layer features are mapped to a common semantic space through a learnable projection network to obtain teacher projection features and student projection features. The cosine embedding loss between the teacher's projection features and the student's projection features is used as the second loss.