Soil water content prediction method, device, equipment, medium and program product

By combining the spatial and channel attention modules to improve the ConvLSTM model, the problem of insufficient soil moisture prediction accuracy and robustness is solved, and the model's spatiotemporal variation feature retention ability and prediction accuracy in complex scenes are improved.

CN118569309AInactive Publication Date: 2024-08-30CHINA THREE GORGES CORPORATION

Patent Information

Application Number
CN202410655744.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-08-30
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The ConvLSTM model has poor model accuracy and robustness when predicting soil moisture content. Especially in large regional scales and complex scenes, the spatiotemporal variation characteristics cannot be fully preserved, resulting in poor prediction results.

Method used

The initial ConvLSTM prediction model is improved by combining the spatial attention module and the channel attention module, and the target ConvLSTM prediction model is constructed to enhance the robustness of the model and improve the accuracy of soil moisture prediction, taking into account factors related to the soil moisture change trend.

Benefits of technology

Without adding auxiliary data, the accuracy and robustness of soil moisture prediction are improved, the multi-dimensional correlation of soil moisture content in space, channel and time is fully utilized, and the prediction ability of the model is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118569309A
    Figure CN118569309A
Patent Text Reader

Abstract

The invention relates to the technical field of soil data analysis, and discloses a soil water content prediction method, device and equipment, a medium and a program product.The method comprises the steps that firstly, a historical soil information set including multiple pieces of soil water content data and multiple pieces of land surface parameter information of an area to be predicted in a historical time period is obtained; the initial ConvLSTM prediction model is improved in combination with the space attention module and the channel attention module to obtain the target ConvLSTM prediction model, so that the soil water content prediction precision can be improved under the condition of not adding auxiliary data, the spatial and temporal change characteristics of the soil water content in a complex scene can be reserved, and the robustness of the model is enhanced. Therefore, by implementing the method, the multi-dimensional characteristic correlation of the soil moisture content in space, channel and time can be fully played, and the prediction precision and robustness of the target ConvLSTM prediction model are further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of soil data analysis, and in particular to a soil moisture content prediction method, device, equipment, medium and program product. Background Art

[0002] Soil moisture (SM) plays an important role in the global circulation system, affecting the exchange of water, energy and carbon between the land surface and atmospheric processes. As abnormal climate change significantly affects evapotranspiration, drought and flood disasters, soil moisture, as one of the core components, can provide important guidance for scientific applications of high-precision prediction. The development of satellite remote sensing missions has made the detection range and time span of soil moisture content wider. Soil moisture based on microwave remote sensing has become the main data source for soil moisture production, with the advantages of all-weather monitoring and the ability to provide soil moisture observations below the surface (0-100 cm).

[0003] Currently, hydrological variables are usually simulated based on process models, such as land surface models, hydrological models, and earth system models. These models rely on governing equations of land-atmosphere feedbacks with complex mechanisms and auxiliary elements (precipitation, soil temperature, and evapotranspiration) from in situ observations. In addition, as one of the main models for soil moisture prediction, process-based models have limitations in the representation of key processes and human activities and are computationally expensive. With the continuous development of deep learning (DL) technology, the establishment of data-driven models without complex mechanism knowledge of physical models has shown great potential in improving prediction capabilities and better understanding and interpretation of land-atmosphere interactions. Among them, ConvLSTM is a relatively novel hydrological variable prediction model that has great potential in simultaneously capturing the temporal relationship and spatial characteristics of detection targets compared to separate convolutional neural networks (CNNs) and long short-term memory networks (LSTMs).

[0004] However, although ConvLSTM has been shown to have certain advantages over other different models in terms of the accuracy of prediction of hydrological variables and climate variables, it still has some limitations when considering the historical dynamic changes of soil moisture content. At the same time, the shortcomings of this model are also reflected in the fact that the model accuracy and robustness when the model is used for large-area (such as global) scale soil moisture prediction still need to be further optimized. Furthermore, the current research on soil moisture content only considers the soil moisture parameter with a single spatiotemporal relationship, and does not combine the influence of factors related to the trend of soil moisture content, such as soil temperature, evapotranspiration, rainfall, etc., which also leads to the problem of poor model accuracy and robustness when ConvLSTM is used for soil moisture prediction. Summary of the invention

