Complex soil moisture content data correction and prediction system based on data driving

By adopting a data-driven method in the soil moisture monitoring system, combined with machine learning and deep learning technology, the problems of data quality and prediction accuracy in soil moisture monitoring are solved, and accurate monitoring and long-term prediction of multi-layer soil moisture are achieved to meet the needs of meet the needs of modern agriculture.

CN118735070APending Publication Date: 2024-10-01KUNMING UNIV OF SCI & TECH
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410873179.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing technologies have data quality problems in soil moisture monitoring, especially in complex farmland environments. Traditional methods are difficult to achieve accurate monitoring and long-term prediction of multi-layer soil moisture content, and the data transmission of automatic monitoring equipment is unstable and the quality of equipment varies. This results in missing and abnormal data, making it difficult to meet the needs of modern precision agriculture.

Method used

A data-driven complex soil moisture data correction and prediction system is adopted, including a moisture sensor module, a meteorological sensor module, a data acquisition unit, a data correction and completion unit and a multi-layer moisture prediction model. Through machine learning and deep learning technology, it combines Res-bi-LSTM architecture and residual network perform data correction, completion and multi-layer moisture prediction, and dynamically update model parameters through incremental models.

Benefits of technology

It achieves comprehensive analysis and long-term prediction of multi-layer soil moisture data, improves data quality and model adaptability and accuracy, can provide reliable soil moisture monitoring and prediction results in complex environments, and supports the formulation of agricultural production plans.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure BDA0004922213510000091
    Figure BDA0004922213510000091
  • Figure BDA0004922213510000092
    Figure BDA0004922213510000092
  • Figure BDA0004922213510000101
    Figure BDA0004922213510000101
Patent Text Reader

Abstract

The invention relates to the field of agricultural informatization, and discloses a complex soil moisture content data correction and prediction system based on data driving, and the system comprises a soil moisture content sensor module which is used for collecting soil humidity data and temperature data of different depths hourly; the meteorological sensor module is used for collecting meteorological data in real time; the data acquisition unit is used for receiving data and uploading the data to the cloud server; the data correcting and complementing unit is used for correcting and complementing the acquired data; and the multi-layer soil moisture content prediction model is used for predicting the multi-layer change of the soil moisture content based on the Res-bi-LSTM architecture. According to the method, soil humidity data at different depths can be comprehensively analyzed in the spatial dimension, and the hierarchical structure of soil and the moisture migration rule between layers are fully considered. Through a multi-layer comprehensive analysis mode, mutual influences among soil layers are associated, so that the relevance between soil humidity of different layers and external environment factors is disclosed, and a scientific basis is provided for formulating agricultural production and irrigation strategies.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of agricultural information technology, and in particular to a complex soil moisture data correction and prediction system based on data-driven. Background Art

[0002] Soil moisture refers to the level of soil moisture in farmland. It is a key factor affecting agricultural drought monitoring, the application of water-saving irrigation technology and the prediction of crop yields. Appropriate soil moisture is conducive to the healthy growth of crops. Traditional soil moisture monitoring methods are mainly manual sampling and drying methods. The limitations of this method are large workload, small amount of data and poor timeliness.

[0003] With the advancement of electronic technology, automatic soil moisture monitoring equipment installed in the field has become popular. They can automatically collect soil moisture content at different depths in real time, greatly improving the efficiency of soil moisture monitoring. This method does not require destructive sampling and can achieve high-density data collection. However, due to the complexity of the farmland environment, such as interference from extreme weather and electromagnetic radiation, data transmission may be unstable, resulting in missing and abnormal data. In addition, since the production and application of soil moisture monitoring equipment is still immature, the quality of equipment and sensors varies, and equipment failure and damage may also cause data quality problems.

[0004] Although manual soil collection can correct data quality through manual screening, the workload of manual screening is too huge in the face of the massive amount of data collected by automatic monitoring equipment. For example, the data collected every hour exceeds 80,000 pieces per day nationwide. Therefore, the use of computer automatic recognition technology to control data quality has become a new solution.

[0005] Soil moisture data is affected by many factors such as rainfall, wind speed, soil texture, etc., showing very complex nonlinear variation characteristics. Simple threshold condition setting cannot effectively manage the quality of soil moisture data. In order to ensure the continuity, integrity and reliability of soil moisture monitoring data, it is urgent to establish a set of soil moisture monitoring data quality judgment and completion and correction specification systems and standards with deep data analysis capabilities.

[0006] Currently, the existing technology is mainly aimed at the shallow soil moisture conditions of a single regional plot, and is not suitable for the multi-layer soil moisture content of agricultural soil moisture monitoring stations in the Huanghuaihai region, and cannot achieve accurate prediction of long-term soil moisture conditions.

