A method and system for predicting tomato quality
By collecting soil and tomato data through multiple sensors and combining high-throughput sequencing and neural network models, soil management was optimized, solving the problem of predicting the impact of soil environmental complexity on tomato quality. This enabled high-precision quality prediction and management recommendations, thereby improving tomato quality and yield.
Patent Information
- Application Number
- CN202411180749.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-08-27
AI Technical Summary
Existing technologies fail to fully consider the complexity and diversity of the soil environment in soil environmental monitoring and tomato quality prediction. They cannot accurately capture the complex nonlinear relationship between soil parameters, microbial metabolites and tomato quality, resulting in low prediction accuracy, lack of scientific feedback mechanisms and management recommendations, and thus limiting the improvement of tomato quality.
Multiple sensors are used to collect soil and tomato quality data. Soil microbial metabolites are detected through high-throughput sequencing and biosensors. Combined with Gaussian process regression and radial basis function neural network models, soil management and fertilization strategies are optimized to provide scientific management recommendations.
It enables high-precision prediction of tomato quality, identifies key microbial communities, optimizes soil management strategies, improves tomato quality and yield, and provides specific management recommendations to enhance production efficiency and product quality.
Smart Images

Figure CN118709860B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of tomato quality prediction, and in particular to a method and system for tomato quality prediction. Background Art
[0002] In recent years, with the development of agricultural science and technology, the use of sensor technology and data analysis methods to monitor and predict soil environment and crop growth has become an important means to improve agricultural production efficiency and crop quality.
[0003] At present, although there are some methods and systems that can monitor and predict soil data and crop quality, these methods have many shortcomings. First, most existing technologies only focus on a single or a few soil parameters and fail to fully consider the complexity and diversity of the soil environment. Second, the existing prediction models are often simple and cannot accurately capture the complex nonlinear relationship between soil parameters, microbial metabolites and tomato quality, resulting in low prediction accuracy. In addition, the lack of scientific feedback mechanisms and management recommendations makes it difficult for growers to effectively manage soil and optimize fertilization strategies based on prediction results, limiting the further improvement of tomato quality.
[0004] The purpose of the present invention is to provide a method and system for predicting tomato quality, to provide scientific management suggestions, to help growers optimize planting management, and to improve the overall quality and yield of tomatoes. Summary of the invention
[0005] Based on the above objectives, the present invention provides a method and system for predicting tomato quality.
[0006] A method for predicting tomato quality comprises the following steps:
[0007] S1, data collection and preprocessing: Use sensors to collect soil data, including soil moisture, temperature, pH value, conductivity, organic matter content and nutrient composition. During the tomato ripening period, measure the quality parameters of tomatoes, including sugar content, acidity, color, hardness and vitamin content, and preprocess the collected soil data and quality parameters;
[0008] S2, feature extraction: extracting relevant features from the preprocessed soil data and quality parameters, including soil characteristics and tomato quality characteristics;
[0009] S3, Quality analysis of soil microbial metabolites: Real-time detection of soil microbial metabolites, analysis of the effects of soil microbial metabolites on tomato quality, and optimization of soil management and fertilization strategies based on the analysis results, including:
[0010] S31, Detection of soil microbial metabolites: Real-time detection of microbial metabolites in soil, including volatile organic compounds (VOCs) and enzyme activity, through high-throughput sequencing technology and biosensor networks;
[0011] S32, soil microbial metabolite analysis: the effect of soil microbial metabolites on tomato quality was analyzed using the microbial metabolite quality model;
[0012] S33, Optimize soil management: Optimize soil management and fertilization strategies based on the results of microbial metabolite analysis, including adjusting organic matter input and adjusting microbial community structure;
[0013] S4, tomato quality prediction: based on the extracted relevant features and combined with the optimized soil management and fertilization strategy, the tomato quality is predicted through the tomato quality prediction model;
[0014] S5, result analysis: Analyze the predicted results of tomato quality, identify the soil factors that affect tomato quality, and feed back the analysis results to growers to provide management suggestions.
[0015] Optionally, the data collection and preprocessing in S1 includes:
[0016] S11, Soil data collection: measuring soil moisture through soil moisture sensor , soil temperature is measured by soil temperature sensor , measure the pH value of soil through pH sensor , measuring soil conductivity through conductivity sensors , measure soil organic matter content through organic matter analyzer , measure the main nutrients in the soil (such as nitrogen, phosphorus, potassium, etc.) through a nutrient analyzer;
[0017] S12, tomato quality data collection: During the tomato ripening period, the sugar content of the tomato was measured using a sugar meter. , using an acidometer to measure the acidity of tomatoes , using a colorimeter to measure the color of tomatoes , using a hardness tester to measure the hardness of tomatoes , measure the vitamin C content in tomatoes using a vitamin C content meter ;
[0018] S13, preprocessing the collected soil data and quality parameters, including data cleaning, normalization and standardization.
[0019] Optionally, the feature extraction in S2 includes:
[0020] S21, soil feature extraction: Extract soil features from the preprocessed soil data, including average soil moisture, soil temperature fluctuation, mean pH value, conductivity change, and organic matter content percentage;
[0021] S22, tomato quality feature extraction: extract tomato quality features from the pre-processed quality parameters, including the mean sugar content, mean acidity, color index, mean hardness and mean vitamin C content.
[0022] Optionally, the soil microbial metabolite detection in S31 includes:
[0023] S311, Organic Compound Collection: Use VOCs sensors to detect volatile organic compounds produced by microorganisms in the soil, including methanol and ethanol;
[0024] S312, Enzyme activity collection: Enzyme activity sensors are used to measure the activity of enzymes related to microbial metabolic activities in the soil (such as dehydrogenase, urease, etc.).
[0025] Optionally, the microbial metabolite quality model in S32 adopts a Gaussian process regression (GPR) model, and the Gaussian process regression (GPR) model includes:
[0026] S321, Multi-task Gaussian process modeling: Multi-task Gaussian process (MTGP) is introduced to simultaneously model the effects of soil data and microbial metabolites on tomato quality, and to increase the correlation modeling between tasks, expressed as:
[0027] ;
[0028] in, It's a task and tasks The covariance matrix between is the standard RBF kernel function, is the covariance matrix between tasks;
[0029] S322, adaptive kernel function selection: Based on the initial RBF kernel function, an adaptive kernel function is introduced, which is expressed as:
[0030] ;
[0031] in, is the signal variance, is the length scale, It is The weights of the local kernels, It is The center of the local core, It is The scale parameter of the local kernel, is the number of local kernel functions;
[0032] S323, multi-task joint prediction: Comprehensive soil data, microbial metabolite data and tomato quality data for prediction, expressed as:
[0033] ;
[0034] in, is the predicted tomato quality, is the covariance matrix between the new input data and the historical data, is the covariance matrix of historical data, is the noise variance, is the output of historical data, is the identity matrix;
[0035] S324, Uncertainty Estimation: The uncertainty of the prediction results is estimated through the covariance matrix of the joint prediction, expressed as:
[0036] ;
[0037] in, is the uncertainty of the prediction results, is the covariance matrix between the new input data;
[0038] S325, model training and optimization: Use the gradient descent method to optimize the model parameters (including kernel function parameters and multi-task correlation parameters), expressed as:
[0039] ;
[0040] in, is the log-likelihood function, are model parameters, is the derivative of the covariance matrix with respect to the model parameters, is the transpose operation of the matrix, is the trace operation of the matrix.
[0041] Optionally, the optimizing soil management in S33 includes:
[0042] Adjusting organic matter input: Determine the optimal level of soil organic matter content based on the analysis results of microbial metabolites, and adjust the soil organic matter content by increasing or decreasing the application amount of organic fertilizer;
[0043] Adjust the structure of microbial communities: Analyze soil microbial metabolite data (such as VOCs and enzyme activity), identify key microbial communities that affect tomato quality, introduce beneficial microorganisms or biological agents, and promote the growth of beneficial microorganisms.
[0044] Optionally, the tomato quality prediction in S4 includes:
[0045] S41, feature input: using relevant features extracted from soil data and tomato quality parameters as input data for tomato quality prediction model;
[0046] S42, variable combination: Incorporating relevant parameters of the optimized soil management and fertilization strategies into the tomato quality prediction model, including the amount of organic matter input and the amount of adjustment of the microbial community structure;
[0047] S43, Tomato quality prediction: Predict the quality of tomatoes through tomato quality prediction model.
[0048] Optionally, the tomato quality prediction model adopts a radial basis function neural network (RBFNN) model, and the radial basis function neural network (RBFNN) model includes:
[0049] Multimodal input feature construction: soil data, microbial metabolite data and optimized management strategy parameters are used as input features;
[0050] Adaptive kernel function selection: Adaptive radial basis function is used to adaptively adjust the width parameter of the kernel function in combination with data characteristics, which is expressed as:
[0051] ;
[0052] in, is the radial basis function, is the input feature vector, It is The center of the kernel function, It is The width parameter of the kernel function;
[0053] Kernel function center and width parameter optimization: The center of the kernel function is determined by the K-means algorithm, and the width parameter is adaptively adjusted through cross-validation, which is expressed as:
[0054] ;
[0055] in, It is The center of the cluster, It is Clusters, It belongs to A sample of clusters;
[0056] ;
[0057] in, It is The width parameter of the kernel function, It belongs to A sample of clusters, It is The center of the cluster;
[0058] Model training: Optimize model parameters (including connection weights) through historical soil data, microbial metabolite data, and quality parameters, expressed as:
[0059] ;
[0060] in, is the predicted tomato quality, It is The connection weights of the kernel function, It is The output of the kernel function is is the bias term, Represents the number of radial basis functions used in the radial basis function neural network (RBFNN);
[0061] Model prediction: Use the trained model to predict the tomato quality of new input data, expressed as:
[0062] ;
[0063] in, Is the new input data The predicted value of is the trained connection weight, is the output of the trained kernel function, is the center of the trained kernel function, is the trained bias term.
[0064] Optionally, the result analysis in S5 includes:
[0065] S51, prediction result analysis: statistical analysis of the prediction results of tomato quality to evaluate the accuracy and error of the prediction;
[0066] S52, soil factor identification: using feature importance scores to identify the degree of influence of soil factors on tomato quality;
[0067] S53, Feedback and Management Recommendations: Provide management recommendations to growers based on identified soil factors, including adjusting soil pH, optimizing fertilizer rates, and improving irrigation strategies.
[0068] A system for predicting tomato quality, used to implement the above-mentioned method for predicting tomato quality, comprises the following modules:
[0069] Data collection and preprocessing module: collects soil data through a variety of sensors, including soil moisture, temperature, pH value, conductivity, organic matter content and nutrient composition, measures tomato quality parameters during the tomato ripening period, including sugar content, acidity, color, hardness and vitamin content, and preprocesses the collected soil data and quality parameters;
[0070] Feature extraction module: extract relevant features from the preprocessed soil data and quality parameters, including soil characteristics and tomato quality characteristics;
[0071] Soil microbial metabolite analysis module: Real-time detection of microbial metabolites in the soil, analysis of the impact of soil microbial metabolites on tomato quality, and optimization of soil management and fertilization strategies based on the analysis results;
[0072] Tomato quality prediction module: Based on the extracted relevant features, combined with the optimized soil management and fertilization strategies, the tomato quality is predicted through the tomato quality prediction model;
[0073] Result analysis module: Analyze the predicted results of tomato quality, identify the soil factors that affect tomato quality, and feed back the analysis results to growers to provide management suggestions.
[0074] Beneficial effects of the present invention:
[0075] The present invention introduces a variety of sensors to comprehensively collect soil data and tomato quality parameters, and performs preprocessing and feature extraction on the data to ensure the quality and consistency of the data. At the same time, a radial basis function neural network model is adopted to improve the nonlinear fitting ability of the model through adaptive kernel function selection and optimization of kernel function center and width parameters, so that the tomato quality prediction is more accurate. This process makes full use of historical data to ensure the high accuracy and reliability of the prediction.
[0076] The present invention can identify key microbial communities by real-time detection of microbial metabolites in the soil and analysis of their effects on tomato quality. It can also optimize soil management and fertilization strategies based on the analysis results, including regulating organic matter input and adjusting microbial community structure. This data-driven management strategy can significantly improve the soil environment, enhance tomato growth conditions, and ultimately improve tomato quality and yield.
[0077] The present invention, through the analysis of tomato quality prediction results and the use of feature importance score analysis, accurately identifies the key soil factors that affect tomato quality, and provides growers with specific management suggestions, such as adjusting soil pH, optimizing fertilizer application and improving irrigation strategies. By generating detailed analysis reports and providing regular monitoring and adjustment suggestions, it helps growers to continuously optimize planting management strategies, thereby improving production efficiency and product quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0078] 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 introduced below. Obviously, the drawings in the following description are only for the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0079] Figure 1 A schematic diagram of a prediction method flow chart of an embodiment of the present invention;
[0080] Figure 2 Schematic diagram of system function modules according to an embodiment of the present invention. DETAILED DESCRIPTION
[0081] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. At the same time, it is explained here that in order to make the embodiments more detailed, the following embodiments are the best and preferred embodiments, and those skilled in the art may also adopt other alternatives to implement some known technologies; and the accompanying drawings are only for more specific description of the embodiments, and are not intended to specifically limit the present invention.
[0082] It should be noted that the references to "one embodiment", "embodiment", "exemplary embodiments", "some embodiments" and the like in the specification indicate that the embodiments described may include specific features, structures or characteristics, but not every embodiment may include the specific features, structures or characteristics. In addition, when a specific feature, structure or characteristic is described in conjunction with an embodiment, it should be within the knowledge of a person skilled in the art to implement such feature, structure or characteristic in conjunction with other embodiments (whether or not explicitly described).
[0083] In general, a term can be understood, at least in part, from its use in context. For example, depending, at least in part, on the context, the term "one or more" as used herein can be used to describe any feature, structure, or characteristic in the singular sense, or can be used to describe a combination of features, structures, or characteristics in the plural sense. Additionally, the term "based on" can be understood as not necessarily intended to convey an exclusive set of factors, but can instead, depending, at least in part, on the context, allow for the presence of other factors that are not necessarily explicitly described.
[0084] like Figure 1 As shown, a method for predicting tomato quality comprises the following steps:
[0085] S1, data collection and preprocessing: Use sensors to collect soil data, including soil moisture, temperature, pH value, conductivity, organic matter content and nutrient composition. During the tomato ripening period, measure the quality parameters of tomatoes, including sugar content, acidity, color, hardness and vitamin content, and preprocess the collected soil data and quality parameters;
[0086] S2, feature extraction: extracting relevant features from the preprocessed soil data and quality parameters, including soil characteristics and tomato quality characteristics;
[0087] S3, Quality analysis of soil microbial metabolites: Real-time detection of microbial metabolites in the soil, analysis of the impact of soil microbial metabolites on tomato quality, and optimization of soil management and fertilization strategies based on the analysis results to improve tomato quality and yield, including:
[0088] S31, Detection of soil microbial metabolites: Real-time detection of microbial metabolites in soil, including volatile organic compounds (VOCs) and enzyme activity, through high-throughput sequencing technology and biosensor networks;
[0089] S32, soil microbial metabolite analysis: the effect of soil microbial metabolites on tomato quality was analyzed using the microbial metabolite quality model;
[0090] S33, Optimize soil management: Optimize soil management and fertilization strategies based on the results of microbial metabolite analysis, including adjusting organic matter input and adjusting microbial community structure;
[0091] S4, tomato quality prediction: based on the extracted relevant features and combined with the optimized soil management and fertilization strategy, the tomato quality is predicted through the tomato quality prediction model;
[0092] S5, result analysis: Analyze the predicted results of tomato quality, identify the soil factors that affect tomato quality, and feed back the analysis results to growers to provide management suggestions;
[0093] Through the above steps, the impact of soil microorganisms on tomato quality can be accurately evaluated, and soil management and fertilization strategies can be optimized based on the analysis results, so as to achieve efficient prediction and management of tomato quality, provide scientific management suggestions for growers, and thus improve the overall quality and yield of tomatoes.
[0094] Data collection and preprocessing in S1 include:
[0095] S11, Soil data collection: measuring soil moisture through soil moisture sensor Its unit is volumetric water content , soil temperature is measured by soil temperature sensor , the unit is Celsius , measure the pH value of soil through pH sensor , reflects the pH of the soil, and measures the soil conductivity through a conductivity sensor , whose unit is milliSiemens per centimeter Indicates soil salt content, and measures soil organic matter content through an organic matter analyzer , the unit is percentage (%), the main nutrients in the soil (such as nitrogen, phosphorus, potassium, etc.) are measured by a nutrient analyzer, and the concentration unit is milligrams per kilogram ;
[0096] S12, tomato quality data collection: During the tomato ripening period, the sugar content of the tomato was measured using a sugar meter. The unit is Brix, and the acidity of tomatoes is measured using an acidometer , which is measured in pH units, using a colorimeter to measure the color of tomatoes , expressed in CIELAB color space, using a hardness tester to measure the firmness of tomatoes , whose unit is Newton (N), and the vitamin C content in tomatoes is measured by a vitamin C content meter , the unit is milligrams per 100 grams ;
[0097] S13, preprocessing the collected soil data and quality parameters, including data cleaning, normalization and standardization;
[0098] Data cleaning removes noise and outliers from collected data to ensure data quality;
[0099] Normalization process normalizes all data to the same scale to eliminate the influence between different dimensions;
[0100] Standardization is the process of standardizing the data to eliminate the bias and scale effects of the data;
[0101] Through the above content, the impact of noise and outliers can be effectively reduced, the accuracy and reliability of data analysis can be improved, and a solid data foundation can be provided for subsequent feature extraction and quality prediction, thereby achieving more accurate tomato quality prediction and optimizing management strategies, and improving production efficiency and product quality.
[0102] Feature extraction in S2 includes:
[0103] S21, soil feature extraction: Extract soil features from the preprocessed soil data, including average soil moisture, soil temperature fluctuation, mean pH value, conductivity change, and organic matter content percentage;
[0104] Average soil moisture It is calculated by averaging the soil moisture data and is expressed as:
[0105] ;
[0106] in, For the The soil moisture data collected is the sampling times;
[0107] Soil temperature fluctuations It is calculated by the standard deviation of soil temperature data and is expressed as:
[0108] ;
[0109] in, For the The soil temperature data collected is the mean of soil temperature data;
[0110] Mean pH It is calculated by averaging the soil pH data and is expressed as:
[0111] ;
[0112] in, For the Soil pH data collected;
[0113] Conductivity changes It is calculated by the difference between the maximum and minimum values of the soil conductivity data and is expressed as:
[0114] ;
[0115] in, and are the maximum and minimum values of soil conductivity data respectively;
[0116] Organic matter content percentage It is calculated by averaging the soil organic matter content data and is expressed as:
[0117] ;
[0118] in, For the The soil organic matter content data collected;
[0119] S22, tomato quality feature extraction: extracting tomato quality features from the pre-processed quality parameters, including the mean sugar content, mean acidity, color index, mean hardness, and mean vitamin C content;
[0120] Average sugar content It is calculated by averaging the tomato sugar content data and is expressed as:
[0121] ;
[0122] in, It is The sugar content of tomatoes measured.
[0123] Acidity average It is calculated by averaging the tomato acidity data and is expressed as:
[0124] ;
[0125] in, For the The acidity data of tomatoes measured;
[0126] Color Index It is obtained by calculating the CIELAB color space parameters of tomato color data, expressed as: ;
[0127] in, and is the CIELAB color space parameter of tomato color data, and is the reference color parameter;
[0128] Hardness average It is calculated by averaging the tomato hardness data and is expressed as:
[0129] ;
[0130] in, For the The tomato firmness data measured at this time;
[0131] Vitamin C content average The data of vitamin C content in tomatoes are averaged and expressed as:
[0132] ;
[0133] in, For the The vitamin C content of tomatoes measured in this study;
[0134] Through the above content, the accuracy and consistency of the data are ensured, providing a solid data foundation for subsequent tomato quality predictions, thereby improving the accuracy and reliability of the prediction model, optimizing soil management and fertilization strategies, and ultimately improving the overall quality and yield of tomatoes.
[0135] The soil microbial metabolite detection in S31 includes:
[0136] S311, Organic Compound Collection: Use VOCs sensors to detect volatile organic compounds produced by microorganisms in the soil, including methanol and ethanol;
[0137] S312, Enzyme activity collection: Enzyme activity sensors are used to measure the activity of enzymes related to microbial metabolic activities in the soil (such as dehydrogenase, urease, etc.);
[0138] Through the above content, the real-time and accuracy of data collection are improved, which provides a scientific basis for analyzing the impact of microbial metabolites on tomato quality, helps to optimize soil management and fertilization strategies, and ultimately improves tomato quality and yield.
[0139] The microbial metabolite quality model in S32 adopts the Gaussian process regression (GPR) model, which includes:
[0140] S321, Multi-task Gaussian process modeling: Multi-task Gaussian process (MTGP) is introduced to simultaneously model the effects of soil data and microbial metabolites on tomato quality, and to increase the correlation modeling between tasks, expressed as:
[0141] ;
[0142] in, It's a task and tasks The covariance matrix between is the standard RBF kernel function, is the covariance matrix between tasks, indicating the correlation between tasks;
[0143] S322, adaptive kernel function selection: Based on the initial RBF kernel function, an adaptive kernel function is introduced to improve the nonlinear fitting ability of the model by locally weighting the data, which is expressed as:
[0144] ;
[0145] in, is the signal variance, is the length scale, It is The weights of the local kernels, It is The center of the local core, It is The scale parameter of the local kernel, is the number of local kernel functions;
[0146] S323, multi-task joint prediction: Comprehensive soil data, microbial metabolite data and tomato quality data for prediction, expressed as:
[0147] ;
[0148] in, is the predicted tomato quality, is the covariance matrix between the new input data and the historical data, is the covariance matrix of historical data, is the noise variance, is the output of historical data, is the identity matrix;
[0149] S324, Uncertainty Estimation: The uncertainty of the prediction results is estimated through the covariance matrix of the joint prediction, expressed as:
[0150] ;
[0151] in, is the uncertainty of the prediction results, is the covariance matrix between the new input data;
[0152] S325, model training and optimization: Use the gradient descent method to optimize the model parameters (including kernel function parameters and multi-task correlation parameters) to ensure the prediction performance of the model, expressed as:
[0153] ;
[0154] in, is the log-likelihood function, are model parameters, is the derivative of the covariance matrix with respect to the model parameters, is the transpose operation of the matrix, is the trace operation of the matrix, i.e. the sum of the diagonal elements of the matrix;
[0155] Through the above content, multi-task modeling is introduced. The model can process soil data and microbial metabolite data at the same time, enhancing the correlation modeling ability between different data sources. The adaptive kernel function selection improves the nonlinear fitting ability of the model through local weighting, enabling it to more accurately capture the complex effects of soil and microbial metabolites on tomato quality. Multi-task joint prediction utilizes the covariance matrix between tasks to achieve more accurate quality prediction. At the same time, uncertainty estimation provides confidence in the prediction results, helps to identify high-risk areas, and provides a scientific basis for optimizing soil management and fertilization strategies.
[0156] Optimized soil management in S33 includes:
[0157] Adjusting organic matter input: Determine the optimal level of soil organic matter content based on the analysis results of microbial metabolites, and adjust the soil organic matter content by increasing or decreasing the application amount of organic fertilizer;
[0158] Adjust the structure of microbial communities: Analyze soil microbial metabolites (such as VOCs and enzyme activity) data, identify key microbial communities that affect tomato quality, introduce beneficial microorganisms or biological agents, promote the growth of beneficial microorganisms, and inhibit the activities of harmful microorganisms;
[0159] Through the above contents, the soil environment can be improved, the growth conditions of tomatoes can be improved, and thus the quality and yield of tomatoes can be improved.
[0160] Tomato quality prediction in S4 includes:
[0161] S41, feature input: using relevant features extracted from soil data and tomato quality parameters as input data for tomato quality prediction model;
[0162] S42, variable combination: Incorporating relevant parameters of the optimized soil management and fertilization strategies into the tomato quality prediction model, including the amount of organic matter input and the amount of adjustment of the microbial community structure;
[0163] S43, Tomato quality prediction: predicting the quality of tomatoes through tomato quality prediction model;
[0164] Through the above content, accurate prediction of tomato quality can be achieved. Relevant features extracted from soil data and tomato quality parameters are used as input data to ensure that the model has a comprehensive data basis. Relevant parameters of optimized soil management and fertilization strategies (including organic matter input and microbial community structure adjustment) are incorporated into the model, which improves the accuracy and practicality of the prediction.
[0165] The tomato quality prediction model uses the radial basis function neural network (RBFNN) model, which includes:
[0166] Multimodal input feature construction: soil data, microbial metabolite data and optimized management strategy parameters are used as input features;
[0167] Adaptive kernel function selection: Adaptive radial basis function is used to adaptively adjust the width parameter of the kernel function in combination with data characteristics, which is expressed as:
[0168] ;
[0169] in, is the radial basis function, is the input feature vector, It is The center of the kernel function, It is The width parameter of the kernel function is adjusted adaptively;
[0170] Kernel function center and width parameter optimization: The center of the kernel function is determined by the K-means algorithm, and the width parameter is adaptively adjusted through cross-validation, which is expressed as:
[0171] ;
[0172] in, It is The center of the cluster, It is Clusters, It belongs to A sample of clusters;
[0173] ;
[0174] in, It is The width parameter of the kernel function, It belongs to A sample of clusters, It is The center of the cluster;
[0175] Model training: Optimize model parameters (including connection weights) through historical soil data, microbial metabolite data, and quality parameters to minimize prediction errors, expressed as:
[0176] ;
[0177] in, is the predicted tomato quality, It is The connection weights of the kernel function, It is The output of the kernel function is is the bias term, Represents the number of radial basis functions used in the radial basis function neural network (RBFNN);
[0178] Model prediction: Use the trained model to predict the tomato quality of new input data, expressed as:
[0179] ;
[0180] in, Is the new input data The predicted value of is the trained connection weight, is the output of the trained kernel function, is the center of the trained kernel function, is the trained bias term;
[0181] Through the above content, the model has higher accuracy, reliability and practicality in tomato quality prediction, providing strong support for optimizing planting management strategies and improving tomato quality.
[0182] The results analysis in S5 include:
[0183] S51, prediction result analysis: statistical analysis is performed on the prediction results of tomato quality to evaluate the accuracy and error of the prediction, which is expressed as:
[0184] ;
[0185] in, is the sample size, is the actual tomato quality value, is the predicted tomato quality value;
[0186] S52, soil factor identification: Using feature importance scores, identify the degree of influence of soil factors on tomato quality, expressed as:
[0187] ;
[0188] in, It is The connection weights of the radial basis functions, It is The output of the radial basis function, is the number of radial basis functions;
[0189] S53, Feedback and Management Recommendations: Provide management recommendations to growers based on identified soil factors, including adjusting soil pH, optimizing fertilizer application rates, and improving irrigation strategies;
[0190] Through the above steps, the prediction results of tomato quality can be comprehensively analyzed, the soil factors affecting quality can be accurately identified, and scientific management suggestions can be provided to growers to optimize planting management strategies.
[0191] like Figure 2 As shown, a system for predicting tomato quality, used to implement the above-mentioned method for predicting tomato quality, includes the following modules:
[0192] Data collection and preprocessing module: collects soil data through a variety of sensors, including soil moisture, temperature, pH value, conductivity, organic matter content and nutrient composition, measures tomato quality parameters during the tomato ripening period, including sugar content, acidity, color, hardness and vitamin content, and preprocesses the collected soil data and quality parameters;
[0193] Feature extraction module: extract relevant features from the preprocessed soil data and quality parameters, including soil characteristics and tomato quality characteristics;
[0194] Soil microbial metabolite analysis module: Real-time detection of microbial metabolites in the soil, analysis of the impact of soil microbial metabolites on tomato quality, and optimization of soil management and fertilization strategies based on the analysis results;
[0195] Tomato quality prediction module: Based on the extracted relevant features, combined with the optimized soil management and fertilization strategies, the tomato quality is predicted through the tomato quality prediction model;
[0196] Result analysis module: Analyze the predicted results of tomato quality, identify the soil factors that affect tomato quality, and feed back the analysis results to growers to provide management suggestions.
[0197] The present invention covers any substitution, modification, equivalent method and scheme made on the essence and scope of the present invention. In order to make the public have a thorough understanding of the present invention, specific details are described in detail in the following preferred embodiments of the present invention, but those skilled in the art can fully understand the present invention without the description of these details. In addition, in order to avoid unnecessary confusion about the essence of the present invention, well-known methods, processes, procedures, components and circuits are not described in detail.
[0198] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for predicting tomato quality, characterized in that: The following steps are involved: S1, data collection and preprocessing: Use sensors to collect soil data, including soil moisture, temperature, pH value, conductivity, organic matter content and nutrient composition. During the tomato ripening period, measure the quality parameters of tomatoes, including sugar content, acidity, color, hardness and vitamin content, and preprocess the collected soil data and quality parameters; S2, feature extraction: extracting relevant features from the preprocessed soil data and quality parameters, including soil characteristics and tomato quality characteristics; S3, Quality analysis of soil microbial metabolites: Real-time detection of soil microbial metabolites, analysis of the effects of soil microbial metabolites on tomato quality, and optimization of soil management and fertilization strategies based on the analysis results, including: S31, Detection of soil microbial metabolites: Real-time detection of microbial metabolites in soil, including volatile organic compounds and enzyme activities, through high-throughput sequencing technology and biosensor networks; S32, soil microbial metabolite analysis: the effect of soil microbial metabolites on tomato quality is analyzed by a microbial metabolite quality model, wherein the microbial metabolite quality model adopts a Gaussian process regression model, and the Gaussian process regression model includes: S321, Multi-task Gaussian process modeling: Multi-task Gaussian process is introduced to simultaneously model the effects of soil data and microbial metabolites on tomato quality, and to increase the correlation modeling between tasks, expressed as: Among them, K ij is the covariance matrix between task i and task j, k(x i ,x j ) is the standard RBF kernel function, B is the covariance matrix between tasks; S322, adaptive kernel function selection: Based on the initial RBF kernel function, an adaptive kernel function is introduced, which is expressed as: in, is the signal variance, l is the length scale, w m is the weight of the mth local kernel, v m is the center of the mth local kernel, is the scale parameter of the mth local kernel, M is the number of local kernel functions; S323, multi-task joint prediction: Comprehensive soil data, microbial metabolite data and tomato quality data for prediction, expressed as: Among them, f * is the predicted tomato quality, K * is the covariance matrix between the new input data and the historical data, K is the covariance matrix of the historical data, is the noise variance, Y is the output of historical data, and I is the identity matrix; S324, Uncertainty Estimation: The uncertainty of the prediction results is estimated through the covariance matrix of the joint prediction, expressed as: Among them, Var(f * ) is the uncertainty of the prediction result, K ** is the covariance matrix between the new input data; S325, model training and optimization: Use gradient descent method to optimize model parameters, expressed as: in, is the log-likelihood function, θ is the model parameter, is the derivative of the covariance matrix with respect to the model parameters, T is the transpose operation of the matrix, and Tr is the trace operation of the matrix; S33, Optimize soil management: Optimize soil management and fertilization strategies based on the results of microbial metabolite analysis, including adjusting organic matter input and adjusting microbial community structure; S4, tomato quality prediction: Based on the extracted relevant features and combined with the optimized soil management and fertilization strategy, the tomato quality is predicted through the tomato quality prediction model. The tomato quality prediction includes: S41, feature input: using relevant features extracted from soil data and tomato quality parameters as input data for tomato quality prediction model; S42, variable combination: Incorporating relevant parameters of the optimized soil management and fertilization strategies into the tomato quality prediction model, including the amount of organic matter input and the amount of adjustment of the microbial community structure; S43, Tomato quality prediction: predicting the quality of tomatoes through tomato quality prediction model; The tomato quality prediction model adopts a radial basis function neural network model, and the radial basis function neural network model includes: Multimodal input feature construction: soil data, microbial metabolite data and optimized management strategy parameters are used as input features; Adaptive kernel function selection: Adaptive radial basis function is used to adaptively adjust the width parameter of the kernel function in combination with data characteristics, which is expressed as: in, is the radial basis function, x is the input eigenvector, c i is the center of the ith kernel function, σ i is the width parameter of the i-th kernel function; Kernel function center and width parameter optimization: The center of the kernel function is determined by the K-means algorithm, and the width parameter is adaptively adjusted through cross-validation, which is expressed as: Among them, c i is the center of the ith cluster, C i is the i-th cluster, x j is the sample belonging to the i-th cluster; Among them, σ i is the width parameter of the i-th kernel function, x j is the sample belonging to the i-th cluster, c i is the center of the ith cluster; Model training: Optimize model parameters through historical soil data, microbial metabolite data and quality parameters, expressed as: Where y(x) is the predicted tomato quality, w i is the connection weight of the ith kernel function, is the output of the i-th kernel function, b is the bias term, and N represents the number of radial basis functions used in the radial basis function neural network; Model prediction: Use the trained model to predict the tomato quality of new input data, expressed as: in, is the new input data x * The predicted value of is the trained connection weight, is the output of the trained kernel function, is the center of the trained kernel function, is the trained bias term; S5, result analysis: Analyze the predicted results of tomato quality, identify the soil factors that affect tomato quality, and feed back the analysis results to growers to provide management suggestions.
2. A method for predicting tomato quality according to claim 1, characterized in that: The data collection and preprocessing in S1 include: S11, soil data collection: soil moisture is measured by a soil moisture sensor, soil temperature is measured by a soil temperature sensor, soil pH is measured by a pH sensor, soil conductivity is measured by a conductivity sensor, soil organic matter content is measured by an organic matter analyzer, and main nutrient components in the soil are measured by a nutrient analyzer; S12, tomato quality data collection: During the tomato ripening period, the sugar content of the tomato was measured using a saccharimeter, the acidity of the tomato was measured using an acidometer, the color of the tomato was measured using a colorimeter, the hardness of the tomato was measured using a hardness meter, and the vitamin C content in the tomato was measured using a vitamin C content meter; S13, preprocessing the collected soil data and quality parameters, including data cleaning, normalization and standardization.
3. A method for predicting tomato quality according to claim 2, characterized in that: The feature extraction in S2 includes: S21, soil feature extraction: Extract soil features from the preprocessed soil data, including average soil moisture, soil temperature fluctuation, mean pH value, conductivity change, and organic matter content percentage; S22, tomato quality feature extraction: extract tomato quality features from the pre-processed quality parameters, including the mean sugar content, mean acidity, color index, mean hardness and mean vitamin C content.
4. The method for predicting tomato quality according to claim 1, characterized in that: The soil microbial metabolite detection in S31 includes: S311, Organic Compound Collection: Use VOCs sensors to detect volatile organic compounds produced by microorganisms in the soil, including methanol and ethanol; S312, Enzyme activity collection: Use enzyme activity sensors to measure the activity of enzymes related to microbial metabolic activities in the soil.
5. The method for predicting tomato quality according to claim 1, characterized in that: The optimized soil management in S33 includes: Adjusting organic matter input: Determine the optimal level of soil organic matter content based on the analysis results of microbial metabolites, and adjust the soil organic matter content by increasing or decreasing the application amount of organic fertilizer; Adjust the structure of microbial communities: analyze soil microbial metabolite data, identify key microbial communities that affect tomato quality, introduce beneficial microorganisms or biological agents, and promote the growth of beneficial microorganisms.
6. A method for predicting tomato quality according to claim 1, characterized in that: The result analysis in S5 includes: S51, prediction result analysis: statistical analysis of the prediction results of tomato quality to evaluate the accuracy and error of the prediction; S52, soil factor identification: using feature importance scores to identify the degree of influence of soil factors on tomato quality; S53, Feedback and Management Recommendations: Provide management recommendations to growers based on identified soil factors, including adjusting soil pH, optimizing fertilizer rates, and improving irrigation strategies.
7. A system for predicting tomato quality, used to implement a method for predicting tomato quality as claimed in any one of claims 1 to 6, characterized in that: Includes the following modules: Data collection and preprocessing module: collects soil data through a variety of sensors, including soil moisture, temperature, pH value, conductivity, organic matter content and nutrient composition, measures tomato quality parameters during the tomato ripening period, including sugar content, acidity, color, hardness and vitamin content, and preprocesses the collected soil data and quality parameters; Feature extraction module: extract relevant features from the preprocessed soil data and quality parameters, including soil characteristics and tomato quality characteristics; Soil microbial metabolite analysis module: Real-time detection of microbial metabolites in the soil, analysis of the impact of soil microbial metabolites on tomato quality, and optimization of soil management and fertilization strategies based on the analysis results; Tomato quality prediction module: Based on the extracted relevant features, combined with the optimized soil management and fertilization strategies, the tomato quality is predicted through the tomato quality prediction model; Result analysis module: Analyze the predicted results of tomato quality, identify the soil factors that affect tomato quality, and feed back the analysis results to growers to provide management suggestions.
Citation Information
Patent Citations
Tomato greenhouse environmental parameter intelligent monitoring device based on ANFIS neural network
CN110119086A
Soil nutrient and fruit quality relation prediction method based on neural network
CN113159446A
Method and system for determining fertilization formula of farm crops based on artificial intelligence
CN114757326A
Construction and inspection method of medicinal plant quality prediction model based on mixed effect model and rhizosphere microorganisms
CN116934147A
Method and system for predicting fruit quality
WO2022013865A1