[0005] In view of this, the present invention provides a soil moisture content prediction method, device, equipment, medium and program product to solve the problem of poor model accuracy and robustness when ConvLSTM is used for soil moisture content prediction.

[0006] In a first aspect, the present invention provides a method for predicting soil moisture content, the method comprising:

[0007] The initial ConvLSTM prediction model and the historical soil information set of the area to be predicted within the historical time period are obtained, and the soil information set includes multiple soil moisture content data and multiple land surface parameter information; based on the historical soil information set, the spatial attention module and the channel attention module are used to improve the initial ConvLSTM prediction model to obtain the target ConvLSTM prediction model; the target ConvLSTM prediction model is used to predict the soil moisture content of the area to be predicted within the prediction time period to obtain the soil moisture prediction result, and the prediction time period corresponds to the historical time period.

[0008] The soil moisture prediction method provided by the present invention first obtains a historical soil information set including multiple soil moisture data and multiple land surface parameter information of the area to be predicted in the historical time period, and then improves the initial ConvLSTM prediction model by combining the spatial attention module and the channel attention module to obtain the target ConvLSTM prediction model, which can not only improve the soil moisture prediction accuracy without adding auxiliary data, but also retain the spatiotemporal variation characteristics of soil moisture in complex scenes, and enhance the robustness of the model. Therefore, by implementing the present invention, the multidimensional characteristic correlation of soil moisture in space, channel and time can be fully utilized, thereby improving the prediction accuracy and robustness of the target ConvLSTM prediction model.

[0009] In an optional implementation, based on the historical soil information set, the initial ConvLSTM prediction model is improved using the spatial attention module and the channel attention module to obtain a target hydrological variable prediction model, including:

[0010] The first Encode structure of the initial ConvLSTM prediction model is obtained; based on the spatial attention module and the channel attention module, the first Encode structure is improved to obtain the target Encode structure; the historical soil information set is input into the target Encode structure for training until the target ConvLSTM prediction model is obtained.

[0011] The soil moisture prediction method provided by the present invention improves the first Encode structure of the initial ConvLSTM prediction model by combining the spatial attention module and the channel attention module to obtain the final target Encode structure for constructing the target ConvLSTM prediction model. The soil moisture prediction accuracy can be improved without adding auxiliary data, and the spatiotemporal variation characteristics of soil moisture content in complex scenes can be retained, thereby enhancing the robustness of subsequent models.

[0012] In an optional implementation, based on the spatial attention module and the channel attention module, the first Encode structure is improved to obtain a target Encode structure, including:

[0013] A spatial attention module and a channel attention module are added to the first Encode structure to obtain a second Encode structure; the second Encode structure is improved to obtain a target Encode structure.

[0014] The soil moisture prediction method provided by the present invention makes preliminary improvements to the first Encode structure of the initial ConvLSTM prediction model by combining the spatial attention module and the channel attention module, which can improve the soil moisture prediction accuracy without adding auxiliary data, and can also retain the spatiotemporal variation characteristics of soil moisture in complex scenes, and enhance the robustness of subsequent models. Further, based on the improved first Encode structure, further improvements are made, and the final target Encode structure is obtained for the construction of the target ConvLSTM prediction model, which further provides support for improving the prediction accuracy and robustness of the target ConvLSTM prediction model.

[0015] In an optional implementation, the second Encode structure is improved to obtain a target Encode structure, including:

[0016] A first ConvLSTM layer and a second ConvLSTM layer are set in the second Encode structure; the number of filters of the first ConvLSTM layer is set to a first preset value, and the convolution kernel size of the first ConvLSTM layer is set to a second preset value, to obtain a third ConvLSTM layer; the number of filters of the second ConvLSTM layer is set to a third preset value, and the convolution kernel size of the second ConvLSTM layer is set to a fourth preset value, to obtain a fourth ConvLSTM layer; based on the third ConvLSTM layer and the fourth ConvLSTM layer, a target Encode structure is determined.

[0017] The soil moisture prediction method provided by the present invention obtains the final target Encode structure for constructing the target ConvLSTM prediction model by setting the number of filters and the convolution kernel size of the two ConvLSTM layers in the second Encode structure, which can ensure that sufficient texture features are obtained in the coarse change image and the corresponding detail image, and further provides support for improving the prediction accuracy and robustness of the target ConvLSTM prediction model.

[0018] In an optional implementation, the historical soil information set is input into the target Encode structure for training until a target ConvLSTM prediction model is obtained, including:

[0019] Obtain a hyperbolic tangent function; use the hyperbolic tangent function as an activation function, and input the historical soil information set into the target Encode structure for training until a target ConvLSTM prediction model is obtained.

[0020] The soil moisture prediction method provided by the present invention does not use filling and hole convolution operations when inputting the historical soil information set into the target Encode structure for training, but uses the hyperbolic tangent function as the activation function, thereby improving the prediction accuracy and robustness of the target ConvLSTM prediction model.

[0021] In a second aspect, the present invention provides a soil moisture content prediction device, the device comprising:

[0022] The acquisition module is used to obtain the initial ConvLSTM prediction model and the historical soil information set of the area to be predicted within the historical time period, and the soil information set includes multiple soil moisture content data and multiple land surface parameter information; the improvement module is used to improve the initial ConvLSTM prediction model based on the historical soil information set using the spatial attention module and the channel attention module to obtain the target ConvLSTM prediction model; the prediction module is used to predict the soil moisture content of the area to be predicted within the prediction time period using the target ConvLSTM prediction model to obtain the soil moisture prediction result, and the prediction time period corresponds to the historical time period.

[0023] In an optional embodiment, the improvement module includes:

[0024] The acquisition submodule is used to obtain the first Encode structure of the initial ConvLSTM prediction model; the improvement submodule is used to improve the first Encode structure based on the spatial attention module and the channel attention module to obtain the target Encode structure; the training submodule is used to input the historical soil information set into the target Encode structure for training until the target ConvLSTM prediction model is obtained.

[0025] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the soil moisture prediction method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0026] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the soil moisture prediction method of the first aspect or any corresponding embodiment thereof.

[0027] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions for causing a computer to execute the soil moisture prediction method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0029] Figure 1 is a schematic flow chart of a soil moisture content prediction method according to an embodiment of the present invention;

[0030] Figure 2 is a schematic flow chart of another soil moisture prediction method according to an embodiment of the present invention;

[0031] Figure 3 is a structural block diagram of a soil moisture prediction device according to an embodiment of the present invention;

[0032] Figure 4 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0033] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0034] An embodiment of the present invention provides a soil moisture prediction method, which improves the initial ConvLSTM prediction model by combining a spatial attention module and a channel attention module to achieve the effect of improving the prediction accuracy and robustness of the target ConvLSTM prediction model.

[0035] According to an embodiment of the present invention, an embodiment of a soil moisture content prediction method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0036] In this embodiment, a soil moisture content prediction method is provided, which can be used in electronic devices such as computers, mobile phones, tablet computers, etc. Figure 1 is a flow chart of a soil moisture prediction method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0037] Step S101, obtaining an initial ConvLSTM prediction model and a historical soil information set of the area to be predicted within a historical time period.

[0038] Among them, the initial ConvLSTM prediction model represents a relatively novel hydrological variable prediction model, which has great potential in simultaneously capturing the temporal relationship and spatial characteristics of detection targets compared with the separate convolutional neural network (CNN) and long short-term memory network (LSTM).