[0007] The current patented technology usually uses two simplified assumptions when processing soil moisture data: first, it only considers the changes in soil moisture in a single layer in space, ignoring the stratification characteristics of the soil and the water exchange between layers; second, it can only predict short-term soil moisture in time, lacking dynamic simulation of long-term soil moisture. This simplified method often produces large prediction deviations and poor adaptability when dealing with complex soil environments, making it difficult to meet the high standards of modern precision agriculture. Summary of the invention

[0008] In view of the deficiencies in the prior art, the present invention provides a data-driven complex soil moisture data correction and prediction system, which can perform a comprehensive analysis of multi-layer soil moisture conditions in space, taking into account the hierarchical structure of the soil and the water migration between layers, and can perform long-term soil moisture prediction in time, and can capture the long-term changes in soil moisture. At the same time, it can use real-time monitored soil moisture data to dynamically update the model parameters, thereby improving the accuracy and adaptability of the model.

[0009] To achieve the above objectives, the present invention is implemented through the following technical solutions: a complex soil moisture data correction and prediction system based on data drive, comprising:

[0010] The soil moisture sensor module includes multiple underground resistive humidity sensors and temperature sensors, which collect soil moisture and temperature data at different depths hour by hour;

[0011] Meteorological sensor modules, including wind speed and direction sensors, air pressure and rainfall monitors, air temperature and humidity sensors, and light intensity sensors, are used to collect meteorological data in real time;

[0012] The data acquisition unit receives data from the soil moisture sensor module and the meteorological sensor module and uploads it to the cloud server;

[0013] The data correction and completion unit uses machine learning models to correct and complete the collected data, and merges the collected hourly data into daily data;

[0014] The multi-layer soil moisture prediction model predicts the multi-layer changes of soil moisture based on the Res-bi-LSTM architecture, outputs daily multi-layer soil moisture prediction results, and dynamically updates them through an incremental model.

[0015] Preferably, in the soil moisture sensor module, resistive humidity sensors are arranged at different depths of 10 cm, 20 cm, 30 cm, 40 cm, 50 cm, 60 cm, 70 cm, 80 cm, 90 cm and 100 cm for monitoring soil moisture layer by layer.

[0016] Preferably, the meteorological sensor modules are connected in parallel to ensure the temporal consistency of meteorological data such as wind speed, wind direction, air pressure, rainfall, temperature, humidity and light intensity to avoid mutual interference.

[0017] Preferably, the data correction and completion unit uses a cubic spline interpolation algorithm and a machine learning model to correct and complete missing or abnormal data to ensure the integrity and accuracy of the data.

[0018] Preferably, the multi-layer soil moisture prediction model includes:

[0019] Constructed by LTSM long short-term memory neural network t ′=f LTSM (x t-i 1 , x t-i 2 ,......,x t-i n ) prediction function;

[0020] The prediction function designs a prediction network by perceiving the forget gate structure, and the prediction result of the prediction network is y t ' is the soil moisture factor after the future i, and the soil moisture factor level represents the current soil moisture on day t predicted by LTSM;

[0021] Construct y based on Resnet backbone residual network t =f resnet (x t1 , x t2 ,......,x tn ,y t ′) A mapping function is used to predict the future multi-layer soil moisture conditions under the corresponding meteorological environment based on the historical soil moisture conditions through a residual neural network.

[0022] Preferably, the multi-layer soil moisture prediction model is dynamically updated through an incremental model. It is based on the single-day multi-layer soil moisture prediction model from N+1 to N+T, and constructs a short-term soil moisture prediction model that can predict the next T days. A comprehensive evaluation function is constructed between the actual soil moisture and the predicted value. If the model prediction score exceeds an acceptable range, the training set data is automatically updated to achieve dynamic model updating.

[0023] Preferably, the system further comprises: a visualization and reporting unit, which displays the prediction results as graphs or tables and supports the generation of customized reports.

[0024] The present invention also provides a data-driven complex soil moisture data correction and prediction method, comprising the following steps:

[0025] S1. Real-time collection of soil moisture and meteorological data through soil moisture sensor module and meteorological sensor module;

[0026] S2, using the data acquisition unit to transmit the data to the cloud server;

[0027] S3. In the data correction and completion unit, the collected data is corrected for completeness and rationality, and the collected hourly data is merged into daily data;

[0028] S4. Use the Res-bi-LSTM multi-layer soil moisture prediction model to train and predict the corrected data;

[0029] S5. Display the prediction results through the visualization and reporting unit and generate customized reports.

[0030] Preferably, in the step S3, merging the multiple data points collected hourly into daily data comprises the following steps:

[0031] Receive hourly collected soil moisture data and meteorological data;

[0032] Aggregate the data points within every 24 hours based on the date and timestamp to calculate the daily average, maximum, and minimum statistical indicators;

[0033] The aggregated daily data is stored in the cloud database for subsequent data correction and analysis.

[0034] Preferably, the step S3 further includes detecting whether the merged daily data is continuous and within the valid range recorded by the sensor, including the following steps:

[0035] Verify whether there are date gaps in the time series of daily data to ensure data continuity;

[0036] Check whether each data point is within the valid range recorded by the sensor, and exclude data points out of range to ensure the validity of the data.

[0037] The present invention provides a data-driven complex soil moisture data correction and prediction system, which has the following beneficial effects:

[0038] 1. The present invention can comprehensively analyze soil moisture data at different depths in the spatial dimension, taking into full account the hierarchical structure of the soil and the law of water migration between the layers. Through multi-layer comprehensive analysis, the mutual influence between the soil layers is correlated, thereby revealing the correlation between soil moisture at different levels and external environmental factors, providing a scientific basis for formulating agricultural production and irrigation strategies.

[0039] 2. Based on the bidirectional long short-term memory network (Bi-LSTM), the present invention can capture the long-term trend of soil moisture by analyzing the daily data changes and make accurate long-term predictions. The daily multi-layer prediction results provide a reliable prediction model for the Huanghuaihai region and other agricultural areas, effectively guiding the formulation of agricultural production plans.

[0040] 3. The present invention can dynamically update the model parameters using the real-time monitored soil moisture data, thereby continuously improving the accuracy and adaptability of the model. Incremental learning technology ensures that the model can adapt to the changes in new data in a timely manner and maintain the timeliness and accuracy of the prediction results.

[0041] 4. The present invention uses machine learning and cubic spline interpolation algorithms to correct and complete the data to ensure the integrity and rationality of the data. The quality control module can not only identify sensor failures, but also effectively detect and correct data anomalies, thereby improving the quality and reliability of the model input data.

[0042] 5. Through the design of multi-layer structure, the present invention can extract the characteristics of soil moisture layer by layer, and learn and abstract more complex and advanced data patterns layer by layer. The combination of residual network (ResNet) and Bi-LSTM improves the ability of deep feature transfer and time series analysis, making the model more robust in complex environments. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 It is a schematic diagram of the system structure of the present invention;

[0044] Figure 2 It is a schematic diagram of the model training process of the present invention;

[0045] Figure 3 It is a schematic diagram of the hardware platform design structure of the present invention;

[0046] Figure 4 It is a schematic diagram of the method flow of the present invention. DETAILED DESCRIPTION

[0047] The following will be combined with the drawings in the specification of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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.

[0048] Please refer to the attached Figure 1 -Attached Figure 3The embodiment of the present invention provides a complex soil moisture data correction and prediction system based on data-driven, aiming to improve the accuracy and reliability of multi-layer soil moisture measurement and long-term prediction of farmland automatic meteorological moisture monitoring stations.

[0049] like Figure 1 As shown, the present invention is a complex soil moisture data correction and prediction system that integrates five core units. The system is based on deep learning technology and realizes intelligent processing of the entire process from data collection to result output. The five core units of the system are as follows:

[0050] Agricultural soil moisture and meteorological monitoring station data collection unit: This unit includes an automatic farmland meteorological soil moisture monitoring station placed on the field surface, which is responsible for obtaining meteorological and soil moisture data at different time points, and regularly transmits the collected data in real time to the cloud server through the 3G / 4G network.

[0051] Among them, the automatic meteorological soil moisture monitoring station includes soil moisture sensor module and meteorological sensor module.

[0052] The soil moisture sensor module includes multiple underground resistive humidity sensors, which collect soil moisture data at different depths hour by hour;

[0053] Meteorological sensor modules, including wind speed and direction sensors, air pressure and rainfall monitors, air temperature and humidity sensors, and light intensity sensors, are used to collect meteorological data in real time;

[0054] Specifically, soil moisture data and meteorological data are obtained through the farmland automatic meteorological moisture monitoring station. Soil moisture parameters include: 10cm, 20cm, 30cm, 40cm, 50cm, 60cm, 70cm, 80cm, 90cm, 100cm soil moisture and temperature, meteorological parameters include: air temperature (T), air humidity (H), precipitation (R), sunshine (S), atmospheric pressure (P) and wind speed (U). Time dimension data includes year, month, day, and hour, and space dimension data includes longitude, latitude, and elevation.

[0055] In the present invention, the core function of the data acquisition unit is to collect key meteorological and soil moisture data in real time through its sensor array. These data are transmitted to the designated server port stably and securely through the built-in communication module, using modern network technology and in accordance with the standard format of the TCP / IP protocol. The background data receiving module on the server side is responsible for decoding the information transmitted in the form of protocol data strings, converting them into specific data items corresponding to the meteorological and soil moisture monitoring templates, and storing the converted data in a specially designed database. In addition, in order to ensure the transparency and traceability of data transmission, the system will automatically record the original protocol content of each data transmission and save it in the form of a log. This process not only ensures the integrity and accuracy of the data, but also provides a reliable basis for subsequent data processing and analysis.

