A method and device for spatiotemporal prediction of soil moisture based on geospatial sensor networks
Through the method of combining graph convolutional neural network and gated recursive unit, the spatial and temporal dependence of soil moisture monitoring stations is extracted, and meteorological factors are taken into account, which solves the problem of accuracy difference and low precision in soil moisture prediction, and achieves High-precision spatiotemporal prediction of soil moisture.
Patent Information
- Application Number
- CN202410980052.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-07-22
AI Technical Summary
Existing soil moisture prediction methods have problems with accuracy differences and low precision when dealing with non-stationary time series and multivariate predictions. In particular, deep-seated influencing factors are not fully considered, resulting in unstable predictions.
The graph convolutional neural network is used to extract the spatial dependence between different soil moisture monitoring sites, and combined with the gated recursive unit to extract the time dependence of the soil moisture measured sequence. The influence of meteorological factors such as soil temperature and precipitation is taken into account to construct a high-precision Soil moisture spatio-temporal prediction model.
It achieves high-precision prediction of soil moisture, improves the prediction accuracy and model generalization ability, meets the demand for high-quality soil moisture prediction, and is superior to traditional machine learning and deep learning methods.
Smart Images

Figure CN118522377B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of soil moisture spatiotemporal prediction, and specifically to a soil moisture spatiotemporal prediction method and device for a geospatial sensor network. Background Art
[0002] Soil moisture is a key variable in agricultural hydrology and meteorology. It plays an important role in regulating precipitation infiltration and surface evaporation. As the main source of water in the growth of crops, soil moisture content has a significant impact on the growth of crops. Appropriate moisture content can promote crop growth and increase crop yields. However, soil that is too wet or too dry can easily have an adverse effect on crop growth, such as causing crop root diseases, slowing growth, and reducing yields. Therefore, accurate prediction of soil moisture can help timely understand soil moisture conditions and provide a basis for scientific irrigation, thereby ensuring the healthy growth of crops.
[0003] Soil moisture wireless sensor networks are self-organizing and data-oriented. They can perform long-term, automatic, and networked dynamic monitoring of soil moisture. They are an important means that cannot be ignored in soil moisture perception research and applications. As soil moisture data monitored by wireless sensor networks becomes increasingly abundant, the prediction of future changes in soil moisture has gradually attracted people's attention. Commonly used methods can be divided into statistical-based methods, machine learning methods, and deep learning methods.(1) Statistical methods include moving average, exponential smoothing, autoregressive moving average model, etc. A soil moisture prediction model based on the ARIMA time series model was proposed. After smoothing and denoising the soil moisture data at three different soil depths, a good prediction effect was obtained when input into the model. The autoregressive moving average model was used to decompose the soil evaporation, precipitation and soil moisture time series of the past decade and model them to predict precipitation and soil evaporation. However, statistical methods are only applicable to stationary time series. Soil moisture data does not always meet this assumption, resulting in large differences in prediction accuracy, which limits the promotion of the model. (2) Machine learning methods include linear regression, decision trees, random forests and neural networks. Machine learning The method can better adapt to non-stationary time series and can be extended to multivariate prediction. Artificial neural networks are used to predict soil moisture values at different depths using multiple input meteorological data. The results are consistent with the real data. In order to solve the problem of poor model training effect caused by excessive input vector dimensions and complex network structure during neural network modeling, principal component analysis is used to reduce the dimension of input data, and the extracted principal components are used as input variables to establish a radial basis function neural network prediction model for soil moisture with good prediction effect. Support vector machine (SVM) is applied to soil moisture prediction, avoiding the challenges brought by the complexity of data in neural networks. The prediction model can increase the accuracy to 89%, and its performance is excellent. Regarding the artificial neural network model (ANN), an adaptive genetic neural network algorithm has been proposed. Before training, the genetic algorithm searches for the optimal initial network weights and thresholds in the global scope, thereby reducing the number of algorithm iterations. However, the machine learning method is not good at processing nonlinear time series relationships, resulting in low prediction accuracy. (3) Deep learning methods include recurrent neural networks (RNN), long short-term memory networks (LSTM) and convolutional neural networks (CNN). Deep learning can process nonlinear relationships and high-dimensional time series data, and performs well in predicting complex time series. Someone designed and trained an LSTM in a regional scope. By comparing it with the classical machine learning method, it was found that the LSTM produced the smallest error and had good Good generalization characteristics, some people have developed a recursive neural network long short-term memory model (RNN-LSTM) using the time series of soil moisture measurement sites, and verified the practicality of the model at different soil depths. Some people have proposed a hybrid convolutional neural network gated recursive unit (CNN-GRU) integrated deep learning model to predict the soil moisture content at different depths in the corn root zone. The model was trained and tested on the soil moisture content and meteorological data in the corn planting area. The results showed that the model was significantly better than independent CNN or gated recursive unit (GRU) in terms of prediction accuracy and convergence speed. By utilizing the powerful data processing capabilities of deep learning, the constructed and optimized soil moisture prediction model can achieve high-precision prediction of soil moisture.
[0004] However, the inventors of the present application have found that, in practical applications, the above studies still have a certain degree of instability in predicting soil moisture, or in other words, there are certain problems with prediction accuracy, which means that there are still deep-seated influencing factors that need to be explored in order to configure a more matching prediction logic. Summary of the invention
[0005] The present application provides a method and device for spatiotemporal prediction of soil moisture for a geospatial sensor network. For the purpose of soil moisture prediction, the present application expresses a geospatial sensor network composed of different soil moisture monitoring stations as a graph structure, and uses a graph convolutional neural network to extract the spatial dependencies between different stations, and uses a gated recursive unit to extract the complex time dependencies of the soil moisture measured sequence. The application also considers the influence of meteorological factors, namely soil temperature and precipitation. In this way, the spatiotemporal correlation between sensors and external influences can be taken into account, so as to achieve high-precision prediction of soil moisture and meet the needs of high-quality soil moisture prediction.
[0006] In a first aspect, the present application provides a method for spatiotemporal prediction of soil moisture for a geospatial sensor network, the method comprising:
[0007] Obtaining historical monitoring data of different soil moisture monitoring sites in the geospatial sensor network, wherein the historical monitoring data includes soil moisture data, soil temperature data and precipitation data monitored within a preset historical time period, and the historical monitoring data is data in the form of time series;
[0008] Input the historical monitoring data into a pre-configured soil moisture spatiotemporal prediction model, wherein the soil moisture spatiotemporal prediction model extracts the spatial dependency between different soil moisture detection sites by a graph convolutional neural network, and uses a gated recursive unit to extract the temporal dependency of the soil moisture measured sequence. The soil moisture spatiotemporal prediction model is used to predict the soil moisture at the expected time corresponding to the monitoring data input into the model based on the spatiotemporal dependency and the temporal dependency;
[0009] Extract the predicted soil moisture value output by the soil moisture spatiotemporal prediction model.
[0010] In a second aspect, the present application provides a method for spatiotemporal prediction of soil moisture for a geospatial sensor network, the method comprising:
[0011] An acquisition unit is used to acquire historical monitoring data of different soil moisture monitoring sites in the geospatial sensor network, wherein the historical monitoring data includes soil moisture data, soil temperature data and precipitation data monitored within a preset historical time period, and the historical monitoring data is data in the form of time series;
[0012] A prediction unit is used to input historical monitoring data into a pre-configured soil moisture spatiotemporal prediction model, wherein the soil moisture spatiotemporal prediction model extracts the spatial dependency between different soil moisture detection sites by a graph convolutional neural network, and uses a gated recursive unit to extract the temporal dependency of the soil moisture measured sequence. The soil moisture spatiotemporal prediction model is used to predict the soil moisture at an expected time corresponding to the monitoring data input into the model based on the spatiotemporal dependency and the temporal dependency;
[0013] The extraction unit is used to extract the soil moisture prediction value output by the soil moisture spatiotemporal prediction model.
[0014] From the above content, it can be concluded that the present application has the following beneficial effects:
[0015] For the purpose of soil moisture prediction, the soil moisture spatiotemporal prediction model configured in this application expresses the geospatial sensor network composed of different soil moisture monitoring stations as a graph structure, and uses a graph convolutional neural network to extract the spatial dependencies between different stations, and uses a gated recursive unit to extract the complex time dependencies of the soil moisture measured sequence. It also considers the influence of meteorological factors, namely soil temperature and precipitation, thereby taking into account the spatiotemporal correlation between sensors and external influences, achieving high-precision prediction of soil moisture, and meeting the needs of high-quality soil moisture prediction. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0017] Figure 1 A schematic diagram of a flow chart of a method for spatiotemporal prediction of soil moisture for a geospatial sensor network in this application;
[0018] Figure 2 A schematic diagram of a scenario of a geospatial sensor network of the structure of the present application;
[0019] Figure 3 A schematic diagram of the structure of the time-gated convolutional layer of this application;
[0020] Figure 4 A schematic diagram of the structure of a soil moisture spatiotemporal prediction device for a geospatial sensor network according to the present application. DETAILED DESCRIPTION
[0021] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0022] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described here can be implemented in an order other than that illustrated or described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or modules is not necessarily limited to those steps or modules clearly listed, but may include other steps or modules that are not clearly listed or inherent to these processes, methods, products or devices. The naming or numbering of steps in this application does not mean that the steps in the method flow must be executed in the time / logical sequence indicated by the naming or numbering. The process steps that have been named or numbered can change the execution order according to the technical purpose to be achieved, as long as the same or similar technical effects can be achieved.
[0023] The division of modules in this application is a logical division. There may be other division methods when it is implemented in actual applications. For example, multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection between modules can be electrical or other similar forms, which are not limited in this application. In addition, the modules or submodules described as separate components may or may not be physically separated, may or may not be physical modules, or may be distributed in multiple circuit modules, and some or all of the modules may be selected according to actual needs to achieve the purpose of the present application.
[0024] First, see Figure 1 , Figure 1 A schematic flow chart of a method for spatiotemporal prediction of soil moisture for a geospatial sensor network provided by the present application is shown. The method for spatiotemporal prediction of soil moisture for a geospatial sensor network provided by the present application may specifically include the following steps S101 to S103:
[0025] Step S101, obtaining historical monitoring data of different soil moisture monitoring sites in the geospatial sensor network, wherein the historical monitoring data includes soil moisture data, soil temperature data and precipitation data monitored within a preset historical time period, and the historical monitoring data is data in the form of time series;
[0026] It can be understood that the geospatial sensor network, namely the soil moisture wireless sensor network, is composed of a large number of soil moisture monitoring stations. In this way, the overall soil moisture conditions can be predicted based on the historical monitoring data collected by many stations in the region, and the local soil moisture conditions of each station can be predicted at the same time.
[0027] For the geospatial sensor network, it is usually an existing network. Of course, the possibility of deployment by the present application solution is not excluded in actual applications.
[0028] Among them, the input data involved in the spatiotemporal prediction processing of soil moisture in this application, that is, the historical monitoring data involved here, specifically involves three aspects. The first one is easy to understand, which is the soil moisture data (SM) directly related to soil moisture. In addition, this application also introduces meteorological factors, corresponding to the second soil temperature data (TS) and the third precipitation data (PP, which can also be referred to as precipitation observation values).
[0029] In the process of collecting historical monitoring data from each site, it can be understood that it is for a preset historical time period, which can be either a continuous time period or different time points, thus forming historical monitoring data in the form of a time series, or in other words, historical monitoring data is data with time series characteristics.
[0030] As an exemplary embodiment, the preset historical time period may specifically be time points obtained every 4 hours over the past 3 days.
[0031] For example, you can start counting from the current time point, go back 4 hours, obtain historical monitoring data for a time point, then go back 4 hours, continue to obtain historical monitoring data for a time point, and so on, until 3 days (2 hours 4*3=72 hours).
[0032] As an example, the sensor network deploys sensors at three scales of 100km, 50km, and 10km, representing large scale, medium scale, and small scale, respectively, with a total of 34 stations. The large scale, medium scale, and small scale stations are marked with L, M, and S, respectively. Correspondingly, the soil moisture temperature data at a depth of 3cm is put into use. All stations in the sensor network have soil moisture data (SM) and soil temperature data (TS), but only 20 stations have precipitation observations (PP). The precipitation at station M12 has missing values for up to three months. Considering that the precipitation observation data of adjacent stations are close, the station with the closest geographical distance is selected as the missing value. The missing rainfall data were supplemented. Among all the stations, L7, M7, M8 and S1 had missing values for 8 months, 7 months, 3 months and 16 months respectively. Therefore, the data of L7, M7, M8 and S1 were eliminated / discarded, and only the data of the remaining 30 stations were retained. They were uniformly filtered to only the selected historical time period. The sampling interval of the original soil temperature and humidity data was 10 minutes or 15 minutes. The mean method was adopted to uniformly downscale the data to 4-hour scale. The precipitation element took the cumulative precipitation of 4 hours. The abnormal values and missing values of the soil temperature and humidity data were interpolated by taking the mean of the 6 valid values before and after.
[0033] It can also be seen from the example here that the present application may also involve data preprocessing of the acquired historical monitoring data, which may include removing site data, removing outliers, filling missing values by interpolation, and downscaling by averaging, etc., in order to further improve the data quality. Of course, the data preprocessing operation can also be originally incorporated into the process of acquiring historical monitoring data.
[0034] In addition, it can be understood that the acquisition and processing of historical monitoring data here, with the triggering of the pre-configured soil moisture spatiotemporal prediction task, can be either the extraction and processing of ready-made data or the continuous monitoring and processing of data. These differences can be adjusted according to the specific path of the data source, or in other words, according to the software and hardware configuration relationship between the processing equipment that executes the solution of this application and the geospatial sensor network, which can be flexibly adjusted under actual circumstances.
[0035] Step S102, inputting the historical monitoring data into a pre-configured soil moisture spatiotemporal prediction model, wherein the soil moisture spatiotemporal prediction model extracts the spatial dependency between different soil moisture detection sites by a graph convolutional neural network, and uses a gated recursive unit to extract the temporal dependency of the soil moisture measured sequence, and the soil moisture spatiotemporal prediction model is used to predict the soil moisture at an expected time corresponding to the monitoring data input into the model based on the spatiotemporal dependency and the temporal dependency;
[0036] It can be understood that the focus of this application is on the configuration of the soil moisture spatiotemporal prediction model relied on in the soil moisture spatiotemporal prediction process, which is a novel model configured in this application, which involves the application of Graph Convolution Network (GCN) and Gated Recurrent Unit (GRU).
[0037] Specifically, the design concept of this application is to abstract the geospatial sensor network into a graph structure, or express it as a graph structure. Figure 2 A scenario diagram of the geospatial sensor network with a graph structure of the present application is shown to help a more vivid understanding, and based on this, on the one hand, the spatial dependencies between different soil moisture detection sites are extracted through a graph convolutional neural network, and on the other hand, the complex time dependencies of the soil moisture measured sequence are extracted through a gated recursive unit. In addition, on the basis of the usual focus on soil moisture, the present application also considers the influence of meteorological factors to further improve the prediction accuracy. In this regard, soil moisture and precipitation (it should be noted that both are external influencing factors specially configured for this application) are also used as inputs to the model like soil moisture. In this way, the spatiotemporal correlation between sensors and external influences can be taken into account to achieve accurate prediction of soil moisture data.
[0038] In this regard, as an exemplary embodiment, for the soil moisture spatiotemporal prediction model, in the input time window, the monitoring data (including soil moisture data, soil temperature data and precipitation data) of N stations at each time t are converted into graph signals at input, and the feature matrix X is obtained. t ∈R N×A , A is the number of features associated with each node.
[0039] It can be understood that the soil moisture spatiotemporal prediction model configured in the present application may not have the ability to convert image signals. In this case, when the historical monitoring data is input into the model, it can be converted into image signals first and then input into the model. The image signals at different time points can be recorded as X t-T+1 ,...,X t , x i It is obviously composed of three parts: soil moisture, soil temperature and precipitation.
[0040] Of course, in some cases, the soil moisture spatiotemporal prediction model itself can also be configured with graph signal conversion capabilities.
[0041] As another exemplary embodiment, the spatial dependency relationship between different soil moisture detection sites configured by the soil moisture spatiotemporal prediction model can be specifically represented by a constructed site graph G, G=(V, E, W), where V is a site set, the number of sites is N, E is a set of edges representing the interaction relationship between sites, and W is a spatial weight matrix representing the site graph G, W∈R N×N , W is obtained by taking the distance weights between sites as the input of the edge, and the site graph G realizes information interaction between sites through convolution on the graph.
[0042] Thus, the embodiment herein provides a more specific implementation supporting solution for the construction of the spatiotemporal dependency of the present application, which has better practical significance.
[0043] In addition, the site map G can also be conveniently displayed to the user through a relevant visual interface / device. For this purpose, different colors can be used to identify different sites, or different aspects of the site characteristics can also be identified with different colors.
[0044] For example, for the soil moisture of different stations at the currently selected time point, different fill colors of the station icons can be configured according to the moisture difference to obtain better visualization effects.
[0045] Further, as another exemplary embodiment, in the spatial weight matrix of the site graph G, distance weights are configured between nodes. Taking node i and node j as an example, the weight of the edge connecting node i and node j can be specifically recorded as w i,j , and w i,j Based on the geographical location of the site, the specific location can be calculated by the following formula:
[0046] ,
[0047] Among them, d i,j is the distance between two stations on the earth’s surface on the latitude and longitude grid. When composing a map, only the distance less than the distance threshold R is calculated. h The weight of the edge between sites, R h =1000m, when d i,j Greater than 1000m and w i,j When w is less than 0.001, i,j is 0, the station and its own w i,j is 1.
[0048] It is easy to understand that the embodiment here is the configuration of the distance weight of the spatial weight matrix of the site graph G, and provides an easy-to-apply implementation solution with a specific quantitative formula.
[0049] In this way, after completing the construction / update of the site graph G, information interaction between nodes can be achieved through convolution on the graph.
[0050] The information interaction involved may involve graph convolution calculations, specifically:
[0051] Spectral graph convolution is a signal x∈R in the Fourier domain N Multiplication with the filter θ,
[0052] The formula for the convolution operator "*g" of a signal x is:
[0053] ,
[0054] Where: , I n ∈R N×N , I n is the identity matrix, D∈R N×N , D is the diagonal matrix, D ii =Σ j W ij , D ii is the normalized Tulapus, U∈R N×N , U is the eigenvector matrix of L, Λ∈R N×N , Λ is the diagonal matrix of L eigenvalues, the filter θ(Λ) is a function of L eigenvalues, U T x represents the graph Fourier transform of x.
[0055] The specific structure of the soil moisture spatiotemporal prediction model configured in this application is further introduced below.
[0056] As another exemplary embodiment, the soil moisture spatiotemporal prediction model configured in the present application may specifically include two spatiotemporal convolution blocks (which can be recorded as ST-Conv blocks), which capture the time dependency and spatial dependency mentioned above. In the real-time model working process, the two spatiotemporal convolution blocks uniformly process the monitoring data input by the model, and the fully connected layer after the two spatiotemporal convolution blocks obtains the soil moisture output by the model based on the features obtained by the two spatiotemporal convolution blocks according to the monitoring data input by the model, as the model output.
[0057] Among them, each spatiotemporal convolution block contains two time-gated convolutional layers and a spatial graph convolutional layer in the middle of the two time-gated convolutional layers.
[0058] It can be understood that in the embodiments herein, the spatiotemporal prediction model of soil moisture configured in the present application is disclosed, which may specifically involve the specific structural design of the spatiotemporal convolution block, the time-gated convolution layer and the spatial graph convolution layer.
[0059] Furthermore, for the specific structural parameters of the spatiotemporal convolution block, the present application also provides a specific configuration scheme. As another exemplary embodiment, in the first spatiotemporal convolution block (ST-Conv block 1), corresponding to the structural design of three convolution layers, the first time-gated convolution layer can be configured as 3 input channels, the spatial graph convolution layer can be configured as 32 output channels, and the second time-gated convolution layer can be configured as 64 output channels;
[0060] In the second spatiotemporal convolution block (ST-Conv block 2), corresponding to the structural design of the three convolutional layers, the first time-gated convolution layer can be configured as 64 input channels (corresponding to the 64 output channels of the second time-gated convolution layer at the end of the first spatiotemporal convolution block), the spatial graph convolution layer can be configured as 32 output channels, and the second time-gated convolution layer can be configured as 128 output channels.
[0061] At the same time, for the time-gated convolution layer in the spatiotemporal convolution block, as another exemplary embodiment, as shown in Figure 3 A schematic diagram of the structure of the time-gated convolutional layer of the present application is shown, which may specifically include a layer with a width k t The 1-D causal convolution layer of the kernel, in the upward data flow, the input of the 1-D causal convolution layer flows along with the output of the 1-D causal convolution layer to a gated linear unit (GLU) connected behind the 1-D causal convolution layer as a nonlinearity.
[0062] For each site in the site graph G, during the temporal convolution, k input elements are explored without padding t neighbors, resulting in the sequence length being shortened by k each time t -1, the input of the temporal convolution at each site is regarded as a sequence of length M,
[0063] Among them, C i The channel is Y∈R M×Ci , convolution kernel Γ∈R Kt×Ci×2Co Designed to map the input Y to a single output element [PQ]∈R (M−Kt+1)×(2Co) , P and Q are split into two halves of equal-sized channels, and the time-gated convolution is defined as:
[0064] ,
[0065] Among them, P and Q are the inputs of the gate in the gated linear unit respectively, ⊙ represents the element-level Hadamard product, and the B-gate σ(Q) controls which current state of P is related to discovering both the component structure and dynamic variance in the time series.
[0066] In addition, for the soil moisture spatiotemporal prediction model, other configuration contents may also be involved in its specific work. For example, the model code can be written in Python and implemented using the PyTorch framework; for example, it may also involve the setting of hyperparameters: the batch size is set to 64, the training epoch is set to 50, the learning rate is set to 0.001, the RMSprop optimizer is used to optimize the model parameters, the step_size is 5, the learning rate adjustment factor gamma=0.7, and the convolution kernel sizes in the spatial and temporal dimensions are both set to 3.
[0067] In addition, the time at which the predicted soil moisture is located, that is, the expected time (or the specified prediction time), can be either default / fixed or selected in real time, and can be configured according to actual needs.
[0068] As an example, the expected time, or time step (L) involved in the present application may specifically include time points of the 4th hour, the 12th hour, the 24th hour, the 48th hour, the 144th hour, and the 192nd hour in the future.
[0069] In order to fully verify the performance of the soil moisture spatiotemporal prediction model configured in this application, in the performance comparison phase with machine learning models that follow traditional prediction logic, namely random forest model (RF) and long short-term memory network (LSTM) models, this application can also use mean absolute error (MAE), root mean square error (RMSE) and R 2 The performance of the model for predicting soil moisture is quantified by the performance indicators such as MAE, which directly calculates the absolute value between the true value and the predicted value, and RMSE, which is the arithmetic square root of the average of the squares of the difference between the true value and the predicted value, is used to detect the deviation between the predicted value and the true value of the model. 2 It reflects the accuracy of the model fitting data, which generally ranges from 0 to 1. The closer the value is to 1, the stronger the explanatory power of the variables in the equation for y. Then it is found that the soil moisture spatiotemporal prediction model configured in this application is significantly better than the other two models in long-term forecasting, mainly in the following aspects:
[0070] MAE and RMSE increase the slowest, R 2 The speed of reduction is the slowest. When the time step (L) is 12, 36, and 48, the MAE and RMSE are the smallest. 2 The maximum,accuracy is improved by 49.53%, 34.86% and 29.73% respectively, and the,correlation between the predicted value and the measured value can reach up to 0.94.
[0071] This proves that the soil moisture spatiotemporal prediction model configured in this application has an effective and high-precision prediction effect, which in turn helps to scientifically manage water resources, reasonably regulate irrigation water volume and timing, and increase crop yields in the field of agriculture.
[0072] Step S103: extracting the soil moisture prediction value output by the soil moisture spatiotemporal prediction model.
[0073] It can be understood that the soil moisture spatiotemporal prediction model configured in the present application can output the corresponding soil moisture prediction value after performing the corresponding soil moisture prediction processing of the current historical monitoring data, and the soil moisture prediction value output by the model can be extracted at this time.
[0074] In this case, the soil moisture prediction value can be stored, displayed, forwarded, outputted, and the like. It is easy to understand that the next step of data application can be adjusted according to actual needs, specifically according to the pre-configured data application strategy and the currently configured data application strategy, and this application does not make any specific limitations.
[0075] As an example, in the visualization interface, the actual geographical locations of the sites involved in the geospatial sensor network can be displayed, and the corresponding predicted soil moisture forecast values can be simultaneously displayed at the location of each site. This obviously has a better intuitive display effect for viewing users / staff, and can more conveniently and clearly promote the processing of corresponding aspects such as agricultural management.
[0076] For the above scheme contents (including various exemplary embodiments), in general, for the soil moisture prediction goal, the soil moisture spatiotemporal prediction model configured in the present application expresses the geospatial sensor network composed of different soil moisture monitoring sites as a graph structure, and uses a graph convolutional neural network to extract the spatial dependencies between different sites, and uses a gated recursive unit to extract the complex time dependencies of the soil moisture measured sequence. It also considers the influence of meteorological factors, namely soil temperature and precipitation. In this way, the spatiotemporal correlation between sensors and external influences can be taken into account, so as to achieve high-precision prediction of soil moisture and meet the needs of high-quality soil moisture prediction.
[0077] The above is an introduction to the spatiotemporal prediction method of soil moisture for geospatial sensor networks provided by this application. In order to better implement the spatiotemporal prediction method of soil moisture for geospatial sensor networks provided by this application, this application also provides a spatiotemporal prediction device for soil moisture for geospatial sensor networks from the perspective of functional modules.
[0078] See also Figure 4 , Figure 4This is a schematic diagram of a structure of a soil moisture spatiotemporal prediction device for a geospatial sensor network of the present application. In the present application, the soil moisture spatiotemporal prediction device 400 for a geospatial sensor network may specifically include the following structure:
[0079] An acquisition unit 401 is used to acquire historical monitoring data of different soil moisture monitoring sites in a geospatial sensor network, wherein the historical monitoring data includes soil moisture data, soil temperature data and precipitation data monitored within a preset historical time period, and the historical monitoring data is data in the form of a time series;
[0080] The prediction unit 402 is used to input the historical monitoring data into a pre-configured soil moisture spatiotemporal prediction model, wherein the soil moisture spatiotemporal prediction model extracts the spatial dependency between different soil moisture detection sites by a graph convolutional neural network, and uses a gated recursive unit to extract the temporal dependency of the soil moisture measured sequence. The soil moisture spatiotemporal prediction model is used to predict the soil moisture at an expected time corresponding to the monitoring data input into the model based on the spatiotemporal dependency and the temporal dependency;
[0081] The extraction unit 403 is used to extract the soil moisture prediction value output by the soil moisture spatiotemporal prediction model.
[0082] In an exemplary embodiment, for the soil moisture spatiotemporal prediction model, the monitoring data of N stations at each time t are converted into graph signals when input, and the feature matrix X is obtained. t ∈R N×A , A is the number of features associated with each node.
[0083] In another exemplary embodiment, the spatial dependency is represented by a constructed site graph G, G=(V, E, W), where V is a site set, the number of sites is N, E is a set of edges representing the interaction relationship between sites, and W is a spatial weight matrix representing the site graph G, W∈R N×N , W is obtained by taking the distance weights between sites as the input of the edge, and the site graph G realizes information interaction between sites through convolution on the graph.
[0084] In another exemplary embodiment, in the spatial weight matrix, the weight of the edge connecting the i node and the j node is denoted as w i,j , w i,j Based on the geographical location of the site, it is calculated by the following formula:
[0085] ,
[0086] Among them, d i,j is the distance between two stations on the earth’s surface on the latitude and longitude grid. When composing a map, only the distance less than the distance threshold R is calculated. hThe weight of the edge between sites, R h =1000m, when d i,j Greater than 1000m and w i,j When w is less than 0.001, i,j is 0, the station and its own w i,j is 1.
[0087] In another exemplary embodiment, the soil moisture spatiotemporal prediction model includes two spatiotemporal convolution blocks, which capture the temporal dependency and the spatial dependency, and the fully connected layer obtains the soil moisture output by the model based on the features obtained by the two spatiotemporal convolution blocks according to the monitoring data input into the model.
[0088] Among them, each spatiotemporal convolution block contains two time-gated convolutional layers and a spatial graph convolutional layer in the middle of the two time-gated convolutional layers.
[0089] In yet another exemplary embodiment, in the first spatiotemporal convolution block, the first time-gated convolution layer has 3 input channels, the spatial graph convolution layer has 32 output channels, and the second time-gated convolution layer has 64 output channels;
[0090] In the second spatiotemporal convolution block, the first time-gated convolution layer has 64 input channels, the spatial graph convolution layer has 32 output channels, and the second time-gated convolution layer has 128 output channels.
[0091] In another exemplary embodiment, the time-gated convolutional layer includes a convolutional layer with width k. t The 1-D causal convolution layer of the kernel, in the upward data flow, the input of the 1-D causal convolution layer flows together with the output of the 1-D causal convolution layer to a gated linear unit connected behind the 1-D causal convolution layer as a nonlinearity,
[0092] For each site in the site graph G, during the temporal convolution, k input elements are explored without padding t neighbors, resulting in the sequence length being shortened by k each time t -1, the input of the temporal convolution at each site is regarded as a sequence of length M,
[0093] Among them, C i The channel is Y∈R M×Ci , convolution kernel Γ∈R Kt×Ci×2Co Designed to map the input Y to a single output element [PQ]∈R (M−Kt+1)×(2Co) , P and Q are split into two halves of equal-sized channels, and the time-gated convolution is defined as:
[0094] ,
[0095] Among them, P and Q are the inputs of the gate in the gated linear unit respectively, ⊙ represents the element-level Hadamard product, and the B-gate σ(Q) controls which current state of P is related to discovering both the component structure and dynamic variance in the time series.
[0096] In another exemplary embodiment, the preset historical time period is specifically the time points obtained every 4 hours in the past 3 days.
[0097] In yet another exemplary embodiment, the expected time specifically includes time points of the 4th hour, the 12th hour, the 24th hour, the 48th hour, the 144th hour, and the 192nd hour in the future.
[0098] Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the soil moisture spatiotemporal prediction device for geospatial sensor network and its corresponding units described above can refer to Figure 1 The description of the spatiotemporal prediction method of soil moisture for a geospatial sensor network in the corresponding embodiment will not be repeated here.
[0099] The above is a detailed introduction to the spatiotemporal prediction method, device, processing equipment and computer-readable storage medium for soil moisture for geospatial sensor networks provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for spatiotemporal prediction of soil moisture based on geospatial sensor networks, characterized in that: The method comprises: Acquire historical monitoring data of different soil moisture monitoring sites in the geospatial sensor network, wherein the historical monitoring data includes soil moisture data, soil temperature data and precipitation data monitored within a preset historical time period, and the historical monitoring data is data in the form of time series; Input the historical monitoring data into a pre-configured soil moisture spatiotemporal prediction model, wherein the soil moisture spatiotemporal prediction model extracts the spatial dependency between the different soil moisture detection sites by a graph convolutional neural network, and uses a gated recursive unit to extract the temporal dependency of the soil moisture measured sequence, and the soil moisture spatiotemporal prediction model is used to predict the soil moisture at an expected time corresponding to the monitoring data input into the model based on the spatial dependency and the temporal dependency; Extracting the soil moisture prediction value output by the soil moisture spatiotemporal prediction model; For the soil moisture spatiotemporal prediction model, the monitoring data of N stations at each time t are converted into graph signals at input, and the feature matrix X is obtained. t ∈R N×A , A is the number of features associated with each node; The spatial dependency is represented by a constructed site graph G, G = (V, E, W), V is a site set, the number of sites is N, E is a set of edges representing the interaction relationship between sites, W is a spatial weight matrix representing the site graph G, W∈R N×N , W is obtained by taking the distance weights between sites as the edge input, and the site graph G realizes information interaction between sites through convolution on the graph; In the spatial weight matrix, the weight of the edge connecting node i and node j is denoted as w i,j , w i,j Based on the geographical location of the site, it is calculated by the following formula: Among them, d i,j is the distance between two stations on the earth’s surface on the latitude and longitude grid. When composing a map, only the distance less than the distance threshold R is calculated. h The weight of the edge between sites, R h =1000m, when d i,j Greater than 1000m and w i,j When w is less than 0.001, i,j is 0, the station and its own w i,j is 1; The soil moisture spatiotemporal prediction model includes two spatiotemporal convolution blocks, which capture the temporal dependency and the spatial dependency, and a fully connected layer obtains the soil moisture output by the model based on the features obtained by the two spatiotemporal convolution blocks according to the monitoring data input into the model. Each of the spatiotemporal convolution blocks includes two time-gated convolution layers and a spatial graph convolution layer between the two time-gated convolution layers; In the first spatiotemporal convolution block, the first time-gated convolution layer has 3 input channels, the spatial graph convolution layer has 32 output channels, and the second time-gated convolution layer has 64 output channels; In the second spatiotemporal convolution block, the first time-gated convolution layer has 64 input channels, the spatial graph convolution layer has 32 output channels, and the second time-gated convolution layer has 128 output channels; The temporal gated convolutional layer contains a convolutional layer with width k. t The 1-D causal convolution layer of the kernel, in the upward direction of data flow, the input of the 1-D causal convolution layer flows together with the output of the 1-D causal convolution layer to a gated linear unit connected behind the 1-D causal convolution layer as a nonlinearity, For each site in the site graph G, during the temporal convolution, k input elements are explored without padding. t neighbors, resulting in the sequence length being shortened by k each time t -1, the input of the temporal convolution at each site is regarded as a sequence of length M, Among them, C i The channel is Y∈R M×Ci , convolution kernel Γ∈R Kt×Ci×2Co Designed to map the input Y to a single output element [PQ]∈R (M-Kt+1)×(2Co) , P and Q are split into two halves of equal-sized channels, and the time-gated convolution is defined as: P⊙σ(Q)∈R (M-Kt+1)×Co , Among them, P and Q are the inputs of the gate in the gated linear unit respectively, ⊙ represents the element-level Hadamard product, and the B-gate σ(Q) controls which current state of P is related to discovering both the component structure and the dynamic variance in the time series.
2. The method according to claim 1, characterized in that The preset historical time period specifically refers to time points obtained every 4 hours over the past 3 days.
3. The method according to claim 1, characterized in that The expected time specifically includes the time points of the 4th hour, the 12th hour, the 24th hour, the 48th hour, the 144th hour and the 192nd hour in the future.
4. A soil moisture spatiotemporal prediction device for a geospatial sensor network, characterized in that: The device comprises: An acquisition unit, used to acquire historical monitoring data of different soil moisture monitoring sites in the geospatial sensor network, wherein the historical monitoring data includes soil moisture data, soil temperature data and precipitation data monitored within a preset historical time period, and the historical monitoring data is data in the form of time series; A prediction unit, used for inputting the historical monitoring data into a pre-configured soil moisture spatiotemporal prediction model, wherein the soil moisture spatiotemporal prediction model extracts the spatial dependency between the different soil moisture detection sites by a graph convolutional neural network, and uses a gated recursive unit to extract the temporal dependency of the soil moisture measured sequence, and the soil moisture spatiotemporal prediction model is used for predicting the soil moisture at an expected time corresponding to the monitoring data input into the model based on the spatial dependency and the temporal dependency; An extraction unit, used to extract the soil moisture prediction value output by the soil moisture spatiotemporal prediction model; For the soil moisture spatiotemporal prediction model, the monitoring data of N stations at each time t are converted into graph signals at input, and the feature matrix X is obtained. t ∈R N×A , A is the number of features associated with each node; The spatial dependency is represented by a constructed site graph G, G = (V, E, W), V is a site set, the number of sites is N, E is a set of edges representing the interaction relationship between sites, W is a spatial weight matrix representing the site graph G, W∈R N×N , W is obtained by taking the distance weights between sites as the edge input, and the site graph G realizes information interaction between sites through convolution on the graph; In the spatial weight matrix, the weight of the edge connecting node i and node j is denoted as w i,j , w i,j Based on the geographical location of the site, it is calculated by the following formula: Among them, d i,j is the distance between two stations on the earth’s surface on the latitude and longitude grid. When composing a map, only the distance less than the distance threshold R is calculated. h The weight of the edge between sites, R h =1000m, when d i,j Greater than 1000m and w i,j When w is less than 0.001, i,j is 0, the station and its own w i,j is 1; The soil moisture spatiotemporal prediction model includes two spatiotemporal convolution blocks, which capture the temporal dependency and the spatial dependency, and a fully connected layer obtains the soil moisture output by the model based on the features obtained by the two spatiotemporal convolution blocks according to the monitoring data input into the model. Each of the spatiotemporal convolution blocks includes two time-gated convolution layers and a spatial graph convolution layer between the two time-gated convolution layers; In the first spatiotemporal convolution block, the first time-gated convolution layer has 3 input channels, the spatial graph convolution layer has 32 output channels, and the second time-gated convolution layer has 64 output channels; In the second spatiotemporal convolution block, the first time-gated convolution layer has 64 input channels, the spatial graph convolution layer has 32 output channels, and the second time-gated convolution layer has 128 output channels; The temporal gated convolutional layer contains a convolutional layer with width k. t The 1-D causal convolution layer of the kernel, in the upward direction of data flow, the input of the 1-D causal convolution layer flows together with the output of the 1-D causal convolution layer to a gated linear unit connected behind the 1-D causal convolution layer as a nonlinearity, For each site in the site graph G, during the temporal convolution, k input elements are explored without padding. t neighbors, resulting in the sequence length being shortened by k each time t -1, the input of the temporal convolution at each site is regarded as a sequence of length M, Among them, C i The channel is Y∈R M×Ci , convolution kernel Γ∈R Kt×Ci×2Co Designed to map the input Y to a single output element [PQ]∈R (M-Kt+1)×(2Co) , P and Q are split into two halves of equal-sized channels, and the time-gated convolution is defined as: P⊙σ(Q)∈R (M-Kt+1)×Co , Among them, P and Q are the inputs of the gate in the gated linear unit respectively, ⊙ represents the element-level Hadamard product, and the B-gate σ(Q) controls which current state of P is related to discovering both the component structure and the dynamic variance in the time series.
Citation Information
Patent Citations
Soil moisture prediction method and device
CN114118634A
Soil plough layer moisture and temperature prediction method based on deep learning
CN115017798A
Soil space temperature and humidity prediction method, device, equipment, medium and program product
CN118132964A