[0039] Specifically, the latitude and longitude range of the area to be predicted in this embodiment may cover areas including various climate types, seasonal characteristics, and temperature changes.

[0040] Furthermore, the amount of soil information obtained for the area to be predicted is sufficient, which provides support for avoiding data overfitting in the subsequent model training process.

[0041] Furthermore, the soil information set represents information obtained by integrating the land surface model estimation and SMAP brightness temperature observations through a spatially distributed ensemble Kalman filter, and may include multiple soil moisture content data and multiple land surface parameter information. The land surface parameter information may include soil temperature, surface temperature and other information.

[0042] In one example, the SMAP L4 soil moisture product is used as the soil information set, which includes the top 5 cm soil moisture with a relatively low standard deviation of only ±4 cm3 / cm3 and other land surface parameters such as soil temperature and surface temperature.

[0043] Furthermore, the spatial resolution of this product is about 9 km and the temporal resolution is 3 hours.

[0044] Step S102, based on the historical soil information set, the initial ConvLSTM prediction model is improved using the spatial attention module and the channel attention module to obtain the target ConvLSTM prediction model.

[0045] Specifically, the existing ConvLSTM prediction model has poor model accuracy and robustness when used for soil moisture prediction. Therefore, in this embodiment, the initial ConvLSTM prediction model is improved using the spatial attention module and the channel attention module, which can not only improve the soil moisture prediction accuracy without adding auxiliary data, but also retain the spatiotemporal variation characteristics of soil moisture content in complex scenes.

[0046] At the same time, in the improvement process, the historical soil information set containing multiple soil moisture data and multiple land surface parameter information was combined for model training, and the land surface parameter information related to the changing trend of soil moisture content was taken into account, which improved the prediction accuracy and robustness of the target ConvLSTM prediction model.

[0047] Step S103, using the target ConvLSTM prediction model to predict the soil moisture content of the prediction area within the prediction time period, to obtain a soil moisture prediction result.

[0048] The prediction time period corresponds to the historical time period. For example, if the historical time period is the past 3 consecutive days, 5 consecutive days, and 7 consecutive days, then the prediction time period is the future 3 consecutive days, 5 consecutive days, and 7 consecutive days.

[0049] Specifically, the improved ConvLSTM prediction model can be used to predict the soil moisture content of the area to be predicted within the prediction time period.

[0050] The soil moisture prediction method provided in this embodiment first obtains a historical soil information set including multiple soil moisture data and multiple land surface parameter information of the area to be predicted in the historical time period, and then improves the initial ConvLSTM prediction model by combining the spatial attention module and the channel attention module to obtain the target ConvLSTM prediction model, which can not only improve the soil moisture prediction accuracy without adding auxiliary data, but also retain the spatiotemporal variation characteristics of soil moisture in complex scenes, and enhance the robustness of the model. Therefore, by implementing the present invention, the multidimensional characteristic correlation of soil moisture in space, channel and time can be fully utilized, thereby improving the prediction accuracy and robustness of the target ConvLSTM prediction model.

[0051] In this embodiment, a soil moisture content prediction method is provided, which can be used in electronic devices such as computers, mobile phones, tablet computers, etc. Figure 2 is a flow chart of a soil moisture prediction method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0052] Step S201, obtain the initial ConvLSTM prediction model and the historical soil information set of the area to be predicted in the historical time period. Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.

[0053] Step S202: Based on the historical soil information set, the initial ConvLSTM prediction model is improved using the spatial attention module and the channel attention module to obtain the target ConvLSTM prediction model.

[0054] Specifically, the above step S202 includes:

[0055] Step S2021, obtain the first Encode structure of the initial ConvLSTM prediction model.

[0056] Specifically, the Encode structure is the encoder structure of the initial ConvLSTM prediction model.

[0057] Step S2022: Based on the spatial attention module and the channel attention module, the first Encode structure is improved to obtain the target Encode structure.