[0056] Among them, the TCP / IP data protocol format includes: protocol number, device number, date and time, soil moisture 1, soil moisture 2, soil moisture 3, soil moisture 4, soil temperature 1, soil temperature 2, soil temperature 3, soil temperature 4, air temperature, air humidity, daily rainfall, maximum wind speed, minimum wind speed, average wind speed, wind direction, radiation, ultraviolet light, hourly ET, daily cumulative ET, effective rainfall, cumulative effective rainfall, battery voltage, NC, address information 1, address information 2.

[0057] The core function of the data correction and completion unit is to receive and analyze the data sent back by the farmland automatic weather soil moisture monitoring station through the artificial intelligence program running on the cloud server. The unit will store the successfully analyzed data accurately in the database according to the predetermined transmission protocol, and record and log all the received raw data in detail to facilitate subsequent data tracking and analysis.

[0058] In addition, the unit has an embedded advanced machine learning quality control model that monitors the data in the database in real time. The model can accurately identify data anomalies and missing data, and ensure the integrity and accuracy of the data through automated correction and completion processes.

[0059] In the quality control model, the cubic spline interpolation algorithm can effectively correct and complete missing or abnormal data to ensure the smoothness and continuity of the data. Among them, the cubic spline interpolation algorithm is a numerical analysis method used to fit a smooth continuous function curve through a set of known scattered data. The basic idea is to approximate the data with a cubic polynomial in each small interval, and ensure the smoothness of the entire curve through the connection conditions of the polynomial at the connection point.

[0060] The general form of the cubic spline interpolation function is:

[0061] Si (x) = a i +b i (xx i )+c i (xx i ) 2 +d i (xx i ) 3

[0062] Among them, S i (x) is the interpolation function between the ith cells, a i , b i , c i , d i are the polynomial coefficients, x i is the starting point of the interval.

[0063] To determine these coefficients, it is necessary to solve a system of linear equations consisting of interpolation conditions and smoothness conditions. For example, for natural boundary conditions:

[0064] S″(x 0 )=S″(x n )=0

[0065] This means that the second-order derivative is zero at both ends of the interval. By solving these equations, we can get the polynomial coefficients for each interval, and then get a smooth interpolation function for the entire data interval. In this way, even in the case of missing or abnormal data, a continuous and smooth data curve can be obtained by interpolation, thereby achieving data quality control.

[0066] The operation mode of the quality control model is flexible and diverse. It can be set to start at a scheduled time, in real time, or triggered by a threshold. Once started, the model will make a quality judgment on the newly added data. The input parameters include the meteorological, soil, and spatiotemporal parameter data of the last 7 times, and the output result is the classification control result. Key information such as the control result, control time, and model version number will be recorded in the corresponding position of the data table, and the relevant responsible persons will be notified through various communication methods such as WeChat, SMS, and email to maintain abnormal equipment in time. For sites with missing data, the model will create new data entries at time intervals and mark them as interpolation. The upper limit of the assignment is 999 to ensure that it does not exceed 5% of the real data. If the data of a site is missing for more than 5 days, the model will stop the data creation of the site and issue a notification warning to attract the attention of relevant personnel.

[0067] The present invention relates to a Res-bi-LSTM multilayer soil moisture prediction model, which is an advanced learning model based on historical data and is specifically used to process time series data to predict soil moisture conditions. The model combines a residual network (ResNet) and a bidirectional long short-term memory network (Bi-LSTM) to improve the accuracy and robustness of the prediction. In terms of model structure design, the present invention adopts an integrated learning strategy to combine a convolutional neural network (CNN) with a recurrent neural network (RNN) to fully utilize the advantages of both in processing time series data. Specifically, CNN is used to process data with a grid structure and exhibits excellent representation learning capabilities. In this model, a single time series data is regarded as a one-dimensional grid, while multiple continuous time series data are combined into a two-dimensional grid. CNN consists of three basic structural layers: a convolutional layer, an activation layer, and a pooling layer.

[0068] The main function of the convolution layer is to extract features from the input data. This layer contains multiple convolution kernels, and the elements of each convolution kernel correspond to a weight coefficient and a bias. The neurons of the convolution layer are connected to multiple neurons in the adjacent area of ​​the previous layer. The size of this area is the receptive field, and its size depends on the size of the convolution kernel. During the operation, the convolution kernel will regularly traverse the input features, perform element-by-element multiplication and summation within the receptive field, and add the bias. The mathematical expression of the convolution operation is:

[0069] f(x)=(w*x)+b

[0070] Among them, f(x) represents the eigenvalue after convolution operation, w represents the weight of the convolution kernel, x represents the input feature, and b represents the bias.

[0071] The pooling layer is responsible for selecting and filtering feature maps after the convolutional layer extracts features. This layer contains a preset pooling function, which is used to replace the single point result in the feature map with the statistics of the feature map of its adjacent area. The area selection of the pooling operation is the same as the step of scanning the feature map by the convolution kernel, which is controlled by the size, step size and padding of the pooling kernel. The mathematical expression of the pooling operation is:

[0072]

[0073] Among them, P(x) represents the result after the pooling operation, and R represents the pooling area.

[0074] The backbone network of the deep learning soil moisture prediction model adopts the deep neural regression network (DNNR) forward propagation algorithm. The network structure includes an input layer, a hidden layer, and an output layer. The layers are fully connected, that is, any neuron in the i-th layer is connected to any neuron in the i+1-th layer, and the output value of the previous layer is used as the input value of the next layer. The formula is:

[0075]

[0076] In the formula, x is the input feature; W is the weight between each layer of the model; c and b are the offset vectors of the nodes between layers;

[0077] The activation function uses the ReLU function, which has the advantages of fast calculation speed and avoids the gradient disappearance problem during model training. Its function formula is:

[0078]

[0079] The Res-bi-LSTM multi-layer soil moisture prediction model in the invention adopts a network model structure that combines a convolutional neural network (Res-CNN) with a recurrent neural network (LSTM) through an integrated learning strategy.

[0080] A convolutional neural network (Res-CNN) specially designed for processing grid-structured data with representation learning capabilities is proposed. A time series data collected by the automatic monitoring station for meteorological soil moisture is regarded as a one-dimensional grid, and a combination of multiple continuous time series data is regarded as a two-dimensional grid. The convolutional neural network contains three network structure layers: convolution layer, activation layer and pooling layer.

[0081] The characteristic of convolutional neural network is that at least one layer of the network uses convolution operation to replace the general matrix multiplication operation. The formula for discretizing the convolution algorithm is:

[0082]

[0083] Among them, t represents the time, s(t) is the output or feature map at time t, x is the input, and w is the kernel function or probability density function.

[0084] The convolution layer extracts features from the input data. It contains multiple convolution kernels, and each element of the convolution kernel corresponds to a weight coefficient and a bias. Each neuron in the convolution layer is connected to multiple neurons in the previous layer in a similar area. The size of the area is called the receptive field, which depends on the size of the convolution kernel. When the convolution kernel is working, it will regularly traverse the input features, perform matrix element multiplication and sum the input features within the receptive field, and superimpose the offset. The mathematical expression formula is:

[0085]

[0086] Where (i, j)∈{0, 1, ...L l+1}, The summation part is equivalent to solving a cross correlation. b is the deviation, Z l and Z l+1 The convolution input and output of the l+1th layer are called feature maps, Ll+1 Z l+1 Z(i, j) is the pixel of the corresponding feature map, K is the number of channels of the feature map, f, s 0 and p are the convolution layer parameters, corresponding to the convolution kernel size, convolution step size, and number of padding layers.

[0087] The pooling layer is the model that passes the output feature map to the pooling layer for feature selection and information filtering after the convolution layer performs feature convolution operations. The pooling layer contains a preset pooling function, which replaces the result of a single point in the feature map with the statistics of the feature map of its adjacent area. The pooling layer selects the pooling area in the same way as the convolution kernel scans the feature map, which is controlled by the pooling kernel size, step size and padding. The mathematical expression of the pooling model is:

[0088]

[0089] Where step length s 0 , pixel (i, j) has the same meaning as the convolutional layer, and p is a pre-specified parameter.

[0090] A recurrent neural network (RNN) model for processing time series data is proposed. It has the characteristics of memory, parameter sharing and Turing completeness, and is used to efficiently learn the nonlinear characteristics of time series. Its mathematical expression is:

[0091] h (t) =f(s (t-1) , X (t) ,θ)

[0092] Where h is the system state of the recurrent neural network, s is the internal state, f is the activation function or a packaged feedforward neural network, and θ is the weight coefficient inside the recurrent unit.

[0093] The integration strategy of this scheme is to input the output results of a series of base models as new features to other models to achieve model stacking, that is, the output of the model of the i-th layer is used as the input of the model of the i+1-th layer, the output of the model of the i+1-th layer is used as the input of the model of the i+2-th layer, and so on. The result of the last output layer is used as the final result. The structure of the data correction interpolation model in this scheme is to construct a CNN network and an RNN network respectively, and splice and fuse the output values ​​of the two networks as the input of the meta-learner, where the meta-learner is a fully connected neural network structure, and the final prediction result is obtained at the output layer. Among them, the activation function of the model uses the ReLU function.

[0094] The specific technical route of the Res-bi-LSTM multi-layer soil moisture prediction model of the present invention is as follows: Figure 2 As shown, the details are as follows:

[0095] ① Data preprocessing: The model first preprocesses the collected time series data to ensure that the data quality meets the prediction requirements;

[0096] ② Feature extraction: Using the deep feature extraction capability of the residual network, the model can capture complex patterns and associations in soil moisture data;

[0097] ③Time series analysis: Through the bidirectional LSTM structure, the model can consider both past and future information at the same time, thereby more accurately predicting the changing trend of soil moisture;

