Method and device for predicting net primary productivity of tomatoes driven by CO2 balance
By collecting multi-modal data in the greenhouse and using deep learning technology to build CO2 balance and net primary productivity models, the problem of low data quality in the existing technology was solved and high-accuracy prediction of tomato net primary productivity was achieved.
Patent Information
- Application Number
- CN202410833810.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-26
AI Technical Summary
Existing technology lacks the utilization of multi-modal data in predicting net primary productivity of tomatoes in greenhouses, resulting in low data quality and completeness, affecting the accuracy and reliability of predictions.
A tomato net primary productivity prediction method driven by CO2 balance is used to collect multi-modal data, including CO2 concentration changes, temperature, humidity, light intensity, wind speed, crop growth status and remote sensing data, and use multi-modal variational autoencoders to extract Key features, and combine deep kernel learning and Gaussian process to build a CO2 balance calculation model and a net primary productivity estimation model to achieve data fusion and prediction.
It improves the accuracy and reliability of predicting net primary productivity of tomatoes in the greenhouse, and enhances the ability to evaluate tomato growth conditions and predict yields by calculating and monitoring cumulative CO2 consumption in real time.
Smart Images

Figure CN118709844A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a method and device for predicting net primary productivity of tomatoes driven by CO2 balance. Background Art
[0002] The net primary productivity (NPP) of greenhouse tomatoes refers to the organic carbon fixed by photosynthesis minus the organic carbon consumed by respiration in a unit time (a specific period of time such as this year or since planting). 2 / yr), which reflects the growth rate and biomass accumulation of tomatoes. The prediction of tomato NPP in the greenhouse is of great significance and value for evaluating the growth status of tomatoes, predicting the yield and quality of tomatoes, and guiding water and fertilizer management and pest control in the greenhouse. In theory, CO2 is an essential substance for tomato photosynthesis. CO2 balance has an important influence on the prediction of tomato NPP in the greenhouse, and it is also a product of tomato respiration.
[0003] Existing technologies often only use a single or limited data source to collect single-modal or low-modal data inside and outside the greenhouse. They lack the use of multimodal data of tomatoes in the greenhouse, resulting in low data quality and integrity. It is difficult to fully reflect the growth characteristics and status of tomatoes in the greenhouse, affecting the accuracy and reliability of the prediction. Summary of the invention
[0004] The present invention provides a CO2 balance-driven tomato net primary productivity prediction method and device, which are used to improve the prediction accuracy of the net primary productivity of tomatoes in a greenhouse.
[0005] The present invention provides a method for predicting net primary productivity of tomatoes driven by CO2 balance, comprising:
[0006] Collecting multimodal data of the greenhouse, the multimodal data including one or more of CO2 concentration change data in the greenhouse, temperature data in the greenhouse, humidity data in the greenhouse, light intensity data in the greenhouse, wind speed data outside the greenhouse, growth status data of crops in the greenhouse, remote sensing data of the greenhouse, and control operation data of the greenhouse;
[0007] Performing data fusion on the multimodal data, and extracting key features of the fused data based on a multimodal variational autoencoder to obtain key features of the multimodal data;
[0008] Inputting the key features and the physical parameters of the greenhouse into a pre-constructed CO2 balance calculation model to obtain the cumulative CO2 consumption in the greenhouse output by the CO2 balance calculation model, wherein the CO2 balance calculation model is constructed based on a deep kernel learning neural network improved by a kernel function combined with a deep Gaussian process;
[0009] The cumulative CO2 consumption is input into a pre-constructed net primary productivity estimation model to obtain the net primary productivity of tomatoes in the greenhouse output by the net primary productivity estimation model, wherein the net primary productivity estimation model is constructed based on a densely connected network combined with an attention mechanism network.
[0010] According to a CO2 balance-driven tomato net primary productivity prediction method provided by the present invention, the key characteristics and the physical parameters of the greenhouse are input into a pre-built CO2 balance calculation model to obtain the cumulative CO2 consumption in the greenhouse output by the CO2 balance calculation model, including:
[0011] Inputting the key features and the physical parameters of the greenhouse into a deep kernel learning neural network to extract deep features, thereby obtaining deep features of the key features;
[0012] Based on the kernel function, the depth feature is mapped to a high-dimensional feature space to obtain a high-dimensional depth feature;
[0013] The cumulative consumption of CO2 is predicted based on the deep Gaussian process on the high-dimensional deep features to obtain the cumulative consumption of CO2 in the greenhouse.
[0014] According to a CO2 balance-driven tomato net primary productivity prediction method provided by the present invention, the CO2 cumulative consumption is input into a pre-constructed net primary productivity estimation model to obtain the net primary productivity of tomatoes in the greenhouse output by the net primary productivity estimation model, including:
[0015] Inputting the accumulated CO2 consumption into a densely connected network for feature extraction to obtain a first residual feature;
[0016] Inputting the accumulated CO2 consumption into the attention mechanism network for feature extraction to obtain a second residual feature;
[0017] The first residual feature and the second residual feature are fused to obtain a fused feature, and the net primary productivity of tomatoes in the greenhouse is predicted using the fused feature.
[0018] According to a CO2 balance-driven tomato net primary productivity prediction method provided by the present invention, the multimodal variational autoencoder is used to extract key features of the fused data to obtain the key features of the multimodal data, including:
[0019] Mapping the fused data to a distribution of latent variables based on an encoder, and constructing the distribution of latent variables into a multimodal data matrix based on a decoder, wherein the multimodal variational autoencoder is composed of an encoder and a decoder;
[0020] Based on the multimodal data matrix, key features of the multimodal data are determined.
[0021] According to a method for predicting tomato net primary productivity driven by CO2 balance provided by the present invention, the training process of the CO2 balance calculation model includes:
[0022] Based on Hamiltonian Monte Carlo sampling of stochastic gradient Hamiltonian Monte Carlo, the parameters of the initial CO2 balance calculation model are adaptively adjusted to obtain the CO2 balance calculation model after preliminary parameter adjustment;
[0023] Based on the noise of Langevin dynamics of stochastic gradient Langevin dynamics, the parameters of the CO2 balance calculation model after the preliminary parameter adjustment are adaptively adjusted to obtain the CO2 balance calculation model.
[0024] According to a CO2 balance-driven tomato net primary productivity prediction method provided by the present invention, the training process of the net primary productivity estimation model includes:
[0025] Based on the second-order moment of the gradient of the adaptive gradient clipping, the clipping threshold of the gradient of the initial net primary productivity estimation model is adaptively adjusted to obtain the net primary productivity estimation model after preliminary parameter adjustment;
[0026] Based on the first-order moment and the second-order moment of the gradient of the adaptive momentum estimation, the learning rate and momentum of the net primary productivity estimation model after the preliminary parameter adjustment are adaptively adjusted to obtain the net primary productivity estimation model.
[0027] The present invention also provides a CO2 balance-driven tomato net primary productivity prediction device, comprising:
[0028] A data acquisition module, used to collect multimodal data of the greenhouse, wherein the multimodal data includes one or more of CO2 concentration change data in the greenhouse, temperature data in the greenhouse, humidity data in the greenhouse, light intensity data in the greenhouse, wind speed data outside the greenhouse, growth status data of crops in the greenhouse, remote sensing data of the greenhouse, and control operation data of the greenhouse;
[0029] A feature extraction module, used to perform data fusion on the multimodal data, and extract key features of the fused data based on a multimodal variational autoencoder to obtain key features of the multimodal data;
[0030] A parameter estimation module, used for inputting the key features and the physical parameters of the greenhouse into a pre-constructed CO2 balance calculation model to obtain the cumulative CO2 consumption in the greenhouse output by the CO2 balance calculation model, wherein the CO2 balance calculation model is constructed based on a deep kernel learning neural network improved by a kernel function combined with a deep Gaussian process;
[0031] A prediction module is used to input the cumulative CO2 consumption into a pre-constructed net primary productivity estimation model to obtain the net primary productivity of tomatoes in the greenhouse output by the net primary productivity estimation model, wherein the net primary productivity estimation model is constructed based on a densely connected network combined with an attention mechanism network.
[0032] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for predicting tomato net primary productivity driven by CO2 balance as described above is implemented.
[0033] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method for predicting the net primary productivity of tomatoes driven by CO2 balance as described above is implemented.
[0034] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for predicting the net primary productivity of tomatoes driven by CO2 balance as described above is implemented.
[0035] The CO2 balance-driven tomato net primary productivity prediction method and device provided by the present invention realizes real-time calculation and monitoring of the cumulative CO2 consumption in the greenhouse by taking the CO2 balance in the greenhouse as the main driving factor for the prediction of net primary productivity. At the same time, by using multimodal data fusion and deep learning technology, a CO2 balance calculation model and a net primary productivity estimation model are constructed in sequence, realizing an "end-to-end" process from data collection to data analysis, thereby improving the accuracy of net primary productivity prediction. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1 It is a schematic flow chart of the method for predicting net primary productivity of tomatoes driven by CO2 balance provided by the present invention;
[0038] Figure 2 It is a schematic structural diagram of a CO2 balance-driven tomato net primary productivity prediction device provided by the present invention;
[0039] Figure 3 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] The net primary productivity of tomatoes in a greenhouse refers to the organic carbon fixed by tomatoes through photosynthesis minus the organic carbon consumed by respiration in a unit time (a specific period of time such as this year or since planting). 2 / yr), which reflects the growth rate and biomass accumulation of tomatoes. The prediction of tomato NPP in the greenhouse is of great significance and value for evaluating the growth status of tomatoes, predicting the yield and quality of tomatoes, guiding water and fertilizer management and pest control in the greenhouse. In theory, CO2 is an essential substance for tomato photosynthesis. CO2 balance has an important influence on the prediction of tomato NPP in the greenhouse. It is also a product of tomato respiration. At present, the prediction methods of tomato NPP in the greenhouse mainly include model-based methods and data-based methods. Both model-based methods and data-based methods need to consider the key factor, namely CO2 balance. Among them, CO2 balance refers to the balance between CO2 input and output in the greenhouse, reflecting the changes and demands of CO2 concentration in the greenhouse. However, the CO2 concentration in the greenhouse is affected by many factors such as ventilation, light, temperature, humidity, soil, plants, etc. in the greenhouse, and is a complex dynamic nonlinear change process.
[0042] There are several related methods for predicting NPP of greenhouse tomatoes:
[0043] Model-based methods: mainly include mechanical models, empirical models and mechanism models. Mechanical models are simple models established based on the physical laws in the greenhouse (greenhouse energy balance model, CO2 balance model, etc.). Empirical models are statistical models established based on experimental data in the greenhouse (linear regression model, nonlinear regression model, etc.). Mechanism models are complex models established based on biochemical processes in the greenhouse (photosynthesis model, respiration model, growth model, etc.). The advantage of model-based methods is that they can better reflect the physical and biological processes in the greenhouse, which is conducive to explaining the causal relationship between CO2 balance in the greenhouse and tomato NPP. However, a large number of environmental factors and physiological parameters are required as inputs, which are often difficult to obtain or have large uncertainties, resulting in the accuracy and stability of the model being affected. In addition, the model structure and parameters are often fixed and difficult to adapt to dynamic changes and different planting conditions in the greenhouse.
[0044] Data-based methods: including traditional machine learning methods and deep learning methods. The traditional machine learning method is to use sensor data such as temperature, humidity, and CO2 concentration in the greenhouse, and establish a data-driven NPP prediction model (support vector machine SVM, artificial neural network ANN, random forest RF, etc.) through feature extraction and feature selection. The deep learning method uses multimodal data such as spectrum, image, video, etc. in the greenhouse to directly learn high-level features from the data through a deep neural network to establish an "end-to-end" NPP prediction model (convolutional neural network CNN, recurrent neural network RNN, variational autoencoder VAE, etc.). The advantage of the above method is that it uses a large amount of data for automatic learning and optimization, adapts to the complex and nonlinear data distribution in the greenhouse, and improves the accuracy and efficiency of NPP prediction. However, a large amount of labeled data is required as training data, which is difficult to obtain or has large errors, resulting in the generalization ability and credibility of the model being affected. In addition, the model structure and parameters are often black-box, making it difficult to explain the intrinsic relationship between the CO2 balance in the greenhouse and the tomato NPP and its evolution process.
[0045] The greenhouse tomato NPP prediction technology in related methods has the following shortcomings:
[0046] Insufficient data dimensions. Existing technologies often only use a single or limited data source to collect single-modal or low-modal data inside and outside the greenhouse. They lack the use of multimodal data of tomatoes in the greenhouse, resulting in low data quality and integrity. It is difficult to fully reflect the growth characteristics and status of tomatoes in the greenhouse, affecting the accuracy and reliability of the prediction.
[0047] Insufficient model capabilities. Existing technologies often use simple or fixed model structures, such as statistical regression models, machine learning models, etc., and usually use the NPP of greenhouse tomatoes as the output of the model and the environmental factors inside and outside the greenhouse as the input of the model for prediction. The growth dynamics and nonlinear characteristics of greenhouse tomatoes are ignored, making it difficult to adapt to the complex and changing environmental conditions in the greenhouse, and it is also difficult to effectively use the CO2 balance in the greenhouse to reflect the NPP level of greenhouse tomatoes, resulting in weak expression and computing capabilities of the model, affecting the accuracy and stability of the prediction.
[0048] Insufficient visualization / interpretability. Existing technologies often lack effective visualization methods, making it difficult to intuitively and clearly display the multimodal data and prediction results of greenhouse tomatoes, and to effectively and meaningfully analyze the characteristics and relationships of greenhouse tomatoes, resulting in low data utilization and value, affecting the interpretability and credibility of prediction results.
[0049] In view of the defects in the related methods, the present invention proposes a method for predicting the net primary productivity of tomatoes driven by CO2 balance. Figure 1 This is a schematic diagram of the process of predicting the net primary productivity of tomatoes driven by CO2 balance provided by the present invention. Figure 1 The CO2 balance-driven tomato net primary productivity prediction method provided by the present invention may include:
[0050] Step 110, collecting multimodal data of the greenhouse, wherein the multimodal data includes one or more of CO2 concentration change data in the greenhouse, temperature data in the greenhouse, humidity data in the greenhouse, light intensity data in the greenhouse, wind speed data outside the greenhouse, growth status data of crops in the greenhouse, remote sensing data of the greenhouse, and control operation data of the greenhouse;
[0051] Step 120, performing data fusion on the multimodal data, and extracting key features of the fused data based on a multimodal variational autoencoder to obtain key features of the multimodal data;
[0052] Step 130, inputting the key features and the physical parameters of the greenhouse into a pre-constructed CO2 balance calculation model to obtain the cumulative CO2 consumption in the greenhouse output by the CO2 balance calculation model, wherein the CO2 balance calculation model is constructed based on a deep kernel learning neural network improved by a kernel function combined with a deep Gaussian process;
[0053] Step 140, input the cumulative CO2 consumption into a pre-constructed net primary productivity estimation model to obtain the net primary productivity of tomatoes in the greenhouse output by the net primary productivity estimation model, wherein the net primary productivity estimation model is constructed based on a densely connected network combined with an attention mechanism network.
[0054] The execution subject of the CO2 balance-driven tomato net primary productivity prediction method provided by the present invention can be an electronic device, a component in an electronic device, an integrated circuit, or a chip. The electronic device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc., and the non-mobile electronic device can be a server, a network attached storage (NAS), or a personal computer (PC), etc., which is not specifically limited by the present invention.
[0055] The technical solution of the present invention is described in detail below by taking the method for predicting the net primary productivity of tomatoes driven by CO2 balance provided by the present invention executed by a computer as an example.
[0056] In step 110, multimodal data of the greenhouse is collected, and the multimodal data includes one or more of CO2 concentration change data in the greenhouse, temperature data in the greenhouse, humidity data in the greenhouse, light intensity data in the greenhouse, wind speed data outside the greenhouse, growth status data of crops in the greenhouse, remote sensing data of the greenhouse, and control operation data of the greenhouse.
[0057] Specifically, sensors and cameras inside and outside the smart greenhouse, as well as unmanned aerial vehicles (UAVs) or satellites (Satellites) can be used to collect multimodal data inside and outside the greenhouse, including changes in CO2 concentration, temperature, humidity, light, wind speed, crop growth status, crop leaf area, crop color, etc. in the greenhouse, as well as high-resolution remote sensing data of the greenhouse (including the surface temperature and albedo of the pixel where the greenhouse is located), and related control operation data (including ventilation, CO2 supplementation, etc.).
[0058] In order to obtain multimodal data inside and outside the greenhouse, sensors and cameras inside and outside the greenhouse, as well as unmanned aerial vehicles (UAVs) or satellites (Satellites) are used. Specifically, the following equipment and methods are used:
[0059] The CO2 sensor in the greenhouse is used to measure the CO2 concentration change in the greenhouse in ppm. The maximum sampling frequency is once per minute. The data format is a tuple of timestamp and CO2 concentration value, expressed as C(t), where t is time and C(t) is CO2 concentration.
[0060] The temperature and humidity in the greenhouse are measured using a temperature and humidity sensor in the greenhouse. The units are ℃ and %RH respectively. The maximum sampling frequency is once per minute. The data format is a triplet of timestamp and temperature and humidity values, expressed as T(t) and H(t), where t is time, T(t) is temperature, and H(t) is humidity.
[0061] A light sensor is used to measure the light intensity in the greenhouse. The sampling frequency is up to once per minute. The data format is a tuple of timestamp and light intensity value, expressed as L(t), where t is time and L(t) is light intensity.
[0062] A wind speed sensor is used to measure the wind speed outside the greenhouse in m / s. The sampling frequency is up to once per minute. The data format is a tuple of timestamp and wind speed value, expressed as W(t), where t is time and W(t) is wind speed.
[0063] A camera is used to capture the growth status of crops in the greenhouse, and combined with manual records, the crop height, stem thickness, leaf area, leaf color, number of flowers and fruits, etc. are collected. The sampling frequency is once a day, and the data format is a tuple of timestamp and image data, expressed as S(t), where t is time and S(t) is image data.
[0064] Use UAVs or satellites to capture high-resolution remote sensing data of the greenhouse, including greenhouse surface temperature, greenhouse albedo, etc. The sampling frequency is once a week. The data format is a tuple of timestamp and image data, expressed as R(t), where t is time and R(t) is image data.
[0065] Use the greenhouse control system to record the relevant control operation data of the greenhouse, including ventilation, CO2 supplementation, irrigation, fertilization, etc. The sampling frequency is each operation. The data format is a triple of timestamp, operation type and parameter value, expressed as O(t), where t is time and O(t) is operation type and parameter value.
[0066] In step 120, data fusion is performed on the multimodal data, and key features are extracted from the fused data based on a multimodal variational autoencoder to obtain key features of the multimodal data.
[0067] Specifically, in order to preprocess and analyze the data, a multi-source data fusion deep learning model based on a multimodal variational autoencoder (MVAE) is used to extract high-level features and regularities of the data, as well as the interactions and correlations between the data.
[0068] Specifically, the following steps and methods are used:
[0069] For the numerical data such as CO2 concentration changes, temperature, humidity, light, wind speed, etc. in the greenhouse, data cleaning, data standardization, data interpolation and other methods are used to remove outliers, missing values, noise, etc., so that the data conforms to the normal distribution, no missing values, no noise, etc., and is expressed as wait.
[0070] For the growth status of crops in the greenhouse, the high-resolution remote sensing data of the greenhouse and other image data, we use image enhancement, image feature extraction and other methods to increase the contrast and clarity of the image, segment the region of interest of the image, and extract the color, texture, shape and other features of the image, which are expressed as wait.
[0071] For greenhouse-related control operations and other categorical data, data encoding, data mapping, data embedding and other methods are used to convert the data into numerical data, making the data computable, comparable, embeddable, etc., expressed as wait.
[0072] All preprocessed data are aligned according to timestamps and combined into a multimodal data matrix, expressed as Where t is time and X(t) is the multimodal data matrix.
[0073] A multi-source data fusion deep learning model of Multimodal Variational Autoencoder (MVAE) is used to fuse multimodal data matrices and extract high-level features and regularities of the data, as well as the interactions and correlations between the data.
[0074] Specifically, the following structure and formula are used:
[0075] The multimodal variational autoencoder (MVAE) consists of an encoder and a decoder. The encoder maps the multimodal data matrix to the distribution of latent variables, and the decoder reconstructs the distribution of latent variables into a multimodal data matrix while minimizing the reconstruction error and the difference between the distribution of latent variables and the prior distribution, expressed as:
[0076] Encoder:
[0077] Decoder:
[0078] Objective function:
[0079] Where M is the number of modes, z is the latent variable, φ and θ are the parameters of the model, p(z) is the prior distribution of the latent variable, which is usually a standard normal distribution, and KL is the Kullback-Leibler divergence, which is used to measure the similarity of two distributions.
[0080] The encoder consists of multiple sub-encoders, each of which is responsible for processing the data of the modality. It uses structures such as convolutional neural networks (CNN) or recurrent neural networks (RNN) to map the data of each modality into a Gaussian distribution, which can be expressed as:
[0081]
[0082] Among them, μ m and are the mean and variance of the Gaussian distribution, determined by the output of the sub-encoder, m is the index of the modality, and z is the latent variable.
[0083] The decoder consists of multiple sub-decoders, each of which is responsible for reconstructing the data of the modality. It uses structures such as convolutional neural networks (CNN) or recurrent neural networks (RNN) to reconstruct the distribution of latent variables into data of each modality, expressed as:
[0084]
[0085] Among them, f m (z) is the output of the sub-decoder, is the variance of the reconstruction error, determined by the parameters of the sub-decoder, m is the index of the modality, and z is the latent variable.
[0086] Using the variational inference method, the objective function of the multimodal variational autoencoder (MVAE) is optimized to minimize the reconstruction error and the difference between the distribution of the latent variables and the prior distribution, expressed as:
[0087] Optimization goal:
[0088] Optimization method: Stochastic Gradient Descent (SGD) or other optimization algorithms
[0089] Among them, φ and θ are the parameters of the multimodal variational autoencoder (MVAE), X(t) is the multimodal data matrix, and L(φ,θ; X(t)) is the objective function.
[0090] The output of the Multimodal Variational Autoencoder (MVAE), that is, the distribution of latent variables, is used as the high-level features and regularities of the data, as well as the interactions and correlations between the data, expressed as:
[0091] Z(t)=q φ (z||X(t));
[0092] Where t is time, Z(t) is the distribution of the latent variable, and q φ (z||X(t)) is the output of the encoder of the Multimodal Variational Autoencoder (MVAE).
[0093] In step 130, the key features and the physical parameters of the greenhouse are input into a pre-constructed CO2 balance calculation model to obtain the cumulative CO2 consumption in the greenhouse output by the CO2 balance calculation model, wherein the CO2 balance calculation model is constructed based on a deep kernel learning neural network improved by a kernel function combined with a deep Gaussian process.
[0094] The key features extracted from multimodal data inside and outside the greenhouse, physical parameters (including greenhouse volume, surface area, greenhouse material thermal conductivity, etc.) and other related control operations (including ventilation, CO2 supplementation, etc.) are used as input, and the cumulative CO2 consumption of the greenhouse is used as output to establish a CO2 balance calculation model. The combination of deep neural networks and kernel functions of deep kernel learning (DKL) is used to enhance the processing of nonlinearity and uncertainty of data, improve the accuracy and reliability of CO2 balance calculation, and at the same time, the feature extraction of deep neural networks and feature mapping of kernel functions are used to improve the expression and generalization capabilities of the model.
[0095] The combination of multiple layers of Gaussian processes using the deep Gaussian process (DGP) is used to enhance the processing of data nonlinearity and uncertainty, improve the accuracy and reliability of CO2 balance calculations, and use the Bayesian reasoning and variational inference of Gaussian processes to improve the reasoning and approximation capabilities of the model. The role of this step is to use multimodal data inside and outside the greenhouse, other related physical parameters, and more advanced machine learning models to improve the accuracy and reliability of CO2 balance calculations, and provide a CO2 balance calculation model for subsequent training and testing of CO2 balance calculation models.
[0096] In step 140, the cumulative CO2 consumption is input into a pre-constructed net primary productivity estimation model to obtain the net primary productivity of tomatoes in the greenhouse output by the net primary productivity estimation model, wherein the net primary productivity estimation model is constructed based on a densely connected network combined with an attention mechanism network.
[0097] A net primary productivity estimation model was constructed using a densely connected network (DenseNet) and an attention network (Attention Network) to estimate the NPP of the greenhouse and improve the estimation accuracy and feature selection capabilities of the model.
[0098] By utilizing the features of all previous layers of each layer of the densely connected network (DenseNet), the network's feature transfer and feature reuse are enhanced, and the network's efficiency and performance are improved. By utilizing the attention weights of the attention network (Attention Network), the network's feature selection and feature attention are enhanced, and the network's flexibility and robustness are improved.
[0099] The results of the CO2 balance calculation model, as well as multimodal data from inside and outside the greenhouse, and advanced deep learning models are used to improve the estimation accuracy and generalization ability of net primary productivity.
[0100] It is understandable that the CO2 balance in the greenhouse is used as the main driving factor for NPP prediction, and the real-time calculation and monitoring of the cumulative CO2 consumption in the greenhouse, as well as the analysis and evaluation of its impact on NPP, are realized. The impact of the CO2 concentration in the greenhouse on tomato photosynthesis and respiration, as well as the impact of various environmental factors in the greenhouse on the CO2 concentration, are fully considered to improve the accuracy and reliability of NPP prediction. Compared with the model-based method in the related methods, it does not require a large number of environmental factors and physiological parameters as input, reducing the complexity and uncertainty of the model; compared with the data-based method in the related methods, it does not require a large amount of labeled data as training data, reducing the error and unreliability of the model.
[0101] Based on multimodal data fusion and deep learning technology, the CO2 balance calculation model and the net primary productivity estimation model are constructed in turn to realize the "end-to-end" process from data collection to data analysis. Data fusion is performed based on the multimodal variational autoencoder (MVAE), and the complementary and related information between multimodal data is extracted to enhance the expressiveness and information content of the data. The method of the present invention utilizes deep kernel learning (DKL) and deep Gaussian process (DGP) to perform CO2 balance calculations, enhancing the nonlinear processing capability and probabilistic reasoning capability of the model. At the same time, the net primary productivity is estimated using a densely connected network (DenseNet) and an attention mechanism network (Attention Network), improving the estimation accuracy and feature selection capability of the model.
[0102] The CO2 balance-driven tomato net primary productivity prediction method provided by the embodiment of the present invention realizes the real-time calculation and monitoring of the cumulative CO2 consumption in the greenhouse by taking the CO2 balance in the greenhouse as the main driving factor for the prediction of net primary productivity. At the same time, by using multimodal data fusion and deep learning technology, a CO2 balance calculation model and a net primary productivity estimation model are constructed in sequence, realizing an "end-to-end" process from data collection to data analysis, thereby improving the accuracy of net primary productivity prediction.
[0103] In one embodiment, the key features and the physical parameters of the greenhouse are input into a pre-built CO2 balance calculation model to obtain the cumulative CO2 consumption in the greenhouse output by the CO2 balance calculation model, including: inputting the key features and the physical parameters of the greenhouse into a deep kernel learning neural network to perform deep feature extraction to obtain deep features of the key features; based on the kernel function, mapping the deep features to a high-dimensional feature space to obtain high-dimensional deep features; based on a deep Gaussian process, predicting the cumulative CO2 consumption of the high-dimensional deep features to obtain the cumulative CO2 consumption in the greenhouse.
[0104] Optionally, the specific implementation process may be:
[0105] Physical parameters such as the volume of the greenhouse, the surface area, the thermal conductivity of the greenhouse's materials, etc., expressed as V, A, k, etc., are used to calculate the greenhouse's heat balance and CO2 balance.
[0106] The output of the Multimodal Variational Autoencoder (MVAE), i.e. the distribution of latent variables, is used as the high-level features and regularities of the data, as well as the interactions and correlations between the data, expressed as Z(t), where t is time and Z(t) is the distribution of latent variables, to provide fusion and representation of multimodal data inside and outside the greenhouse.
[0107] The combination of deep neural networks and kernel functions using deep kernel learning (DKL) enhances the processing of nonlinearity and uncertainty in data and improves the accuracy and reliability of CO2 balance calculations. At the same time, the feature extraction of deep neural networks and the feature mapping of kernel functions are used to improve the expressiveness and generalization capabilities of the model.
[0108] Specifically, the following structure and formula are used:
[0109] Deep Kernel Learning (DKL) consists of a deep neural network and a kernel function. The deep neural network maps the high-level features and regularities of the data, as well as the interactions and correlations between the data, into a low-dimensional feature space. The kernel function maps the low-dimensional feature space into a high-dimensional feature space, which can be expressed as:
[0110] f(X(t))=k(g(X(t)));
[0111] Among them, f(X(t)) is the output of deep kernel learning (DKL), k(·) is the kernel function, g(X(t)) is the output of the deep neural network, and X(t) is the high-level features and regularities of the data, as well as the interactions and correlations between the data.
[0112] A deep neural network consists of multiple fully connected layers, convolutional layers, or recurrent layers. It uses activation functions, normalization layers, dropout layers, and other techniques to improve the nonlinearity, stability, and robustness of the network, as expressed as:
[0113] g(X(t))=F(X(t);θ);
[0114] Among them, F is the function of the deep neural network, θ is the parameter of the deep neural network, and X(t) is the high-level characteristics and rules of the data, as well as the interactions and correlations between the data.
[0115] The kernel function is a Gaussian kernel function, a Laplace kernel function, or a polynomial kernel function. The kernel technique is used to map the low-dimensional feature space to a high-dimensional feature space, thereby improving the expressiveness and distinguishing ability of the features, which can be expressed as:
[0116]
[0117] Among them, exp(·) is the exponential function, ||·|| is the norm, μ and σ 2 is the parameter of the Gaussian kernel function, and g(X(t)) is the output of the deep neural network.
[0118] The combination of multiple layers of Gaussian processes using the Deep Gaussian Process (DGP) enhances the processing of data nonlinearity and uncertainty, improves the calculation accuracy and reliability of CO2 balance, and uses the Bayesian reasoning and variational inference of the Gaussian process to improve the reasoning and approximation capabilities of the model.
[0119] Specifically, the following structure and formula are used:
[0120] The deep Gaussian process (DGP) consists of multiple Gaussian processes. Each Gaussian process takes the output of the Gaussian process of the previous layer as input and outputs a Gaussian process, which can be expressed as:
[0121] f l (X(t)) = GP(m l (X(t)),k l (X(t),X(t)));
[0122] Among them, f l (X(t)) is the output of the Gaussian process at the lth layer, GP(·,·) is the distribution of the Gaussian process, m l (X(t)) is the mean function of the Gaussian process at the lth layer, k l (X(t),X(t)) is the covariance function of the Gaussian process of the lth layer, X(t) is the high-level characteristics and regularities of the data, as well as the interactions and correlations between the data, or the output of the Gaussian process of the previous layer.
[0123] The mean function and covariance function of the Gaussian process are determined by the output of deep kernel learning (DKL). The nonlinearity and uncertainty of deep kernel learning (DKL) are used to improve the expression and generalization ability of the Gaussian process, which can be expressed as:
[0124] m l (X(t))=f(X(t));
[0125] k l (X(t),X(t))=f(X(t))f(X(t)) T ;
[0126] Where f(X(t)) is the output of deep kernel learning (DKL), f(X(t))f(X(t)) T is the outer product of the output of deep kernel learning (DKL), X(t) is the high-level features and regularities of the data, as well as the interactions and correlations between the data.
[0127] Using the Bayesian reasoning method, we optimize the parameters of the deep Gaussian process (DGP), maximize the posterior probability, and improve the model's reasoning and approximation capabilities, which can be expressed as:
[0128] Optimization goal:
[0129] Optimization method: variational inference or other inference algorithms
[0130] Where φ and θ are the parameters of the deep Gaussian process (DGP), Y(t) is the cumulative CO2 consumption of the greenhouse, and p(φ,θ|Y(t)) is the posterior probability.
[0131] The output of the deep Gaussian process (DGP), that is, the output of the Gaussian process of the last layer, is used as the prediction of the cumulative CO2 consumption of the greenhouse, expressed as:
[0132] Y(t)=f L (X(t));
[0133] Where t is time, Y(t) is the cumulative CO2 consumption of the greenhouse, and f L (X(t)) is the output of the Gaussian process of the last layer.
[0134] Optionally, specific values of the core parameters of the constructed CO2 balance calculation model can be as shown in Table 1:
[0135] Table 1 Core parameter values of CO2 balance calculation model
[0136]
[0137]
[0138] In one embodiment, the training process of the CO2 balance calculation model includes: adaptively adjusting the parameters of the initial CO2 balance calculation model based on Hamiltonian Monte Carlo sampling of stochastic gradient Hamiltonian Monte Carlo to obtain the CO2 balance calculation model after the preliminary parameters are adjusted; adaptively adjusting the parameters of the CO2 balance calculation model after the preliminary parameters are adjusted based on the noise of Langevin dynamics of stochastic gradient Langevin dynamics to obtain the CO2 balance calculation model.
[0139] Optionally, the specific training process may be:
[0140] The Hamiltonian Monte Carlo sampling of Stochastic Gradient Hamiltonian Monte Carlo (SGHMC) is used to adaptively adjust the parameters of the model, maximize the posterior probability, and improve the effect and efficiency of the Bayesian reasoning of the model. The noise of the Langevin dynamics of Stochastic Gradient Langevin Dynamics (SGLD) is used to adaptively adjust the parameters of the model, minimize the variational lower bound, and improve the effect and efficiency of the variational inference of the model. Evaluate the performance of the CO2 balance calculation model, such as the mean square error (MSE) or correlation coefficient. The role of this step is to use advanced optimization algorithms to adjust the parameters of the CO2 balance calculation model to minimize the calculation error of the CO2 balance, and to evaluate the performance of the CO2 balance calculation model, and provide model training and test results for the subsequent confidence and error analysis of the CO2 balance calculation model.
[0141] Specifically, the following steps and methods are used:
[0142] The Hamiltonian Monte Carlo sampling of Stochastic Gradient Hamiltonian Monte Carlo (SGHMC) is used to adaptively adjust the parameters of the model, maximize the posterior probability, and improve the effect and efficiency of the Bayesian reasoning of the model.
[0143] Specifically, the following formulas and parameters are used:
[0144] The Hamiltonian Monte Carlo sampling of Stochastic Gradient Hamiltonian Monte Carlo (SGHMC) is a gradient-based Markov Chain Monte Carlo (MCMC) sampling method that uses the simulation of Hamiltonian dynamics to effectively explore the posterior distribution in high-dimensional space while using stochastic gradients to adapt to large-scale data, expressed as:
[0145] Hamiltonian dynamics:
[0146] Stochastic Gradient:
[0147] Among them, θ t is the parameter of the model, v t is an auxiliary variable, ∈ t is the step length, U(θ t) is the potential energy function, C is the friction coefficient, η t is the standard normal distribution noise, N is the total amount of data, n is the number of data sampled each time, y i is the observed value of the data, p(θ t ) is the prior distribution of the model, p(y i ∣θ t ) is the likelihood function of the model.
[0148] The sampling of Hamiltonian Monte Carlo of Stochastic Gradient Hamiltonian Monte Carlo (SGHMC) uses the following parameter settings to adapt to the data and model in the embodiment of the present invention:
[0149] Step size ∈ t The step size is 0.01, and a fixed step size is used to maintain sampling stability.
[0150] The friction coefficient C is 0.05. A smaller friction coefficient is used to reduce sampling deviation.
[0151] The number n of data sampled each time is 100, and a smaller number of data is used to improve sampling efficiency.
[0152] The number of sampling iterations is 1000. A larger number of iterations is used to improve the convergence of sampling.
[0153] The noise of Langevin dynamics using stochastic gradient Langevin dynamics (SGLD) is used to adaptively adjust the parameters of the model, minimize the variational lower bound, and improve the effect and efficiency of variational inference of the model.
[0154] Specifically, the following formulas and parameters are used:
[0155] Stochastic Gradient Langevin Dynamics (SGLD) is a gradient-based stochastic optimization algorithm that uses a simulation of Langevin dynamics to efficiently optimize the objective function in high-dimensional space, expressed as:
[0156]
[0157] Among them, θ t are the parameters of the model, ∈ t is the step length, L(θ t ) is the objective function, η t is the noise of standard normal distribution.
[0158] The noise of the Langevin dynamics of the stochastic gradient Langevin dynamics (SGLD) was set using the following parameters to fit the data and model in the embodiments of the present invention:
[0159] Step size ∈ t A fixed step size of 0.01 is used to maintain the stability of the optimization.
[0160] Objective function L(θ t ) is the variational lower bound, and the variational lower bound is used to approximate the posterior distribution, expressed as:
[0161]
[0162] Among them, q φ (z|X(t)) is the variational distribution, p θ (Y(t),z|X(t)) is the joint distribution, p(z|X(t)) is the posterior distribution, φ and θ are the parameters of the model, Y(t) is the cumulative CO2 consumption of the greenhouse, z is the latent variable, X(t) is the high-level characteristics and regularities of the data, as well as the interactions and correlations between the data, and KL is the Kullback-Leibler divergence used to measure the similarity of two distributions.
[0163] Evaluate the performance of the CO2 balance calculation model, such as mean square error (MSE) or correlation coefficient.
[0164] Specifically, the following indicators and methods are used:
[0165] The mean square error (MSE) is an indicator to measure the difference between the predicted value and the true value. It uses the mean of the squared error and is expressed as:
[0166]
[0167] Where T is the total time, Y(t) is the actual value of the greenhouse CO2 cumulative consumption, is the predicted value of the greenhouse CO2 cumulative consumption, is the square error.
[0168] The correlation coefficient is an indicator to measure the correlation between the predicted value and the true value. It uses the ratio of the covariance and standard deviation of the predicted value and the true value, expressed as:
[0169]
[0170] in, is the covariance between the predicted value and the true value, σ Y and is the standard deviation between the predicted value and the true value, Y and is a vector of predicted and true values.
[0171] Optionally, confidence and error analysis can be performed on the CO2 balance calculation model.
[0172] The posterior distribution of the Gaussian process of Bayesian optimization (BO) is used to adaptively adjust the hyperparameters of the model, maximize the performance of the model, improve the confidence of the model and the analysis of the error. At the same time, the sampling and prediction of the Gaussian process are used to improve the calculation of the confidence interval and error range of the model. The posterior distribution of the weights of the neural network of the Bayesian neural network (BNN) is used to adaptively adjust the structure of the model, maximize the performance of the model, improve the confidence of the model and the analysis of the error. At the same time, the distribution and variance of the output of the neural network are used to improve the calculation of the confidence interval and error range of the model. The role of this step is to use advanced confidence and error analysis techniques to enhance the credibility and error analysis of the results of the CO2 balance calculation model, and provide the calculation results of the CO2 balance for subsequent NPP estimation.
[0173] Specifically, the following steps and methods are used:
[0174] Using the posterior distribution of the Gaussian process of Bayesian optimization (BO), the model's hyperparameters are adaptively adjusted to maximize the model's performance and improve the model's confidence and error analysis.
[0175] Specifically, the following structure and formula are used:
[0176] Bayesian optimization (BO) is a global optimization method based on Bayesian reasoning. It uses the posterior distribution of the Gaussian process to effectively find the optimal hyperparameters in high-dimensional space, and uses the acquisition function to balance between exploration and utilization, which is expressed as:
[0177] Gaussian process: f(θ)~GP(m(θ),k(θ,θ));
[0178] Acquisition function: α(θ) = E[f(θ) | D t ];
[0179] Optimization goal:
[0180] Among them, f(θ) is the objective function, θ is the hyperparameter, m(θ) is the mean function of the Gaussian process, k(θ,θ) is the covariance function of the Gaussian process, α(θ) is the acquisition function, and D t is the observed data set, and t is the number of iterations.
[0181] The mean function and covariance function of the Gaussian process are determined by the output of the deep Gaussian process (DGP). The nonlinearity and uncertainty of the deep Gaussian process (DGP) are used to improve the expression and generalization capabilities of the Gaussian process, which can be expressed as:
[0182] m(θ)=f L (X(θ));
[0183] k(θ,θ)=fL (X(θ))f L (X(θ)) T ;
[0184] Among them, f L (X(θ)) is the output of the Gaussian process of the last layer, f L (X(θ))f L (X(θ)) T is the outer product of the output of the Gaussian process of the last layer, X(θ) is the high-level features and regularities of the data, as well as the interactions and correlations between the data, or the output of the Gaussian process of the previous layer.
[0185] The acquisition function is expected improvement (EI) or upper confidence bound (UCB) or probability improvement (PoI), etc. Different strategies are used to balance between exploration and utilization, which can be expressed as:
[0186] Expected improvement: α(θ) = E[max(f(θ)-f(θ) * ),0)];
[0187] Upper confidence bound: α(θ)=μ(θ)+βσ(θ);
[0188] Probability increase:
[0189] Among them, f(θ) is the objective function, θ is the hyperparameter, and f(θ * ) is the maximum value of the objective function, μ(θ) and σ(θ) are the mean and standard deviation of the posterior distribution of the Gaussian process, β is the confidence coefficient, and Φ(·) is the cumulative distribution function of the standard normal distribution.
[0190] Use the Bayesian optimization (BO) optimizer to optimize and find the optimal hyperparameters, expressed as:
[0191]
[0192] Among them, θ * is the optimal hyperparameter, α(θ) is the acquisition function, and θ is the hyperparameter.
[0193] Use the optimal hyperparameters to train the CO2 balance calculation model, use the posterior distribution of the weights of the Bayesian neural network (BNN) neural network, adaptively adjust the model structure, maximize the performance of the model, and improve the confidence and error analysis of the model.
[0194] Specifically, the following structure and formula are used:
[0195] Bayesian neural network (BNN) is a neural network based on Bayesian reasoning. It uses the posterior distribution of the weights of the neural network to effectively find the optimal neural network structure in high-dimensional space. At the same time, it uses variational inference to effectively approximate the posterior distribution in large-scale data, which can be expressed as:
[0196] Neural network: f(X(t))=F(X(t);W);
[0197] Posterior distribution: p(W∣∣Y(t))∝p(Y(t)∣W)p(W);
[0198] Variational distribution: q φ (W)≈p(W||Y(t));
[0199] Variational lower bound:
[0200] Where f(X(t)) is the output of the neural network, F(·; W) is the function of the neural network, and W
[0201] is the weight of the neural network, p(W|Y(t)) is the posterior distribution of the weight of the neural network, p(Y(t)|W) is the likelihood function of the neural network, p(W) is the prior distribution of the weight of the neural network, q φ (W) is the variational distribution of the weights of the neural network, φ is the parameter of the variational distribution, Y(t) is the cumulative CO2 consumption of the greenhouse, and KL is the Kullback-Leibler divergence to measure the similarity of the two distributions.
[0202] The neural network consists of multiple fully connected layers, convolutional layers, or recurrent layers, etc., using activation functions, normalization layers, dropout layers and other technologies to improve the nonlinearity, stability, and robustness of the network, which can be expressed as:
[0203] f(X(t))=F(X(t);W);
[0204] Among them, F(·; W) is the function of the neural network, W is the weight of the neural network, and X(t) is the high-level characteristics and rules of the data as well as the interactions and correlations between the data.
[0205] The posterior distribution of the weights of the neural network is determined by the Bayesian inference method. Using Bayes' theorem, the prior distribution and the likelihood function are combined to obtain the posterior distribution, which is expressed as:
[0206] p(W∣∣Y(t))∝p(Y(t)∣W)p(W);
[0207] Among them, p(W|Y(t)) is the posterior distribution of the weights of the neural network, p(Y(t)|W) is the likelihood function of the neural network, p(W) is the prior distribution of the weights of the neural network, Y(t) is the cumulative consumption of greenhouse CO2, and W is the weight of the neural network.
[0208] The variational distribution of the weights of the neural network is approximated by the variational inference method. The variational distribution is obtained by separating the log-likelihood of the posterior distribution and the Kullback-Leibler divergence of the variational distribution using the variational lower bound, which is expressed as:
[0209] q φ (W)≈p(W||Y(t));
[0210] Among them, q φ (W) is the variational distribution of the weights of the neural network, p(W|Y(t)) is the posterior distribution of the weights of the neural network, φ is the parameter of the variational distribution, Y(t) is the cumulative CO2 consumption of the greenhouse, and W is the weight of the neural network.
[0211] Using the variational inference method, we optimize the parameters of the variational distribution of the neural network weights, minimize the variational lower bound, and improve the effect and efficiency of the variational inference of the model, which can be expressed as:
[0212] Optimization goal:
[0213] Optimization method: Stochastic Gradient Descent (SGD) or other optimization algorithms;
[0214] Among them, φ is the parameter of the variational distribution of the weights of the neural network, and L(φ) is the variational lower bound, expressed as:
[0215]
[0216] Among them, q φ (W) is the variational distribution of the weights of the neural network, p(Y(t)|W) is the likelihood function of the neural network, p(W) is the prior distribution of the weights of the neural network, Y(t) is the cumulative CO2 consumption of the greenhouse, W is the weight of the neural network, and KL is the Kullback-Leibler divergence.
[0217] The output of the variational distribution of the weights of the neural network, that is, the approximation of the posterior distribution of the weights of the neural network, is used as the optimal value of the weights of the neural network, expressed as:
[0218] W * =q φ (W);
[0219] Among them, W * is the optimal value of the weight of the neural network, q φ(W) is the variational distribution of the weights of the neural network, and φ is the parameter of the variational distribution.
[0220] The CO2 balance calculation model is tested using the optimal neural network weights, and the distribution and variance of the neural network output are used to improve the calculation of the model's confidence interval and error range.
[0221] Specifically, the following formulas and methods are used:
[0222] The distribution and variance of the output of the neural network are determined by the approximation of the posterior distribution of the weights of the neural network. Using the approximate mean and variance of the posterior distribution of the weights of the neural network, the distribution and variance of the output of the neural network are expressed as:
[0223] Distribution: p(Y(t)∣∣X(t))=N(f(X(t)),σ 2 );
[0224] variance:
[0225] Among them, p(Y(t)|X(t)) is the distribution of the output of the neural network, N(·,·) is the normal distribution, f(X(t)) is the output of the neural network, X(t) is the high-level characteristics and rules of the data, as well as the interaction and correlation between the data, σ 2 is the variance of the output of the neural network, is the variance of the variational distribution of the neural network weights, q φ (W) is the variational distribution of the weights of the neural network, and φ is the parameter of the variational distribution.
[0226] Using the distribution and variance of the output of the neural network, the confidence interval and error range of the output of the neural network are calculated. Using the properties of the normal distribution, the confidence interval and error range of the output of the neural network are obtained, which can be expressed as:
[0227] Confidence interval: [μ-ασ,μ+ασ];
[0228] Error margin: 2ασ;
[0229] Among them, μ is the mean of the output of the neural network, σ is the standard deviation of the output of the neural network, and α is the confidence level, which is generally 1.96 or 2.58.
[0230] In one embodiment, the cumulative CO2 consumption is input into a pre-constructed net primary productivity estimation model to obtain the net primary productivity of tomatoes in the greenhouse output by the net primary productivity estimation model, including: inputting the cumulative CO2 consumption into a densely connected network for feature extraction to obtain a first residual feature; inputting the cumulative CO2 consumption into an attention mechanism network for feature extraction to obtain a second residual feature; fusing the first residual feature and the second residual feature to obtain a fused feature, and performing net primary productivity prediction on the fused feature to obtain the net primary productivity of tomatoes in the greenhouse.
[0231] Optionally, the features of all previous layers of each layer of the densely connected network (DenseNet) are used to enhance the network's feature transfer and feature reuse, thereby improving the network's efficiency and performance. The attention weights of the attention mechanism network (AttentionNetwork) are used to enhance the network's feature selection and feature attention, thereby improving the network's flexibility and robustness. The purpose of this step is to use the results of the CO2 balance calculation model, multimodal data inside and outside the greenhouse, and advanced deep learning models to improve the estimation accuracy and generalization ability of NPP, and provide a net primary productivity estimation model for the subsequent training and testing of the net primary productivity estimation model.
[0232] Specifically, the following structure and formula are used:
[0233] The densely connected network (DenseNet) is an improved deep neural network based on the deep residual network (ResNet). It uses dense connections to connect the features of all previous layers in each layer, expressed as:
[0234] x l =H l ([x0,x1,…,x l-1 ]);
[0235] Among them, x l is the output of the lth layer, H l (·) is the function of the lth layer, [x0,x1,…,x l-1 ] is the connection of the outputs of all previous layers of the lth layer, and l is the number of layers.
[0236] The function of each layer of the densely connected network (DenseNet) consists of a batch normalization (BN) layer, an activation function (ReLU) layer, and a convolution (Conv) layer. The standard convolutional neural network (CNN) technology is used to improve the nonlinearity, stability, and robustness of the network, which can be expressed as:
[0237] H l (·) = Conv(ReLU(BN(·)));
[0238] Among them, BN(·) is the function of the batch normalization (BN) layer, ReLU(·) is the function of the activation function (ReLU) layer, and Conv(·) is the function of the convolution (Conv) layer.
[0239] The convolutional (Conv) layer of each layer of the densely connected network (DenseNet) uses a fixed kernel size and step size to keep the size of the feature map unchanged, expressed as:
[0240] Conv(·)=Conv k,s (·);
[0241] Among them, Conv k,s (·) is the convolutional (Conv) layer function, k is the kernel size, s is the step size, and k=3, s=1, etc.
[0242] The number of output channels of each layer of the densely connected network (DenseNet) is a fixed growth rate to control the number of network parameters and calculations, expressed as:
[0243] C l =C0+k l ;
[0244] Among them, C l is the number of channels of the output of the lth layer, C0 is the number of channels of the output of the 0th layer, k l is the growth rate of the lth layer, generally k l =12, 24, 48, etc.
[0245] The output features of each layer of the densely connected network (DenseNet) are used as feature transfer and feature reuse of the network to improve the efficiency and performance of the network, which can be expressed as:
[0246] F l =x l ;
[0247] Among them, F l is the output feature of the lth layer, x l is the output of the lth layer, and l is the number of layers.
[0248] The Attention Network is a deep neural network based on self-attention. It uses attention weights to weight the features of all previous layers in each layer, expressed as:
[0249]
[0250] Among them, y l is the output of layer l, a liis the attention weight between the lth layer and the ith layer, F i is the output feature of the i-th layer, l and i are the number of layers.
[0251] The attention weight of each layer of the Attention Network consists of a Multi-Head Self-Attention layer, a Feed-Forward layer, a Residual Connection layer, and a Layer Normalization layer. It uses standard Natural Language Processing (NLP) techniques to improve the feature selection and feature attention of the network, which can be expressed as:
[0252] a li =LN(RC(FF(MHSA(F l ,F i ))));
[0253] Among them, MHSA(·,·) is the function of the Multi-Head Self-Attention layer, FF(·) is the function of the Feed-Forward layer, RC(·) is the function of the Residual Connection layer, LN(·) is the function of the Layer Normalization layer, and F l ,F i is the output feature of the lth layer and the ith layer, where l and i are the number of layers.
[0254] The output features of each layer of the attention network serve as the feature selection and feature attention of the network to improve the flexibility and robustness of the network, which can be expressed as:
[0255] G l =y l ;
[0256] Among them, G l is the output feature of the lth layer, y l is the output of the lth layer, and l is the number of layers.
[0257] The output of the densely connected network (DenseNet) and the attention mechanism network (Attention Network), that is, the output characteristics of each layer, are used as the high-level characteristics and rules of the data, as well as the interactions and correlations between the data, expressed as:
[0258] X(t)=[F0,F1,…,F L ,G0,G1,…,G L];
[0259] Where t is time, X(t) is the high-level characteristics and rules of the data, as well as the interactions and correlations between the data, F0, F1, ..., F L is the output feature of each layer of the densely connected network (DenseNet), G0, G1, ..., G L is the output feature of each layer of the attention network, and L is the number of layers.
[0260] The output of the net primary productivity estimation model, that is, the output of the last layer, is used as the estimate of NPP, expressed as:
[0261] N(t) = f(X(t));
[0262] Among them, t is time, N(t) is the estimated value of NPP, f(f(t)) is the output of the last layer, and X(t) is the high-level features and regularities of the data.
[0263] Optionally, the core parameters of the constructed net primary productivity estimation model can be shown in Table 2.
[0264] Table 2 Core parameters of the net primary productivity estimation model
[0265]
[0266]
[0267] In one embodiment, the training process of the net primary productivity estimation model includes: based on the second-order moment of the gradient of adaptive gradient clipping, adaptively adjusting the clipping threshold of the gradient of the initial net primary productivity estimation model to obtain the net primary productivity estimation model after preliminary parameter adjustment; based on the first-order moment and second-order moment of the gradient of adaptive momentum estimation, adaptively adjusting the learning rate and momentum of the net primary productivity estimation model after preliminary parameter adjustment to obtain the net primary productivity estimation model.
[0268] The second-order moment of the gradient of adaptive gradient clipping (AdaGradClip) is used to adaptively adjust the gradient clipping threshold to prevent gradient explosion or gradient disappearance, and improve the stability and convergence of optimization. The first-order and second-order moments of the gradient of adaptive momentum estimation (AdaM) are used to adaptively adjust the learning rate and momentum to accelerate the speed and effect of optimization. Evaluate the performance of the net primary productivity estimation model, such as mean square error (MSE) or correlation coefficient. The role of this step is to use the optimization algorithm to adjust the parameters of the net primary productivity estimation model to minimize the estimation error of NPP, and to evaluate the performance of the net primary productivity estimation model, so as to provide model training and test results for the subsequent feature extraction and feature visualization of the net primary productivity estimation model.
[0269] Specifically, the following steps and methods are used:
[0270] The second-order moment of the gradient of adaptive gradient clipping (AdaGradClip) is used to adaptively adjust the gradient clipping threshold to prevent gradient explosion or gradient disappearance and improve the stability and convergence of optimization.
[0271] Specifically, the following formulas and parameters are used:
[0272] Adaptive gradient clipping (AdaGradClip) is an improved optimization algorithm based on adaptive gradient (AdaGrad). It uses the second-order moment of the gradient to adaptively adjust the gradient clipping threshold, which is expressed as:
[0273] Second moment of gradient:
[0274] Gradient clipping threshold:
[0275] Gradient clipping:
[0276] Among them, r t is the second-order moment of the gradient at the tth iteration, r t-1 is the second-order moment of the gradient at the t-1th iteration, is the gradient of the tth iteration, δ t is the clipping threshold of the gradient of the tth iteration, η is the initial learning rate, ∈ is the smoothing term, θ t is the parameter of the tth iteration, J(θ t ) is the loss function of the tth iteration.
[0277] The second-order moment of the gradient and the clipping threshold of the gradient of the adaptive gradient clipping (AdaGradClip) are set using the following parameters to adapt to the data and model in the embodiment of the present invention:
[0278] The initial learning rate η is 0.01, and a smaller initial learning rate is used to maintain the stability of optimization.
[0279] The smoothing term ∈ is 10 -8 , using a smaller smoothing term to prevent the denominator from reaching zero.
[0280] The first and second moments of the gradient using Adaptive Momentum Estimation (AdaM) are used to adaptively adjust the learning rate and momentum to accelerate the speed and effect of optimization.
[0281] Specifically, the following formulas and parameters are used:
[0282] Adaptive Momentum Estimation (AdaM) is an optimization algorithm based on the combination of adaptive gradient (AdaGrad) and momentum (Momentum). It uses the first-order moment and second-order moment of the gradient to adaptively adjust the learning rate and momentum, expressed as:
[0283] First moment of gradient:
[0284] Second moment of gradient:
[0285] Bias correction:
[0286] Parameter update:
[0287] Among them, m t and v t is the first and second moment of the gradient of the tth iteration, m t-1 and v t-1 are the first and second moments of the gradient at the t-1th iteration, is the gradient of the tth iteration, β1 and β2 are the decay rates of the first and second moments of the gradient, and is the deviation correction of the first-order moment and second-order moment of the gradient of the tth iteration, η is the initial learning rate, ∈ is the smoothing term, θ t is the parameter of the tth iteration, J(θ t ) is the loss function of the tth iteration.
[0288] The first and second moments of the gradient of the adaptive momentum estimation (AdaM) are set using the following parameters to adapt to the data and model in the embodiment of the present invention:
[0289] The initial learning rate η is 0.01, and a smaller initial learning rate is used to maintain the stability of optimization.
[0290] The smoothing term ∈ is 10 -8 , using a smaller smoothing term to prevent the denominator from reaching zero.
[0291] The decay rate β1 of the first-order moment of the gradient is 0.9, and a larger decay rate is used to maintain the inertia of the first-order moment of the gradient.
[0292] The decay rate β2 of the second-order moment of the gradient is 0.999. A larger decay rate is used to maintain the stability of the second-order moment of the gradient.
[0293] Use the optimizer of adaptive gradient clipping (AdaGradClip) and adaptive momentum estimation (AdaM) to optimize and find the optimal parameters, expressed as:
[0294]
[0295] Among them, θ * is the optimal parameter, J(θ) is the loss function, and θ is the parameter.
[0296] Use the optimal parameters to train and test the net primary productivity estimation model, and use indicators such as mean square error (MSE) or correlation coefficient (introduced in the previous steps) to evaluate the performance of the net primary productivity estimation model.
[0297] Optionally, feature extraction and feature visualization can be performed for the NPP estimation model.
[0298] The graph structure of the graph convolutional neural network (GCN) is used to enhance the extraction and representation of the topological and geometric features of the data, and improve the expressiveness and distinguishing ability of the features. The tensor structure of tensor decomposition (TD) is used to enhance the decomposition and reconstruction of the multidimensional and multimodal features of the data, and improve the compression and interpretation capabilities of the features. At the same time, the results of the net primary productivity estimation model are explained and visualized, including the use of heat maps, scatter plots, bar charts, etc. The purpose of this step is to use feature extraction and feature visualization techniques to enhance the understanding and mining of the inherent laws of the data, as well as the explainability and visualization of the model results, and provide data analysis and display for subsequent model application and evaluation.
[0299] Specifically, the following steps and methods are used:
[0300] The graph structure of the graph convolutional neural network (GCN) is used to enhance the extraction and representation of the topological and geometric features of the data, and improve the expressiveness and distinguishing ability of the features.
[0301] Specifically, the following structure and formula are used:
[0302] Graph Convolutional Neural Network (GCN) is a deep neural network based on graph structure. It uses graph convolution to aggregate the information of nodes and their neighbors and represents the nodes as feature vectors, expressed as:
[0303]
[0304] Among them, H (l) is the output of the lth layer, σ(·) is the activation function, is the degree matrix of the graph, is the adjacency matrix of the graph, W (l) is the weight matrix of the lth layer, l is the number of layers
[0305] The graph convolutional neural network (GCN) uses the following parameter settings to adapt to the data and model in the embodiments of the present invention:
[0306] The activation function σ(·) is a rectified linear unit (ReLU), which uses the nonlinearity, stability, and robustness of the rectified linear unit (ReLU) and is expressed as σ(x)=max(0,x), where x is the input and σ(x) is the output.
[0307] The number of layers l is 2, and a two-layer graph convolutional neural network (GCN) is used to balance the complexity and performance of the network, expressed as l=2, where l is the number of layers.
[0308] The output dimension of the first layer is 64, and a 64-dimensional feature vector is used to represent the nodes of the graph, expressed as d1=64, where d1 is the output dimension of the first layer.
[0309] The output dimension of the second layer is 1, and a 1-dimensional feature vector is used to represent the NPP estimation value of the node, which is expressed as d2=1, where d2 is the output dimension of the second layer.
[0310] The tensor structure of tensor decomposition (TD) is used to enhance the decomposition and reconstruction of multidimensional and multimodal features of data, and improve the compression and interpretation capabilities of features.
[0311] Specifically, the following structure and formula are used:
[0312] Tensor decomposition (TD) is a dimensionality reduction method based on tensor structure. It uses the rank of the tensor to decompose the multidimensional and multimodal features of the data into several low-dimensional core tensors and factor matrices, expressed as:
[0313]
[0314] Among them, X is the original data tensor, R is the rank of the tensor, and λ r is the weight of the r-th core tensor, G r is the rth core tensor, A (n) is the nth factor matrix, N is the order of the tensor, × n is the nth modular multiplication of the tensor.
[0315] Tensor decomposition (TD) uses the following parameter settings to adapt to the data and model in the embodiment of the present invention:
[0316] The data tensor X is a third-order tensor that uses a three-dimensional data structure to represent the multimodal characteristics of the data, expressed as , where I is the size of the first dimension, representing the time dimension of the data, J is the size of the second dimension, representing the spatial dimension of the data, and K is the size of the third dimension, representing the modal dimension of the data.
[0317] The rank R of the tensor is 10, and 10 core tensors and factor matrices are used to approximate the original data tensor, expressed as R=10, where R is the rank of the tensor.
[0318] Core tensor G r It is a third-order tensor, using a three-dimensional data structure to represent the low-dimensional features of the data, expressed as Among them, I r is the size of the first dimension, representing the low-dimensional features of the time dimension of the data, J r is the size of the second dimension, representing the low-dimensional features of the spatial dimension of the data, K r is the size of the third dimension, representing the low-dimensional features of the modal dimension of the data, and r is the sequence number of the kernel tensor.
[0319] The factor matrix A(n) is a two-dimensional matrix, which uses a two-dimensional data structure to represent the feature transformation of each dimension of the data, expressed as Among them, S n is the size of the nth dimension, indicating the original features of the nth dimension of the data, R is the rank of the tensor, indicating the low-dimensional features of the nth dimension of the data, and n is the ordinal number of the dimension.
[0320] The result of tensor decomposition (TD), namely the kernel tensor and factor matrix, is used as the decomposition and reconstruction of the multidimensional and multimodal features of the data to improve the compression and explanation capabilities of the features, expressed as Among them, X is the original data tensor, is the approximate data tensor, R is the rank of the tensor, and λ r is the weight of the r-th core tensor, G r is the rth core tensor, A (n) is the nth factor matrix, where n is the number of dimensions.
[0321] The result of the net primary productivity estimation model, that is, the output of the last layer, is used as the estimated value of NPP, expressed as N(t)=f(X(t)), where t is time, N(t) is the estimated value of NPP, f(X(t)) is the output of the last layer, and X(t) is the high-level characteristics and regularities of the data, as well as the interactions and correlations between the data.
[0322] The results of the net primary productivity estimation model, i.e. the estimated value of NPP, are used for interpretable and visual presentation, including the use of heat maps, scatter plots, bar charts, etc.
[0323] Specifically, the following methods and graphics are used:
[0324] The heat map reflects the distribution and changes of the estimated value of NPP in the spatial dimension, and uses the depth of color to indicate the size and trend of the estimated value of NPP.
[0325] The scatter plot shows the relationship and similarity between the estimated and true values of NPP in the time dimension, and uses the position and shape of the points to indicate the difference and consistency between the estimated and true values of NPP.
[0326] The bar chart presents the comparison and evaluation of the estimated and true values of NPP in the modal dimension, and uses the height and color of the bar to indicate the error and accuracy of the estimated and true values of NPP.
[0327] In one embodiment, key features of the fused data are extracted based on a multimodal variational autoencoder to obtain key features of the multimodal data, including: mapping the fused data to a distribution of latent variables based on an encoder, and constructing the distribution of latent variables into a multimodal data matrix based on a decoder, wherein the multimodal variational autoencoder is composed of an encoder and a decoder; and determining key features of the multimodal data based on the multimodal data matrix.
[0328] The multimodal variational autoencoder (MVAE) consists of an encoder and a decoder. The encoder maps the multimodal data matrix to the distribution of latent variables, and the decoder reconstructs the distribution of latent variables into a multimodal data matrix while minimizing the reconstruction error and the difference between the distribution of latent variables and the prior distribution, expressed as:
[0329] Encoder:
[0330] Decoder: Objective function:
[0331] Where M is the number of modes, z is the latent variable, φ and θ are the parameters of the model, p(z) is the prior distribution of the latent variable, which is usually a standard normal distribution, and KL is the Kullback-Leibler divergence, which is used to measure the similarity of two distributions.
[0332] The encoder consists of multiple sub-encoders, each of which is responsible for processing the data of the modality. It uses structures such as convolutional neural networks (CNN) or recurrent neural networks (RNN) to map the data of each modality into a Gaussian distribution, which can be expressed as:
[0333]
[0334] Among them, μ m and are the mean and variance of the Gaussian distribution, determined by the output of the sub-encoder, m is the index of the modality, and z is the latent variable.
[0335] The decoder consists of multiple sub-decoders, each of which is responsible for reconstructing the data of the modality. It uses structures such as convolutional neural networks (CNN) or recurrent neural networks (RNN) to reconstruct the distribution of latent variables into data of each modality, expressed as:
[0336]
[0337] Among them, f m (z) is the output of the sub-decoder, is the variance of the reconstruction error, determined by the parameters of the sub-decoder, m is the index of the modality, and z is the latent variable.
[0338] Using the variational inference method, the objective function of the multimodal variational autoencoder (MVAE) is optimized to minimize the reconstruction error and the difference between the distribution of the latent variables and the prior distribution, expressed as:
[0339] Optimization goal:
[0340] Optimization method: Stochastic Gradient Descent (SGD) or other optimization algorithms
[0341] Among them, φ and θ are the parameters of the multimodal variational autoencoder (MVAE), X(t) is the multimodal data matrix, and L(φ,θ; X(t)) is the objective function.
[0342] The output of the Multimodal Variational Autoencoder (MVAE), that is, the distribution of latent variables, is used as the high-level features and regularities of the data, as well as the interactions and correlations between the data, expressed as:
[0343] Z(t)=q φ (z||X(t));
[0344] Where t is time, Z(t) is the distribution of the latent variable, and q φ (z||X(t)) is the output of the encoder of the Multimodal Variational Autoencoder (MVAE).
[0345] Figure 2 The schematic diagram of the structure of the CO2 balance-driven tomato net primary productivity prediction device provided by the present invention is as follows: Figure 2 The device comprises:
[0346] A data acquisition module 210 is used to collect multimodal data of the greenhouse, wherein the multimodal data includes one or more of CO2 concentration change data in the greenhouse, temperature data in the greenhouse, humidity data in the greenhouse, light intensity data in the greenhouse, wind speed data outside the greenhouse, growth status data of crops in the greenhouse, remote sensing data of the greenhouse, and control operation data of the greenhouse;
[0347] A feature extraction module 220 is used to perform data fusion on the multimodal data, and extract key features of the fused data based on a multimodal variational autoencoder to obtain key features of the multimodal data;
[0348] A parameter estimation module 230, for inputting the key features and the physical parameters of the greenhouse into a pre-constructed CO2 balance calculation model to obtain the cumulative CO2 consumption in the greenhouse output by the CO2 balance calculation model, wherein the CO2 balance calculation model is constructed based on a deep kernel learning neural network improved by a kernel function combined with a deep Gaussian process;
[0349] The prediction module 240 is used to input the cumulative CO2 consumption into a pre-constructed net primary productivity estimation model to obtain the net primary productivity of tomatoes in the greenhouse output by the net primary productivity estimation model, wherein the net primary productivity estimation model is constructed based on a densely connected network combined with an attention mechanism network.
[0350] The CO2 balance-driven tomato net primary productivity prediction device provided by the embodiment of the present invention realizes real-time calculation and monitoring of the cumulative CO2 consumption in the greenhouse by taking the CO2 balance in the greenhouse as the main driving factor for the prediction of net primary productivity. At the same time, by using multimodal data fusion and deep learning technology, a CO2 balance calculation model and a net primary productivity estimation model are constructed in sequence, realizing an "end-to-end" process from data collection to data analysis, thereby improving the accuracy of net primary productivity prediction.
[0351] In one embodiment, the parameter estimation module 230 is specifically used for:
[0352] The step of inputting the key features and the physical parameters of the greenhouse into a pre-built CO2 balance calculation model to obtain the cumulative CO2 consumption in the greenhouse output by the CO2 balance calculation model includes:
[0353] Inputting the key features and the physical parameters of the greenhouse into a deep kernel learning neural network to extract deep features, thereby obtaining deep features of the key features;
[0354] Based on the kernel function, the depth feature is mapped to a high-dimensional feature space to obtain a high-dimensional depth feature;
[0355] The cumulative consumption of CO2 is predicted based on the deep Gaussian process on the high-dimensional deep features to obtain the cumulative consumption of CO2 in the greenhouse.
[0356] In one embodiment, the prediction module 240 is specifically used to:
[0357] The step of inputting the accumulated CO2 consumption into a pre-constructed net primary productivity estimation model to obtain the net primary productivity of tomatoes in the greenhouse output by the net primary productivity estimation model comprises:
[0358] Inputting the accumulated CO2 consumption into a densely connected network for feature extraction to obtain a first residual feature;
[0359] Inputting the accumulated CO2 consumption into the attention mechanism network for feature extraction to obtain a second residual feature;
[0360] The first residual feature and the second residual feature are fused to obtain a fused feature, and the net primary productivity of tomatoes in the greenhouse is predicted using the fused feature.
[0361] In one embodiment, the feature extraction module 220 is specifically used for:
[0362] The key features of the fused data are extracted based on the multimodal variational autoencoder to obtain the key features of the multimodal data, including:
[0363] Mapping the fused data to a distribution of latent variables based on an encoder, and constructing the distribution of latent variables into a multimodal data matrix based on a decoder, wherein the multimodal variational autoencoder is composed of an encoder and a decoder;
[0364] Based on the multimodal data matrix, key features of the multimodal data are determined.
[0365] In one embodiment, the parameter estimation module 230 is further specifically configured to:
[0366] The training process of the CO2 balance calculation model includes:
[0367] Based on Hamiltonian Monte Carlo sampling of stochastic gradient Hamiltonian Monte Carlo, the parameters of the initial CO2 balance calculation model are adaptively adjusted to obtain the CO2 balance calculation model after preliminary parameter adjustment;
[0368] Based on the noise of Langevin dynamics of stochastic gradient Langevin dynamics, the parameters of the CO2 balance calculation model after the preliminary parameter adjustment are adaptively adjusted to obtain the CO2 balance calculation model.
[0369] In one embodiment, the prediction module 240 is further specifically configured to:
[0370] The training process of the net primary productivity estimation model includes:
[0371] Based on the second-order moment of the gradient of the adaptive gradient clipping, the clipping threshold of the gradient of the initial net primary productivity estimation model is adaptively adjusted to obtain the net primary productivity estimation model after preliminary parameter adjustment;
[0372] Based on the first-order moment and the second-order moment of the gradient of the adaptive momentum estimation, the learning rate and momentum of the net primary productivity estimation model after the preliminary parameter adjustment are adaptively adjusted to obtain the net primary productivity estimation model.
[0373] Figure 3 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 3 As shown, the electronic device may include: a processor 310, a communications interface 320, a memory 330 and a communication bus 340, wherein the processor 310, the communications interface 320 and the memory 330 communicate with each other through the communication bus 340. The processor 310 may call the logic instructions in the memory 330 to execute the CO2 balance driven tomato net primary productivity prediction method, which includes:
[0374] Collecting multimodal data of the greenhouse, the multimodal data including one or more of CO2 concentration change data in the greenhouse, temperature data in the greenhouse, humidity data in the greenhouse, light intensity data in the greenhouse, wind speed data outside the greenhouse, growth status data of crops in the greenhouse, remote sensing data of the greenhouse, and control operation data of the greenhouse;
[0375] Performing data fusion on the multimodal data, and extracting key features of the fused data based on a multimodal variational autoencoder to obtain key features of the multimodal data;
[0376] Inputting the key features and the physical parameters of the greenhouse into a pre-constructed CO2 balance calculation model to obtain the cumulative CO2 consumption in the greenhouse output by the CO2 balance calculation model, wherein the CO2 balance calculation model is constructed based on a deep kernel learning neural network improved by a kernel function combined with a deep Gaussian process;
[0377] The cumulative CO2 consumption is input into a pre-constructed net primary productivity estimation model to obtain the net primary productivity of tomatoes in the greenhouse output by the net primary productivity estimation model, wherein the net primary productivity estimation model is constructed based on a densely connected network combined with an attention mechanism network.
[0378] In addition, the logic instructions in the above-mentioned memory 330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0379] On the other hand, the present invention also provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer, the computer can execute the CO2 balance-driven tomato net primary productivity prediction method provided by the above methods, the method comprising:
[0380] Collecting multimodal data of the greenhouse, the multimodal data including one or more of CO2 concentration change data in the greenhouse, temperature data in the greenhouse, humidity data in the greenhouse, light intensity data in the greenhouse, wind speed data outside the greenhouse, growth status data of crops in the greenhouse, remote sensing data of the greenhouse, and control operation data of the greenhouse;
[0381] Performing data fusion on the multimodal data, and extracting key features of the fused data based on a multimodal variational autoencoder to obtain key features of the multimodal data;
[0382] Inputting the key features and the physical parameters of the greenhouse into a pre-constructed CO2 balance calculation model to obtain the cumulative CO2 consumption in the greenhouse output by the CO2 balance calculation model, wherein the CO2 balance calculation model is constructed based on a deep kernel learning neural network improved by a kernel function combined with a deep Gaussian process;
[0383] The cumulative CO2 consumption is input into a pre-constructed net primary productivity estimation model to obtain the net primary productivity of tomatoes in the greenhouse output by the net primary productivity estimation model, wherein the net primary productivity estimation model is constructed based on a densely connected network combined with an attention mechanism network.
[0384] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to perform the above-mentioned CO2 balance-driven tomato net primary productivity prediction method, the method comprising:
[0385] Collecting multimodal data of the greenhouse, the multimodal data including one or more of CO2 concentration change data in the greenhouse, temperature data in the greenhouse, humidity data in the greenhouse, light intensity data in the greenhouse, wind speed data outside the greenhouse, growth status data of crops in the greenhouse, remote sensing data of the greenhouse, and control operation data of the greenhouse;
[0386] Performing data fusion on the multimodal data, and extracting key features of the fused data based on a multimodal variational autoencoder to obtain key features of the multimodal data;
[0387] Inputting the key features and the physical parameters of the greenhouse into a pre-constructed CO2 balance calculation model to obtain the cumulative CO2 consumption in the greenhouse output by the CO2 balance calculation model, wherein the CO2 balance calculation model is constructed based on a deep kernel learning neural network improved by a kernel function combined with a deep Gaussian process;
[0388] The cumulative CO2 consumption is input into a pre-constructed net primary productivity estimation model to obtain the net primary productivity of tomatoes in the greenhouse output by the net primary productivity estimation model, wherein the net primary productivity estimation model is constructed based on a densely connected network combined with an attention mechanism network.
[0389] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0390] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0391] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for predicting net primary productivity of tomatoes driven by CO2 balance, characterized in that: The method comprises: Collecting multimodal data of the greenhouse, the multimodal data including one or more of CO2 concentration change data in the greenhouse, temperature data in the greenhouse, humidity data in the greenhouse, light intensity data in the greenhouse, wind speed data outside the greenhouse, growth status data of crops in the greenhouse, remote sensing data of the greenhouse, and control operation data of the greenhouse; Performing data fusion on the multimodal data, and extracting key features of the fused data based on a multimodal variational autoencoder to obtain key features of the multimodal data; Inputting the key features and the physical parameters of the greenhouse into a pre-constructed CO2 balance calculation model to obtain the cumulative CO2 consumption in the greenhouse output by the CO2 balance calculation model, wherein the CO2 balance calculation model is constructed based on a deep kernel learning neural network improved by a kernel function combined with a deep Gaussian process; The cumulative CO2 consumption is input into a pre-constructed net primary productivity estimation model to obtain the net primary productivity of tomatoes in the greenhouse output by the net primary productivity estimation model, wherein the net primary productivity estimation model is constructed based on a densely connected network combined with an attention mechanism network.
2. The method for predicting tomato net primary productivity driven by CO2 balance according to claim 1, characterized in that: The step of inputting the key features and the physical parameters of the greenhouse into a pre-built CO2 balance calculation model to obtain the cumulative CO2 consumption in the greenhouse output by the CO2 balance calculation model includes: Inputting the key features and the physical parameters of the greenhouse into a deep kernel learning neural network to extract deep features, thereby obtaining deep features of the key features; Based on the kernel function, the depth feature is mapped to a high-dimensional feature space to obtain a high-dimensional depth feature; The cumulative consumption of CO2 is predicted based on the deep Gaussian process on the high-dimensional deep features to obtain the cumulative consumption of CO2 in the greenhouse.
3. The method for predicting tomato net primary productivity driven by CO2 balance according to claim 1, characterized in that: The step of inputting the accumulated CO2 consumption into a pre-constructed net primary productivity estimation model to obtain the net primary productivity of tomatoes in the greenhouse output by the net primary productivity estimation model comprises: Inputting the accumulated CO2 consumption into a densely connected network for feature extraction to obtain a first residual feature; Inputting the accumulated CO2 consumption into the attention mechanism network for feature extraction to obtain a second residual feature; The first residual feature and the second residual feature are fused to obtain a fused feature, and the net primary productivity of tomatoes in the greenhouse is predicted using the fused feature.
4. The method for predicting tomato net primary productivity driven by CO2 balance according to claim 1, characterized in that: The key features of the fused data are extracted based on the multimodal variational autoencoder to obtain the key features of the multimodal data, including: Mapping the fused data to a distribution of latent variables based on an encoder, and constructing the distribution of latent variables into a multimodal data matrix based on a decoder, wherein the multimodal variational autoencoder is composed of an encoder and a decoder; Based on the multimodal data matrix, key features of the multimodal data are determined.
5. The method for predicting tomato net primary productivity driven by CO2 balance according to claim 1, characterized in that: The training process of the CO2 balance calculation model includes: Based on Hamiltonian Monte Carlo sampling of stochastic gradient Hamiltonian Monte Carlo, the parameters of the initial CO2 balance calculation model are adaptively adjusted to obtain the CO2 balance calculation model after preliminary parameter adjustment; Based on the noise of Langevin dynamics of stochastic gradient Langevin dynamics, the parameters of the CO2 balance calculation model after the preliminary parameter adjustment are adaptively adjusted to obtain the CO2 balance calculation model.
6. The method for predicting net primary productivity of tomatoes driven by CO2 balance according to claim 1, characterized in that: The training process of the net primary productivity estimation model includes: Based on the second-order moment of the gradient of the adaptive gradient clipping, the clipping threshold of the gradient of the initial net primary productivity estimation model is adaptively adjusted to obtain the net primary productivity estimation model after preliminary parameter adjustment; Based on the first-order moment and the second-order moment of the gradient of the adaptive momentum estimation, the learning rate and momentum of the net primary productivity estimation model after the preliminary parameter adjustment are adaptively adjusted to obtain the net primary productivity estimation model.
7. A CO2 balance-driven tomato net primary productivity prediction device, characterized in that: include: A data acquisition module, used to collect multimodal data of the greenhouse, wherein the multimodal data includes one or more of CO2 concentration change data in the greenhouse, temperature data in the greenhouse, humidity data in the greenhouse, light intensity data in the greenhouse, wind speed data outside the greenhouse, growth status data of crops in the greenhouse, remote sensing data of the greenhouse, and control operation data of the greenhouse; A feature extraction module, used to perform data fusion on the multimodal data, and extract key features of the fused data based on a multimodal variational autoencoder to obtain key features of the multimodal data; A parameter estimation module, used for inputting the key features and the physical parameters of the greenhouse into a pre-constructed CO2 balance calculation model to obtain the cumulative CO2 consumption in the greenhouse output by the CO2 balance calculation model, wherein the CO2 balance calculation model is constructed based on a deep kernel learning neural network improved by a kernel function combined with a deep Gaussian process; A prediction module is used to input the cumulative CO2 consumption into a pre-constructed net primary productivity estimation model to obtain the net primary productivity of tomatoes in the greenhouse output by the net primary productivity estimation model, wherein the net primary productivity estimation model is constructed based on a densely connected network combined with an attention mechanism network.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the CO2 balance-driven tomato net primary productivity prediction method as described in any one of claims 1 to 6 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for predicting tomato net primary productivity driven by CO2 balance as claimed in any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for predicting tomato net primary productivity driven by CO2 balance as claimed in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Machine learning-based vegetation net primary production remote sensing estimation method
CN106372730A
Land surface modeling method and device
CN107341329A
Multi-stream segmented network human body action recognition method and system based on attention mechanism
CN111931602A
Task scheduling method and device, computer equipment and storage medium
CN115409426A
Machine learning approach to detecting and tracing aggregated ecosystem attributes
WO2024097621A1
Cited By
Control method and device for heating, ventilation and air conditioning system migrated across buildings
CN122062344A