[0058] Specifically, the first Encode structure is improved by combining the spatial attention module and the channel attention module, so that in the improved target Encode structure, after each ConvLSTM operation, the output features are respectively operated by the channel attention module and the spatial attention module. The spatial attention module and the channel attention module can not only improve the soil moisture prediction accuracy without adding auxiliary data, but also retain the spatiotemporal variation characteristics of soil moisture content in complex scenes.

[0059] In some optional implementations, the above step S2022 includes:

[0060] Step a1, add a spatial attention module and a channel attention module to the first Encode structure to obtain a second Encode structure.

[0061] Step a2, improving the second Encode structure to obtain a target Encode structure.

[0062] Specifically, first, a spatial attention module and a channel attention module are added to the first Encode structure.

[0063] Among them, the spatial attention module and the channel attention module can be combined together in parallel or sequentially, or they can be arranged in a sequential combination, that is, the channel attention module operation is performed first, and then the spatial attention module operation is performed.

[0064] Furthermore, by improving the second Encode structure after adding the spatial attention module and the channel attention module, the final target Encode structure for model construction can be obtained.

[0065] In some optional implementations, the above step a2 includes:

[0066] Step a21, setting the first ConvLSTM layer and the second ConvLSTM layer in the second Encode structure.

[0067] Step a22, setting the number of filters of the first ConvLSTM layer to a first preset value, and setting the convolution kernel size of the first ConvLSTM layer to a second preset value, to obtain a third ConvLSTM layer.

[0068] Step a23, setting the number of filters of the second ConvLSTM layer to the third preset value, and setting the convolution kernel size of the second ConvLSTM layer to the fourth preset value, to obtain a fourth ConvLSTM layer.

[0069] Step a24, based on the third ConvLSTM layer and the fourth ConvLSTM layer, determine the target Encode structure.

[0070] Specifically, two ConvLSTM layers are set in the second Encode structure, and the number of filters in the first ConvLSTM layer is set to 16, and the convolution kernel size is set to 3.

[0071] Furthermore, the number of filters in the second ConvLSTM layer is set to 32 and the convolution kernel size is set to 3.

[0072] The above settings can ensure that sufficient texture features are obtained in the coarse change image and the corresponding detail image, so that the improved target Encode structure can better construct the target ConvLSTM prediction model.

[0073] Step S2023, input the historical soil information set into the target Encode structure for training until the target ConvLSTM prediction model is obtained.

[0074] Specifically, the acquired historical soil information set is input into the improved target Encode structure for iterative training, and the final target ConvLSTM prediction model for soil moisture content prediction can be obtained.

[0075] In some optional implementations, the above step S2023 includes:

[0076] Step b1, obtaining the hyperbolic tangent function.

[0077] In step b2, the hyperbolic tangent function is used as the activation function, and the historical soil information set is input into the target Encode structure for training until the target ConvLSTM prediction model is obtained.

[0078] Specifically, the hyperbolic tangent function is a type of hyperbolic function, usually represented by tanh.

[0079] In this embodiment, when the historical soil information set is input into the improved target Encode structure for model training, the hyperbolic tangent function is used as the activation function, so that the trained target ConvLSTM prediction model does not need to use filling and hole convolution operations, thereby improving the prediction accuracy and robustness of the target ConvLSTM prediction model.

[0080] Step S203: Use the target ConvLSTM prediction model to predict the soil moisture content of the prediction area within the prediction time period to obtain the soil moisture prediction result. Figure 1 Step S103 of the illustrated embodiment will not be described in detail here.