[0098] ④Multi-layer structure: The model adopts a multi-layer structure, and each layer further analyzes and processes the data, enhancing the model's depth of understanding of time series data.

[0099] The prediction module of the invention adopts the Res-bi-LSTM model with the following core advantages: by introducing residual connections in the backbone network, the model can avoid the gradient vanishing problem that occurs when training deep networks, thereby achieving a deeper network structure without losing performance; for time series information, the bidirectional LSTM unit can process forward and backward time series data at the same time, thereby improving the accuracy of the prediction; structurally, the use of a multi-layer architecture enables the model to abstract and learn the high-level features of the data layer by layer, thereby improving the sophistication and complexity of the prediction.

[0100] The model update unit of the present invention is dedicated to the training and deployment of deep learning models, and is equipped with functions such as manual data labeling, model iterative update training, and generalization capability monitoring.

[0101] ① The manual data annotation function provides managers and experimenters with an accurate manual data annotation tool. By conducting experiments in different environments and abnormal situations in the laboratory or on the farm, the tool can collect and annotate data under different quality categories, thereby providing highly accurate training data for quality control and correction interpolation model training;

[0102] ② Model iterative update training: By using continuously updated incremental data and manually annotated data, the model is regularly iterated and trained to improve the timeliness, accuracy, and migration and generalization capabilities of the model;

[0103] ③ The generalization ability of model training is the core indicator for evaluating model performance. During the iterative update training of the model, it is crucial to monitor the generalization loss GL(t), which reflects the growth rate of the generalization error relative to the current minimum error. When GL(t) exceeds the predetermined threshold of 15, the model training will be terminated to ensure that the model achieves optimal performance without overfitting, and obtain the final result model, where:

[0104]

[0105] Where E va (t) is the validation set error at iteration number t, E opt (t) is the best validation set error obtained at iteration number t, where E opt (t) = min t′≤t E va (t′).

[0106] During model training, 70% of the data set is used as a training set and 30% as a validation set. The updated model is measured using the following indicators:

[0107]

[0108] In the formula, is the predicted value, y i is the true value, is the average value.

[0109] When the accuracy of the data quality control model training set verification result is greater than 95%, and the data correction interpolation model verification set result satisfies that MAE, MSE, and RMSE are all less than 0.3 and R2>0.90, the model takes effect, generates a model number, records it in the database, and deploys the model online.

[0110] The design of the entire module fully considers the complexity and variability of agricultural soil moisture monitoring. Through the application of deep learning technology, the level of intelligent data processing is improved, ensuring the accuracy and practicality of the prediction results.

[0111] The result output and visualization unit of the present invention is an advanced data display platform, which can not only convert the complex multi-layer soil moisture prediction results into graphical and tabular forms, but also make these results more intuitive and easy to understand through a series of visualization technologies. The main features and functions of this unit include:

[0112] Diverse display methods: According to user needs, the forecast results can be displayed in a variety of graphical forms such as line graphs, bar graphs, heat maps, scatter plots, etc., or detailed data can be presented in table form; Interactive interface design: Users can filter, sort, zoom in and out, and perform other custom operations on the displayed data through the interactive interface to obtain the required information; Hierarchical data display: The unit supports the display of multiple layers of data, and users can easily switch to view soil moisture data at different depths and their changing trends over time; Real-time data update: Synchronized with the back-end data processing module, the visualization unit can update data in real time to ensure that users always view the latest forecast results; Customized report generation: Users can select specific data sets as needed to generate customized reports, including graphs, tables and analysis summaries; Assisted decision support: Through visualization means, the unit not only provides data display, but also assists users in decision support, such as predicting future soil moisture changes and guiding agricultural irrigation; Easy to share and export: Users can export visualization results in image or PDF format for easy sharing and further analysis.

[0113] Finally, in addition to the software functions, the present invention also includes the construction of a hardware platform capable of implementing the software functions. The software platform is designed as follows: Figure 3 As shown. Figure 3 As shown in the figure, the platform includes three main modules: the main control distribution box, the soil moisture sensor module and the meteorological sensor module. Among them, the module is composed of solar photovoltaic, battery, 3G / 4G LAN communication module, and interactive display screen, which mainly undertakes the energy support, information exchange center and human-computer interaction control of the entire hardware platform. The hardware part of the sensor module is 10 sets of underground resistive humidity sensors, which collect soil moisture information at different depths hourly. The ground part is an integrated meteorological sensor module, which is mainly composed of high-precision agricultural sensors such as wind, solar, air temperature and humidity in parallel. The parallel structure ensures the consistency of the collected data time sequence and avoids the mutual interference between different data.

[0114] Please refer to the attached Figure 4 The present invention also provides a data-driven complex soil moisture data correction and prediction method including:

[0115] Step S1: Site positioning and information confirmation: First, the system will establish the precise latitude and longitude position of the soil moisture monitoring site and related site information.