[0081] The soil moisture prediction method provided in this embodiment first obtains a historical soil information set including multiple soil moisture data and multiple land surface parameter information of the area to be predicted in the historical time period. Secondly, the first Encode structure of the initial ConvLSTM prediction model is preliminarily improved by combining the spatial attention module and the channel attention module, which can improve the soil moisture prediction accuracy without adding auxiliary data, and can also retain the spatiotemporal variation characteristics of soil moisture in complex scenes. Furthermore, by setting the number of filters and the convolution kernel size of the two ConvLSTM layers in the second Encode structure to obtain the final target Encode structure, it can ensure that sufficient texture features are obtained in the coarse change image and the corresponding detail image. Finally, by inputting the historical soil information set into the improved target Encode structure for training and obtaining the target ConvLSTM prediction model, the prediction accuracy and robustness of the target ConvLSTM prediction model are improved.

[0082] In the present embodiment, a soil moisture content prediction device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware is also possible and conceived.

[0083] This embodiment provides a soil moisture prediction device, such as Figure 3 As shown, the device comprises:

[0084] The acquisition module 301 is used to acquire the initial ConvLSTM prediction model and a historical soil information set of the area to be predicted within a historical time period, wherein the soil information set includes a plurality of soil moisture content data and a plurality of land surface parameter information.

[0085] The improvement module 302 is used to improve the initial ConvLSTM prediction model based on the historical soil information set using a spatial attention module and a channel attention module to obtain a target ConvLSTM prediction model.

[0086] The prediction module 303 is used to predict the soil moisture content of the area to be predicted within the prediction time period using the ConvLSTM prediction model to obtain a soil moisture prediction result, and the prediction time period corresponds to the historical time period.

[0087] In some optional implementations, the improvement module 302 includes:

[0088] The acquisition submodule is used to obtain the first Encode structure of the initial ConvLSTM prediction model.

[0089] An improvement submodule is used to improve the first Encode structure based on the spatial attention module and the channel attention module to obtain a target Encode structure.

[0090] The training submodule is used to input the historical soil information set into the target Encode structure for training until the target ConvLSTM prediction model is obtained.

[0091] In some optional implementations, the improvement submodule includes:

[0092] An adding unit is used to add the spatial attention module and the channel attention module to the first Encode structure to obtain a second Encode structure.

[0093] An improving unit is used to improve the second Encode structure to obtain the target Encode structure.

[0094] In some optional embodiments, the improvement unit includes:

[0095] The first setting subunit is used to set the first ConvLSTM layer and the second ConvLSTM layer in the second Encode structure.

[0096] The second setting subunit is used to set the number of filters of the first ConvLSTM layer to a first preset value, and to set the convolution kernel size of the first ConvLSTM layer to a second preset value, so as to obtain a third ConvLSTM layer.

[0097] The third setting subunit is used to set the number of filters of the second ConvLSTM layer to a third preset value, and to set the convolution kernel size of the second ConvLSTM layer to a fourth preset value, so as to obtain a fourth ConvLSTM layer.

[0098] A determination subunit is used to determine the target Encode structure based on the third ConvLSTM layer and the fourth ConvLSTM layer.

[0099] In some optional embodiments, the training submodule includes:

[0100] An acquisition unit is used to acquire a hyperbolic tangent function.

[0101] A training unit is used to use the hyperbolic tangent function as an activation function and input the historical soil information set into the target Encode structure for training until the target ConvLSTM prediction model is obtained.

[0102] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0103] The soil moisture prediction device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0104] The embodiment of the present invention also provides a computer device having the above Figure 3 The soil moisture prediction device shown.

[0105] See also Figure 4 , Figure 4 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 4As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 4 A processor 10 is taken as an example.

[0106] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0107] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0108] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0109] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0110] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0111] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0112] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0113] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A soil moisture prediction method, characterized in that: The method comprises: Acquire an initial ConvLSTM prediction model and a historical soil information set of the area to be predicted within a historical time period, wherein the soil information set includes a plurality of soil moisture content data and a plurality of land surface parameter information; Based on the historical soil information set, the initial ConvLSTM prediction model is improved by using a spatial attention module and a channel attention module to obtain a target ConvLSTM prediction model; The target ConvLSTM prediction model is used to predict the soil moisture content of the area to be predicted within a prediction time period to obtain a soil moisture prediction result, and the prediction time period corresponds to the historical time period.