[0116] Step S2: On-site agricultural data collection: Through the agricultural monitoring system at the ground monitoring station, the system will automatically collect agricultural data hourly on the spot.

[0117] Step S3: Sensor driving and data acquisition: The system will activate the underground resistive soil moisture sensor and the ground integrated meteorological sensor to obtain the necessary monitoring data.

[0118] Step S4: Multi-layer soil moisture and meteorological data collection: The system collects multi-layer soil moisture data (T 1 To T n ) and comprehensive meteorological data, including wind direction, wind speed, light, temperature and humidity, etc.

[0119] Step S5: Data upload and cloud correction: The collected data will be uploaded to the cloud server, and preliminary data correction processing will be performed on the server.

[0120] Step S6: Data integrity and quality correction: The system will perform three data correction tasks: data integrity completion, data rationality correction, and statistical data adjustment.

[0121] Step S7: Deep learning training and model building: The corrected complete data will be input into the multi-layer soil moisture prediction model for deep learning training to build a prediction model.

[0122] Step S8: Output of soil moisture prediction results and model update: The system will output daily multi-layer soil moisture prediction results and dynamically update the model through incremental learning methods to improve the accuracy and adaptability of the prediction.

[0123] The embodiment of the present invention selects data from multiple different time periods from historical soil moisture data and historical meteorological data as training samples, so that the trained model has higher accuracy, the prediction results are obtained more quickly and accurately, and the required timeliness and robustness can be met.

[0124] In order to deeply understand the soil moisture prediction method provided by the present invention, this article is explained through a specific example. The data involved in this example comes from the automatic meteorological soil moisture monitoring station of farmland in the Huanghuaihai irrigation area, and the data collected between 2019 and 2021 are selected. Meteorological data include daily average temperature, air pressure, relative humidity, wind speed, surface temperature and precipitation, while soil moisture data covers the daily average mass water content of soil at a depth of 10 to 100 cm. In addition, the data set also contains data in time (year, month, day) and space (longitude, latitude, altitude) dimensions.

[0125] In this example, a total of 3126 daily average data were obtained. The data set of the quality control model consists of the soil moisture data of the day and the most recent 5 meteorological soil moisture data. Through rule judgment and artificial noise interference, the data is marked as normal (0), abnormal (1) or missing (2), of which 70% is used as a training set and 30% is used as a validation set. The data set of the data correction interpolation model consists of the soil moisture data of the day and the meteorological soil moisture data of the previous 7 days, and is also divided into 70% training set and 30% validation set.

[0126] In terms of deep learning model construction, the data quality control model of the present invention adopts statistical tests and gross error tests, and follows the three sigma principles to ensure the normal distribution of data and the effective identification of outliers. The correction interpolation model adopts a cubic spline interpolation method, which can not only smooth the curve, but also ensure the continuity of the data, thereby avoiding unnatural fluctuations during the interpolation process. As for the prediction model, the present invention adopts a combination of a residual network and a bidirectional long short-term memory network (Res-Bi-LSTM), which uses residual connections to avoid the gradient vanishing problem in deep network training, and captures the front and back dependencies of time series data through bidirectional LSTM, thereby enhancing the accuracy of the model for time series prediction. These improvements make the present invention more accurate and reliable in data processing and prediction. The prediction model combines the advantages of convolutional neural networks (CNNs) and gated recurrent units (GRUs) to extract high-dimensional features and time series features of data, respectively. As an efficient model in recurrent neural networks, GRU is more concise than LSTM structures and can effectively solve long-term dependency problems. The integrated learning strategy further improves the performance of the model, and outputs the final prediction results through a meta-learner.

[0127] In terms of model training parameter configuration, the time step of the GRU network is set to 8, the prediction time is 1 day, the activation function is ReLU, the Dropout ratio is 20%, the loss function is the mean square error (MSE), the optimization function is Adam, the batch size is 128, and the training cycle is 500 times. The configuration of the CNN network is similar, with a time step of 8, a prediction time of 1 day, the number of mappings is 25, the convolution kernel size is 3×3, the pooling kernel size is 2×2, the Dropout ratio is 20%, the loss function is MSE, the optimization iteration algorithm is Adam, the batch size is 128, and the training cycle is 500 times. The model is built based on the Keras framework, and the backend uses Google's deep learning framework TensorFlow 1.6, the programming language is Python 3.6, and the integrated development environment is PyCharm 2019.

[0128] In terms of performance evaluation, the classification accuracy of the quality control model on the training set reached 99.3%, and on the validation set it was 96.1%. The MSE, MAE, RMSE, and R2 indicators of the correction interpolation model on the training set were 0.0040, 0.0502, 0.0576, and 0.9999, respectively, and on the validation set they were 0.2726, 0.2576, 0.2985, and 0.9891, respectively. These results show that the quality control and correction interpolation system based on deep learning designed in this scheme performs well in practical applications and can perform quality control and correction interpolation of soil moisture data with high accuracy and precision.

[0129] The successful verification of this example demonstrates the efficiency and reliability of the present invention in practical applications, and proves its advancement and practical value in the field of soil moisture data processing.

[0130] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A data-driven complex soil moisture data correction and prediction system, characterized in that: include: The soil moisture sensor module includes multiple underground resistive humidity sensors and temperature sensors, which collect soil moisture and temperature data at different depths hour by hour; Meteorological sensor modules, including wind speed and direction sensors, air pressure and rainfall monitors, air temperature and humidity sensors, and light intensity sensors, are used to collect meteorological data in real time; The data acquisition unit receives data from the soil moisture sensor module and the meteorological sensor module and uploads it to the cloud server; The data correction and completion unit uses machine learning models to correct and complete the collected data, and merges the collected hourly data into daily data; The multi-layer soil moisture prediction model predicts the multi-layer changes of soil moisture based on the Res-bi-LSTM architecture, outputs daily multi-layer soil moisture prediction results, and dynamically updates them through an incremental model.

2. The data-driven complex soil moisture data correction and prediction system according to claim 1, characterized in that: In the soil moisture sensor module, resistive humidity sensors are arranged at different depths of 10 cm, 20 cm, 30 cm, 40 cm, 50 cm, 60 cm, 70 cm, 80 cm, 90 cm and 100 cm to monitor soil moisture layer by layer.

3. The data-driven complex soil moisture data correction and prediction system according to claim 1, characterized in that: The meteorological sensor modules are connected in parallel to ensure the temporal consistency of meteorological data such as wind speed, wind direction, air pressure, rainfall, temperature, humidity and light intensity to avoid mutual interference.

4. The data-driven complex soil moisture data correction and prediction system according to claim 1, characterized in that: The data correction and completion unit uses a cubic spline interpolation algorithm and a machine learning model to correct and complete missing or abnormal data to ensure the integrity and accuracy of the data.

5. The data-driven complex soil moisture data correction and prediction system according to claim 1, characterized in that: The multi-layer soil moisture prediction model includes: Constructed by LTSM long short-term memory neural network t ′=f LTSM (x t-i1 , x t-i2 , ..., x t-in ) prediction function; The prediction function designs a prediction network by perceiving the forget gate structure, and the prediction result of the prediction network is y t ' is the soil moisture factor after the future i, and the soil moisture factor level represents the current soil moisture on day t predicted by LTSM; Construct y based on Resnet backbone residual network t =f resnet (x t1 , x t2 , ..., x tn ,y t ′) A mapping function is used to predict the future multi-layer soil moisture conditions under the corresponding meteorological environment based on the historical soil moisture conditions through a residual neural network.

6. The data-driven complex soil moisture data correction and prediction system according to claim 1, characterized in that: The multi-layer soil moisture prediction model is dynamically updated through an incremental model. It is based on a single-day multi-layer soil moisture prediction model from N+1 to N+T to build a short-term soil moisture prediction model that can predict the next T days. A comprehensive evaluation function is built between the actual soil moisture and the predicted value. If the model prediction score exceeds an acceptable range, the training set data is automatically updated to achieve dynamic model updating.

7. The data-driven complex soil moisture data correction and prediction system according to claim 1, characterized in that: The system also includes: a visualization and reporting unit, which displays the prediction results as graphics or tables and supports the generation of customized reports.

8. A data-driven complex soil moisture data correction and prediction method, based on the system according to any one of claims 1 to 7, characterized in that: The following steps are involved: S1. Real-time collection of soil moisture and meteorological data through soil moisture sensor module and meteorological sensor module; S2, using the data acquisition unit to transmit the data to the cloud server; S3. In the data correction and completion unit, the collected data is corrected for completeness and rationality, and the collected hourly data is merged into daily data; S4. Use the Res-bi-LSTM multi-layer soil moisture prediction model to train and predict the corrected data; S5. Display the prediction results through the visualization and reporting unit and generate customized reports.

9. The data-driven complex soil moisture data correction and prediction method according to claim 8, characterized in that: In the step S3, the multiple data points collected hourly are merged into daily data, including the following steps: Receive soil moisture data and meteorological data collected hourly; Aggregate the data points within every 24 hours based on the date and timestamp to calculate the daily average, maximum, and minimum statistical indicators; The aggregated daily data is stored in the cloud database for subsequent data correction and analysis.

10. The data-driven complex soil moisture data correction and prediction method according to claim 8, characterized in that: The step S3 also includes detecting whether the merged daily data is continuous and within the valid range recorded by the sensor, including the following steps: Verify whether there are date gaps in the time series of daily data to ensure data continuity; Check whether each data point is within the valid range recorded by the sensor, and exclude data points out of range to ensure the validity of the data.

Citation Information

Cited By

  • CN119310143A

  • CN119646420A

  • CN120753180A