2. The method according to claim 1, characterized in that: Based on the historical soil information set, the initial ConvLSTM prediction model is improved by using a spatial attention module and a channel attention module to obtain a target hydrological variable prediction model, including: Obtain the first Encode structure of the initial ConvLSTM prediction model; Based on the spatial attention module and the channel attention module, the first Encode structure is improved to obtain a target Encode structure; The historical soil information set is input into the target Encode structure for training until the target ConvLSTM prediction model is obtained.

3. The method according to claim 2, characterized in that Based on the spatial attention module and the channel attention module, the first Encode structure is improved to obtain a target Encode structure, including: Add the spatial attention module and the channel attention module to the first Encode structure to obtain a second Encode structure; The second Encode structure is improved to obtain the target Encode structure.

4. The method according to claim 3, characterized in that The second Encode structure is improved to obtain the target Encode structure, including: Setting a first ConvLSTM layer and a second ConvLSTM layer in the second Encode structure; The number of filters of the first ConvLSTM layer is set to a first preset value, and the convolution kernel size of the first ConvLSTM layer is set to a second preset value, to obtain a third ConvLSTM layer; The number of filters of the second ConvLSTM layer is set to a third preset value, and the convolution kernel size of the second ConvLSTM layer is set to a fourth preset value, to obtain a fourth ConvLSTM layer; Based on the third ConvLSTM layer and the fourth ConvLSTM layer, the target Encode structure is determined.

5. The method according to claim 2, characterized in that: Inputting the historical soil information set into the target Encode structure for training until the target ConvLSTM prediction model is obtained, including: Get the hyperbolic tangent function; The hyperbolic tangent function is used as an activation function, and the historical soil information set is input into the target Encode structure for training until the target ConvLSTM prediction model is obtained.

6. A soil moisture prediction device, characterized in that: The device comprises: An acquisition module is used to acquire an initial ConvLSTM prediction model and a historical soil information set of the area to be predicted within a historical time period, wherein the soil information set includes a plurality of soil moisture content data and a plurality of land surface parameter information; An improvement module, used for improving the initial ConvLSTM prediction model based on the historical soil information set by using a spatial attention module and a channel attention module to obtain a target ConvLSTM prediction model; The prediction module is used to predict the soil moisture content of the area to be predicted within a prediction time period using the ConvLSTM prediction model to obtain a soil moisture prediction result, and the prediction time period corresponds to the historical time period.

7. The device according to claim 6, characterized in that The improved module includes: An acquisition submodule, used to acquire a first Encode structure of the initial ConvLSTM prediction model; An improvement submodule, used for improving the first Encode structure based on the spatial attention module and the channel attention module to obtain a target Encode structure; The training submodule is used to input the historical soil information set into the target Encode structure for training until the target ConvLSTM prediction model is obtained.

8. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the soil moisture prediction method according to any one of claims 1 to 5 by executing the computer instructions.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the soil moisture content prediction method according to any one of claims 1 to 5.

10. A computer program product, characterized in that The method comprises computer instructions for causing a computer to execute the soil moisture content prediction method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Soil water content prediction method and device, equipment and storage medium

    CN117609767A

  • Short-term sea surface temperature prediction method and system based on CSA-ConvLSTM model

    CN117786396A

  • Remote sensing vegetation index prediction method coupling convolutional long short-term memory network and attention

    CN117933469A

Cited By

  • Deep learning-based less-data small-watershed water level forecasting method

    CN120744513A

  • AttnConvLSTM soil moisture content intelligent forecasting method fused with CLDAS

    CN120873509A

  • Agricultural water efficiency dynamic monitoring and optimizing system based on machine learning

    CN121146182A

  • Machine learning based dynamic monitoring and optimization system for agricultural water efficiency

    CN121146182B