Progressive feature set based soil moisture prediction method with multi-model comparison

By constructing a progressive feature set and comparing multiple models, combined with the water balance principle and machine learning model, the problem of insufficient physical rationality and data fitting accuracy in soil moisture prediction was solved, and high-precision soil moisture prediction was achieved in complex environments.

CN123178941APending Publication Date: 2026-11-27NANJING HYDRAULIC RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611691527.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-29
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies struggle to balance physical plausibility and data fitting accuracy in soil moisture prediction, especially in complex and dynamically changing farmland hydrological environments, where prediction results suffer from systematic cumulative errors and insufficient generalization ability.

Method used

A method based on progressive feature set construction and multi-model comparison is adopted. By combining meteorological data, measured soil data and crop phenological data, the physical soil moisture content is calculated recursively through the water balance principle, and machine learning models are used for prediction. Appropriate lag order and feature set are selected to construct a time series feature set to improve prediction accuracy.

Benefits of technology

It improves the robustness and generalization ability of time series prediction models under complex environmental conditions, takes into account both hydrophysical mechanism constraints and data fitting accuracy, and provides high-precision soil moisture prediction results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178941A_ABST
    Figure CN123178941A_ABST
Patent Text Reader

Abstract

The application provides a soil moisture content prediction method based on progressive feature set construction and multi-model comparison, comprising: acquiring multi-source time series data of a target area; calculating meteorological features based on the multi-source time series data, and recursively calculating physical simulation soil water content as physical baseline data based on the principle of water balance; based on a pre-determined lag order selection rule, constructing a time series feature set using the multi-source time series data and the physical baseline data; determining a prediction target and a prediction architecture, inputting the time series feature set into a pre-trained machine learning model for prediction to obtain a target prediction value; and based on the target prediction value and a result synthesis rule corresponding to the prediction architecture, calculating a final soil water content prediction result. The application takes into account hydrological physical mechanism constraints and data fitting accuracy, and improves the robustness and generalization ability of the time series prediction model under complex environmental conditions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of agricultural information technology and hydrological forecasting, and in particular to a method for predicting soil moisture based on progressive feature set construction and multi-model comparison. Background Technology

[0002] Soil moisture is a state variable that drives surface hydrological cycles, energy exchange, and crop physiological water consumption. Achieving high-precision soil moisture content prediction over time is of scientific value and provides technical support for revealing the patterns of farmland water receding, optimizing regional water resource allocation and scheduling, and guiding dynamic drought assessment.

[0003] Currently, the prediction of soil moisture evolution mainly relies on two major technical approaches: one is the physical hydrodynamic simulation method based on meteorological elements such as precipitation and evapotranspiration and soil hydraulic parameters; the other is the data-driven method that uses historical observation data to drive machine learning algorithms for time-series fitting. In practical applications, physical simulation methods heavily depend on complex parameterization schemes, and when faced with spatial heterogeneity of soil and micro-topographic changes, they are prone to systematic cumulative errors due to the difficulty in accurately calibrating parameters. While data-driven methods have strong fitting capabilities, they lack the boundary constraints of physical mechanisms, and when dealing with long-series environmental data with strong non-stationarity and abrupt changes, their generalization ability needs improvement, and the prediction results may violate the basic water balance law.

[0004] Existing methods struggle to balance the physical plausibility of prediction results with the accuracy of deep data fitting when dealing with complex and dynamically changing farmland hydrological environments. Therefore, there is an urgent need in this field to develop a prediction method that can improve the robustness and adaptability of time-series predictions under complex conditions, meeting the engineering requirements for high-precision continuous monitoring. Summary of the Invention

[0005] The technical problem to be solved by the present invention is to provide an improved technical solution for a soil moisture prediction method based on progressive feature set construction and multi-model comparison.

[0006] To solve the above-mentioned technical problems, the present invention adopts the following technical solution: A method for predicting soil moisture based on progressive feature set construction and multi-model comparison includes: Acquire multi-source time series data for the target area. The multi-source time series data should include at least meteorological data, measured soil data, crop phenological data, and physically simulated soil moisture content. Meteorological characteristics representing meteorological driving forces and crop water consumption status are calculated based on multi-source time series data, and the physical simulation soil moisture content is recursively calculated based on the water balance principle, and the physical simulation soil moisture content is used as the physical baseline data. Based on a predetermined lag order selection rule, a time series feature set is constructed using multi-source time series data, meteorological features, and physical baseline data; Determine the prediction target and the corresponding prediction architecture, input the time series feature set into the pre-trained machine learning model for prediction, and obtain the target prediction value; Based on the result synthesis rules corresponding to the target predicted value and the prediction architecture, the final soil moisture content prediction result is calculated.

[0007] The daily physical simulation of soil moisture content is calculated recursively based on the water balance principle, specifically including: The measured soil data from the first day of the time series was used as the initial soil moisture content. Calculate effective precipitation based on precipitation data; The effective precipitation and crop evapotranspiration are divided by the root depth to convert into volumetric water content increments, which are then added to the physical simulation soil water content of the previous day to obtain the temporary water content without drainage constraints. The temporary moisture content is subject to threshold constraints based on preset field capacity and wilting moisture content: when the temporary moisture content exceeds the field capacity, the excess is discharged as deep infiltration, and the physical simulation soil moisture content of the day is set as the field capacity; when the temporary moisture content is lower than the wilting moisture content, the physical simulation soil moisture content of the day is set as the wilting moisture content; otherwise, the physical simulation soil moisture content of the day is set as the temporary moisture content.

[0008] Effective precipitation is calculated based on precipitation data, specifically including: Obtain the physical simulation soil moisture content of the previous day, compare it with the field water holding capacity, and take the smaller value as the effective early soil moisture content; Soil relative moisture is calculated based on effective pre-weaning moisture content, wilting moisture content, and field capacity. Based on the preset minimum infiltration efficiency coefficient, the dynamic infiltration efficiency coefficient is obtained by interpolation calculation combined with the relative soil moisture. When the effective early stage water content is equal to the wilting water content, the dynamic infiltration efficiency coefficient is 1; when the effective early stage water content is equal to the field capacity, the dynamic infiltration efficiency coefficient is equal to the minimum infiltration efficiency coefficient. Multiplying the dynamic infiltration efficiency coefficient by the precipitation data yields the effective precipitation for the day.

[0009] Based on statistical significance, partial autocorrelation coefficients are screened to determine the lag order that has significant autocorrelation with the target sequence, specifically including: The significance threshold of the partial autocorrelation coefficient is determined based on the effective sample size of the target sequence; The lag order corresponding to the partial autocorrelation coefficient with an absolute value greater than the significance threshold is included in the candidate lag set; The number of lag orders in the candidate lag set is constrained: if the number of lag orders in the candidate lag set exceeds the preset maximum value, the preset maximum number of lag orders with the largest absolute value of the partial autocorrelation coefficient is retained; if the number of lag orders in the candidate lag set is lower than the preset minimum value, the first lag and the other lag order with the largest absolute value of the partial autocorrelation coefficient are retained, thus obtaining the selected lag order set.

[0010] The soil measurement data for the first day of the time series was obtained as the initial soil moisture content, specifically including: Determine whether valid soil measurement data exists for the first day of the time series; If present, extract it as the initial soil moisture content; If missing, the calculation is performed by multiplying the field water holding capacity and the preset empirical reduction factor, and the result is used as the initial soil moisture content to ensure the continuity of the recursive calculation.

[0011] Calculating the partial autocorrelation coefficient of the target sequence at different lag orders specifically includes: When calculating the partial autocorrelation coefficient corresponding to the current lag order, the linear effects of all intermediate lag terms between the target sequence at the current time and the current lag order are eliminated in advance. The conditional correlation coefficient after removing the linear effect of intermediate lag terms is used as the partial autocorrelation coefficient for the current lag order.

[0012] The beneficial effects of this invention are as follows: This invention balances the constraints of hydrophysical mechanisms with the accuracy of data fitting, thereby improving the robustness and generalization ability of time series prediction models under complex environmental conditions. Attached Figure Description

[0013] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0014] Figure 1 A schematic diagram of the overall process of the soil moisture prediction method based on progressive feature set construction and multi-model comparison provided in the embodiments of the present invention; Figure 2 A flowchart for recursively calculating daily physical simulation soil moisture content based on the water balance principle, provided for embodiments of the present invention; Figure 3 A flowchart for calculating effective precipitation based on precipitation data provided in an embodiment of the present invention; Figure 4 A flowchart illustrating the direct prediction architecture provided in an embodiment of the present invention. Detailed Implementation

[0015] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0016] Example 1: This embodiment provides a soil moisture prediction method based on progressive feature set construction and multi-model comparison, such as... Figure 1 As shown, the method includes the following steps 101-105: Step 101: Obtain multi-source time series data for the target area. The multi-source time series data shall include at least meteorological data, measured soil data, crop phenological data, and physically simulated soil moisture content.

[0017] Specifically, multi-source time series data constitute the original driving force of the prediction model of this invention. Meteorological data can include daily maximum and minimum temperatures, precipitation, relative humidity, wind speed, and sunshine duration, among other conventional meteorological elements. Soil measurement data specifically represents historical soil moisture content observations collected by sensors deployed within the target area, as well as soil moisture characteristic parameters and hydrological indicators. Crop phenological data is used to characterize the physiological state information of crops at different stages of their growth cycle within the target area.

[0018] In this embodiment, the daily single-step advance prediction mode is used as an example for explanation.

[0019] Specifically, when making a prediction at time step t, the system uses known meteorological data up to and including time step t, as well as known measured soil data up to and including time step t-1, to extrapolate and calculate the soil moisture content at time step t. The meteorological data at time step t can be obtained from real-time observations at a weather station, while the soil moisture content at time step t is an unknown quantity to be predicted.

[0020] In this mode, the physical water balance model can recursively calculate the physically simulated soil moisture content at time step t based on meteorological data at time step t. However, the input features of the machine learning model only include historical lag information up to time step t-1. This single-step advance prediction setting helps avoid the error accumulation problem caused by using predicted values ​​as inputs for the next time step in multi-step recursive prediction scenarios, ensuring the rigor and stability of the prediction model built based on time-series features. After obtaining the above raw data, conventional data cleaning and imputation algorithms in this field can be used to preprocess missing and outlier values ​​to ensure the continuity and reliability of the data sequence.

[0021] Step 102: Calculate meteorological characteristics representing meteorological driving forces and crop water consumption status based on multi-source time series data, and recursively calculate the physical simulation soil moisture content based on the water balance principle, using the physical simulation soil moisture content as the physical baseline data.

[0022] In this embodiment, the calculation of meteorological characteristics aims to transform raw basic meteorological elements into high-dimensional physical quantities that reflect the contradiction between water supply and demand in farmland. For example, characteristics such as solar radiation, reference evapotranspiration, and effective accumulated temperature can be calculated using meteorological data, and crop evapotranspiration can be further calculated by combining crop phenological data. These meteorological characteristics reflect the driving force of external environment on soil moisture consumption. Based on this, using the principle of water balance, combined with precipitation replenishment and evapotranspiration consumption, the dynamic changes of soil moisture are calculated daily over time to obtain the physically simulated soil moisture content. This physically simulated soil moisture content serves as physical baseline data, and its role is to capture the main trend and seasonal fluctuations of soil moisture over time using physical hydrodynamic mechanisms. By introducing physical baseline data, a physically meaningful prior reference is provided for subsequent data-driven models, reducing the fitting difficulty of data-driven models when facing complex and non-stationary environments.

[0023] Step 103: Based on the predetermined lag order selection rule, construct a time series feature set using multi-source time series data, meteorological features, and physical baseline data.

[0024] In this embodiment, the construction of the time-series feature set is to enable the machine learning model to learn the memory effect and decay pattern of soil moisture over time. Specifically, the lag order selection rule is used to determine which time steps in the historical sequence need to be extracted as input features for the current prediction time. This rule allows the extraction of historical lag terms that are significantly correlated with the current prediction target from multi-source time-series data and physical baseline data. By combining these lag terms with the meteorological and phenological characteristics of the current time, a time-series feature set containing multi-dimensional spatiotemporal information can be constructed.

[0025] In some alternative implementations, the hysteresis order selection rule can be fixed based on experience or adaptively selected based on statistical correlation to suit the hydraulic response characteristics of different soil textures.

[0026] Step 104: Determine the prediction target and the corresponding prediction architecture, input the time series feature set into the pre-trained machine learning model for prediction, and obtain the target prediction value.

[0027] Depending on the application scenario and accuracy requirements, this method can select different prediction architectures. The prediction architecture determines the data flow and final fitting target of the prediction system. For example, the prediction target can be the absolute value of soil moisture content itself, or a systematic bias that the physical model fails to capture. After determining the specific prediction architecture, the aforementioned constructed time-series feature set is used as input, and a pre-trained machine learning model is invoked to perform the forward inference process. The machine learning model can be implemented using mature regression prediction algorithms such as random forest, linear regression, or support vector machine. Through nonlinear mapping and feature interaction calculations within the model, the target predicted value corresponding to the selected prediction architecture is output.

[0028] Step 105: Based on the result synthesis rules corresponding to the target predicted value and the prediction architecture, the final soil moisture content prediction result is calculated.

[0029] Correspondingly, the result synthesis rule is the post-processing step corresponding to the aforementioned prediction architecture. Since different prediction architectures set different prediction targets, the physical meanings represented by the target prediction values ​​output by the machine learning model also differ. Therefore, it is necessary to use the result synthesis rule to convert or restore the target prediction values ​​to actual soil moisture content indicators. For example, if the prediction target is set as the absolute value of soil moisture content, the synthesis rule manifests as an output mapping; if the prediction target is set as other intermediate variables, the synthesis rule manifests as combining the target prediction values ​​with physical baseline data through mathematical operations. Through the above steps, a complete closed loop is completed from multi-source data input to the final soil moisture prediction result output, providing reliable data support for precision irrigation of farmland and drought early warning.

[0030] Example 2 This embodiment provides a basic method for calculating physical characteristics and recursively calculating water balance. It calculates meteorological characteristics representing meteorological driving forces and crop water consumption based on multi-source time series data, and recursively calculates physically simulated soil moisture content based on the water balance principle. Specifically, it includes: Solar radiation, reference evapotranspiration, and effective accumulated temperature are calculated based on meteorological data; crop evapotranspiration is calculated by combining reference evapotranspiration and crop phenological data, and solar radiation, reference evapotranspiration, effective accumulated temperature, and crop evapotranspiration are used as meteorological characteristics.

[0031] Specifically, to obtain the various indicators characterizing meteorological driving forces, standard algorithms are used to process basic meteorological elements. For solar radiation, the Angstrom-Prescott standard formula is used to process meteorological data such as sunshine duration; for reference evapotranspiration, the FAO-56 Penman-Monteith standard formula is used to process meteorological elements such as temperature, humidity, wind speed, and solar radiation; for effective accumulated temperature, in this embodiment, a conventional simple mean method, such as the rectangular method, can be used for calculation, that is, the difference between the daily average temperature and the base temperature is accumulated.

[0032] After obtaining the reference evapotranspiration, crop evapotranspiration is calculated by combining it with crop phenological data for the target area; that is, the product of the reference evapotranspiration and the crop coefficient. The crop coefficient, and the root depth coefficient involved in subsequent calculations, are obtained from the crop phenological data using a lookup table method. As an optional specific representation, corresponding empirical parameter values ​​are assigned to the crop coefficient and root depth coefficient according to different phenological stages (e.g., sowing period, emergence period, overwintering period, jointing period).

[0033] According to one aspect of this application, the daily physical simulation soil moisture content is recursively calculated based on the water balance principle, such as... Figure 2 As shown, it specifically includes: ① Obtain the measured soil data for the first day of the time series as the initial soil moisture content.

[0034] As an optional implementation, to initiate the recursive calculation of water balance, an initial state for the physical simulation needs to be set. It is determined whether valid measured soil data exists for the first day of the time series. If it exists, this measured data is extracted as the initial soil moisture content; if it is missing, the initial soil moisture content is calculated by multiplying the field capacity and a preset empirical reduction factor, ensuring the continuity of the recursive calculation over time. As a specific manifestation of this basic alternative, the empirical reduction factor can be a constant, for example, a specified proportion of the field capacity can be used as the initial empirical value.

[0035] ② Calculate the effective precipitation based on precipitation data.

[0036] This embodiment provides a basic effective precipitation calculation scheme, namely the fixed effective precipitation coefficient method. The effective precipitation is obtained by multiplying a preset fixed effective precipitation coefficient by the daily precipitation. This fixed effective precipitation coefficient characterizes the proportion of precipitation infiltration after deducting canopy interception and microrunoff losses, and is typically taken as a fixed constant under flat terrain conditions.

[0037] ③ Divide the effective precipitation and crop evapotranspiration by the root depth determined based on crop phenological data to convert it into volumetric water content increment, and add it to the physical simulation soil water content of the previous day to obtain the temporary water content without drainage constraints.

[0038] In conventional water balance models, the physical dimension of raw water fluxes (such as effective precipitation and crop evapotranspiration) is water depth, while the dimension of soil moisture content is volume percentage. Adding or subtracting these two quantities can lead to dimensional conflicts. To address this issue, this embodiment introduces a dimensional consistency conversion based on root depth determined from crop phenological data.

[0039] The specific calculation method is as follows: calculate the difference between the effective precipitation and crop evapotranspiration on the day; calculate the ratio of this difference to the root depth to obtain the increase in volumetric water content; calculate the sum of the physical simulation soil water content and the increase in volumetric water content from the previous day to obtain the temporary water content for the day, the expression of which is as follows: ; In the formula, Indicates time step The corresponding temporary moisture content without drainage constraints; Indicates the previous time step The corresponding physical simulation of soil moisture content; Indicates time step The corresponding effective precipitation; Indicates time step The corresponding crop evapotranspiration; This indicates the root zone depth of the crop in the target area.

[0040] ④ Based on the preset field capacity and wilting moisture content, a threshold constraint is applied to the temporary moisture content: when the temporary moisture content exceeds the field capacity, the excess is discharged as deep infiltration, and the physical simulation soil moisture content of the day is set as the field capacity; when the temporary moisture content is lower than the wilting moisture content, the physical simulation soil moisture content of the day is set as the wilting moisture content; otherwise, the physical simulation soil moisture content of the day is set as the temporary moisture content.

[0041] Since temporary water content is not subject to drainage constraints, its value may exceed the physical carrying capacity of soil pores or fall below the lower limit of water available to crops. Therefore, a two-way threshold constraint is adopted using field capacity and wilting water content, the specific calculation formula of which is as follows: ; In the formula, Indicates time step The corresponding constrained physical simulation of soil moisture content; Indicates the field water holding capacity of the soil in the target area; This indicates the wilting moisture content of the soil in the target area; Indicates time step The corresponding temporary moisture content without drainage constraints.

[0042] During the aforementioned threshold constraint process, when an overflow exceeding the field capacity occurs, deep seepage is generated. The specific calculation method is as follows: calculate the difference between the temporary water content and the field capacity; extract the larger of this difference and the constant 0; calculate the product of this larger value and the root depth to obtain the deep seepage rate, the calculation expression of which is as follows: ; In the formula, Indicates time step The corresponding deep leakage volume; Indicates time step The corresponding temporary moisture content without drainage constraints; Indicates the field water holding capacity of the soil in the target area; This indicates the root zone depth of the crop in the target area.

[0043] Example 3 As an optional implementation, this embodiment improves the calculation process for effective accumulated temperature and effective precipitation to enhance the calculation accuracy of physical baseline characteristics. According to one aspect of this application, calculating effective accumulated temperature specifically includes: The daily maximum and minimum temperatures are obtained from meteorological data, and a base temperature for crops is set. Specifically, to overcome the limitation of the conventional simple mean method, which produces estimation bias when the daily minimum temperature is lower than the base temperature, this embodiment uses the sine curve integral method, namely the Baskerville-Emin method, to calculate the effective accumulated temperature.

[0044] Accordingly, after obtaining the daily maximum and minimum temperatures, the sum of the daily maximum and minimum temperatures is calculated, and this sum is divided by a constant of 2 to obtain the daily average temperature; the difference between the daily maximum and minimum temperatures is calculated, and this difference is divided by a constant of 2 to obtain the daily temperature half-range. Further, based on the relative magnitudes of the daily minimum, maximum, and base temperatures, the corresponding conditional decision branch is used to calculate the effective accumulated temperature. When the lowest temperature of the day is greater than or equal to the base temperature, the effective accumulated temperature of the day is calculated based on the difference between the daily average temperature and the base temperature.

[0045] The specific calculation steps are as follows: Calculate the difference between the daily average temperature and the base temperature, and use this difference as the effective accumulated temperature for the day. The corresponding expression is as follows: ; In the formula, Indicates the first The effective accumulated temperature of the day; Indicates the first The average daily temperature of the day; This indicates the base temperature of the crop.

[0046] When the highest temperature of the day is less than or equal to the base temperature, the effective accumulated temperature of the day is determined to be zero, and the effective accumulated temperature of the day is assigned the value of a constant 0. The expression is as follows: ; In the formula, Indicates the first The effective accumulated temperature of the day; This indicates that there is no effective accumulated temperature.

[0047] When the daily minimum temperature is lower than the base temperature and the daily maximum temperature is higher than the base temperature, assuming that the daily temperature follows a sinusoidal change between the daily minimum and daily maximum temperatures, the temperature contribution value above the base temperature is calculated by integrating the sine curve and taken as the effective accumulated temperature for the day.

[0048] The specific calculation method is as follows: Calculate the difference between the base temperature and the daily average temperature, then calculate the ratio of this difference to the half-amplitude of the daily temperature, and obtain the arcsine of this ratio to get the intersection phase angle. Next, calculate the difference between the daily average temperature and the base temperature, and multiply it by half of pi minus the difference in the intersection phase angle to obtain the first product. Calculate the product of the half-amplitude of the daily temperature and the cosine of the intersection phase angle to obtain the second product. Add the first product and the second product, and calculate the ratio of this sum to pi to obtain the effective accumulated temperature for the day, as shown in the following formula: ; In the formula, Indicates the first The effective accumulated temperature of the day; Indicates the first The average daily temperature of the day; Indicates the base temperature of the crop; The phase angle at the intersection of the intraday temperature curve and the base temperature line is calculated as follows: ; Indicates the first The daily temperature is half of the range.

[0049] According to one aspect of this application, effective precipitation is calculated based on precipitation data, such as... Figure 3 As shown, it specifically includes: i. Obtain the physical simulation soil moisture content of the previous day, compare it with the field water holding capacity, and take the smaller value as the effective early soil moisture content.

[0050] Specifically, to overcome the limitation of the fixed effective precipitation coefficient method in failing to reflect the influence of soil moisture status on precipitation infiltration, this embodiment introduces a state feedback effective precipitation model. The physical simulation soil moisture content calculated the previous day is obtained, the field capacity of the target area is extracted, and the minimum value between the two is calculated. This minimum value is then taken as the effective anterior soil moisture content.

[0051] ii. Calculate the relative soil moisture content based on the effective pre-weaking moisture content, wilting moisture content, and field capacity.

[0052] The specific calculation method is as follows: calculate the difference between the effective pre-weaning water content and the wilting water content of the target area as the first difference; calculate the difference between the field capacity and the wilting water content as the second difference; calculate the ratio of the first difference to the second difference to obtain the relative soil moisture.

[0053] iii. Based on the preset minimum infiltration efficiency coefficient, the dynamic infiltration efficiency coefficient is obtained by interpolation calculation combined with the relative soil moisture. When the effective early stage water content is equal to the wilting water content, the dynamic infiltration efficiency coefficient is 1; when the effective early stage water content is equal to the field capacity, the dynamic infiltration efficiency coefficient is equal to the minimum infiltration efficiency coefficient.

[0054] The specific calculation method is as follows: subtract the calculated relative soil moisture from constant 1, multiply the result by the difference between constant 1 and the preset minimum infiltration efficiency coefficient to obtain the adjustment increment; add the adjustment increment to the preset minimum infiltration efficiency coefficient to obtain the dynamic infiltration efficiency coefficient for the day.

[0055] From a physical perspective, this dynamic infiltration efficiency coefficient is negatively correlated with the soil moisture content of the previous day. When the soil moisture content approaches the wilting point, it indicates that the soil is in a dry state, with high matrix potential and abundant available pores. The coefficient monotonically increases and approaches its maximum value of 1, indicating that precipitation is easily infiltrated. When the soil moisture content approaches the field capacity, it indicates that the soil is in a moist state. The coefficient monotonically decreases and approaches the preset minimum infiltration efficiency coefficient, indicating that the soil pores are close to saturation and some precipitation is converted into surface runoff. In an optional implementation, the minimum infiltration efficiency coefficient κ... min The value is 0.4.

[0056] Those skilled in the art will understand that the specific value of this parameter is related to the soil texture, slope, and surface cover of the target area, and can be adaptively adjusted based on actual field precipitation runoff test data. Its expression is as follows: ; In the formula, Indicates time step The corresponding dynamic infiltration efficiency coefficient; This represents the preset minimum infiltration efficiency coefficient; 1 represents the theoretically highest infiltration rate; Indicates the previous time step The corresponding physical simulation of soil moisture content; Indicates the field water holding capacity of the soil in the target area; This indicates the wilting moisture content of the soil in the target area.

[0057] iv. Multiply the dynamic infiltration efficiency coefficient by the precipitation data to obtain the effective precipitation for the day.

[0058] The specific calculation method is as follows: obtain the precipitation data for the day, calculate the product of the precipitation and the dynamic infiltration efficiency coefficient, and obtain the effective precipitation for the day. The calculation formula is as follows: ; In the formula, Indicates time step The corresponding effective precipitation; Indicates time step The corresponding dynamic infiltration efficiency coefficient; Indicates time step The corresponding meteorological precipitation.

[0059] Example 4 This embodiment provides a feature set construction and lag order selection method, describing an adaptive lag order selection mechanism based on the partial autocorrelation function, specifically: Obtain the target sequence of the feature to be constructed from multi-source time series data or physical baseline data, and calculate the partial autocorrelation coefficient of the target sequence under different lag orders.

[0060] Optionally, when calculating the partial autocorrelation coefficient corresponding to the current lag order, the linear effects of all intermediate lag terms between the target sequence at the current time and the current lag order are pre-removed; the conditional correlation coefficient after removing the linear effects of intermediate lag terms is used as the partial autocorrelation coefficient under the current lag order.

[0061] Specifically, for target sequences with temporal continuity, such as soil moisture content, the current state is often influenced by the combined effects of states at multiple historical moments. Partial autocorrelation coefficients (PACs) can measure the correlation between target sequences at two points separated by a specified lag order. By processing the target sequence using a PAC calculation model to eliminate the propagation effect of intermediate time step features, PACs at each candidate lag order are obtained.

[0062] According to one aspect of this application, partial autocorrelation coefficients are screened based on statistical significance to determine the lag order that has significant autocorrelation with the target sequence, specifically including: Optionally, the significance threshold of the partial autocorrelation coefficient can be determined based on the effective sample size of the target sequence.

[0063] Specifically, under the asymptotic normality assumption, the ratio of the constant 1.96 to the square root of the effective sample size of the target sequence is calculated, and this ratio is used as the significance threshold for the partial autocorrelation coefficient. Statistically, the larger the effective sample size, the smaller the significance threshold, indicating that even a small correlation coefficient in a long sequence can be considered statistically significant.

[0064] Its operational expression is as follows: ; In the formula, The significance threshold for the partial autocorrelation coefficient; 1.96 corresponds to the critical value for the confidence level under a normal distribution; This indicates the effective sample size of the target sequence.

[0065] Optionally, the lag order corresponding to the partial autocorrelation coefficient with an absolute value greater than the significance threshold can be included in the candidate lag set.

[0066] Specifically, the partial autocorrelation coefficients of each order are obtained, and their absolute values ​​are calculated. The absolute values ​​are compared with the aforementioned significance threshold. If the absolute value is greater than the significance threshold, it is determined that the historical state corresponding to the lag order has a statistically significant impact on the current state, and the lag order is included in the candidate lag set.

[0067] Optionally, the number of lag orders in the candidate lag set is constrained: if the number of lag orders in the candidate lag set exceeds a preset maximum value, then the preset maximum number of lag orders with the largest absolute value of the partial autocorrelation coefficient is retained; if the number of lag orders in the candidate lag set is lower than a preset minimum value, then the first lag and the other lag order with the largest absolute value of the partial autocorrelation coefficient are retained; if the number of lag orders in the candidate lag set is between the preset minimum and the preset maximum value, then the candidate lag set is used as the selected lag order set, thus obtaining the selected lag order set.

[0068] Specifically, to control the feature dimensionality of the machine learning model and prevent feature loss, a two-way boundary constraint is applied to the candidate lag set. When the number of candidates is too large, a truncation operation is performed, sorting the candidates by the absolute value of their partial autocorrelation coefficients from largest to smallest, and removing the first preset maximum number of lag orders. When the number of candidates is too small, a preset backup operation is performed, including the first-order lag term, which typically has the highest physical correlation, into the set, and supplementing the remaining candidates with the largest absolute value, ensuring that the number of lag orders in the final set is not less than a preset minimum value. In one optional implementation, the preset maximum value is 10, and the preset minimum value is 2.

[0069] Those skilled in the art will understand that the specific values ​​of the above parameters can be adaptively adjusted according to the length of the actual data sequence, the limitations of the model input dimension, and the conditions of computing resources.

[0070] Furthermore, through the aforementioned adaptive selection rules, the selected set of lag orders can automatically adapt to the hydraulic response characteristics of different soil types. For example, for sandy soils with rapid water migration, whose partial autocorrelation coefficient decays rapidly over time, the rule tends to retain shorter lag orders; for clay soils with slow water migration, whose decay is slower, the rule tends to retain longer and more lag orders.

[0071] As an alternative, in scenarios where partial autocorrelation coefficient calculation is not feasible or where computational complexity needs to be reduced, a fixed empirical lag order can be used to replace the adaptive selection process described above. For example, lag order one, lag order three, and lag order seven can be specified as a fixed set of lag orders, and this fixed set can be used to construct a time series feature set.

[0072] Example 5 This embodiment adopts a direct prediction architecture, which is suitable for conventional prediction scenarios with low computational power requirements or few feature dimensions, such as... Figure 4 As shown, the specific steps 501-503 are as follows: Step 501: When the prediction architecture is a direct prediction architecture, the prediction target is the absolute value of soil moisture content, and the time series feature set includes physical baseline data.

[0073] Specifically, under the direct prediction architecture, the fitting target of the machine learning model is set as the absolute value of soil moisture content in the measured soil data. In order for the model to learn the laws of physical evolution, when constructing the time-series feature set, in addition to including the meteorological features, phenological features, and historical soil moisture content lag features extracted based on the lag order selection rule constructed in the aforementioned embodiments, the physically simulated soil moisture content calculated recursively based on the water balance principle is added as an explicit input feature to the time-series feature set.

[0074] The above feature combination method enables the model to establish a mapping relationship between physical baseline data and the actual absolute value of water content, and to automatically allocate the weights of physical baseline features and other auxiliary features based on data-driven model.

[0075] Step 502, correspondingly, the target predicted value is the predicted value of soil moisture content.

[0076] Specifically, a pre-trained machine learning model is obtained, and a time-series feature set containing physical baseline data is input into the machine learning model for processing. The machine learning model can employ a conventional linear regression model or a tree-based ensemble learning model. After the model's forward computation processing, the output result represents the soil moisture state at the target time step; that is, the target predicted value corresponds physically to the desired predicted soil moisture content.

[0077] Step 503, the result synthesis rule is: the target predicted value is used as the final soil moisture content prediction result.

[0078] Specifically, since the prediction target in the aforementioned steps has been set as the absolute value of soil moisture content, and the target prediction value output by the model is consistent with the target variable in terms of dimensions and physical meaning, no additional compensation or reverse transformation operation is required under this direct prediction architecture. The system extracts the target prediction value output by the machine learning model and stores or outputs it as the final soil moisture content prediction result for the current prediction time step. This result can be used for agricultural irrigation decisions or drought early warning.

[0079] Example 6 This embodiment provides an alternative preferred prediction architecture that decouples and integrates a physical water balance model with a machine learning model. This architecture utilizes the physical model to mitigate the main trend of water variation, employs the machine learning model to fit non-stationary system deviations, and simultaneously achieves quantitative diagnosis of structural defects in the physical model.

[0080] As an optional implementation, when the prediction architecture is a residual correction architecture, the prediction target is the physical model residual, which is the difference between the actual water content in the measured soil data and the corresponding physical baseline data.

[0081] Specifically, under the residual correction architecture, the system acquires the actual moisture content from the measured soil data at a predetermined time step and obtains the corresponding physical baseline data for that time step. The difference between the actual moisture content and the physical baseline data is calculated and defined as the physical model residual.

[0082] From the perspective of data characteristics and trends, since the physical baseline data has already analyzed the seasonal fluctuations and main trend components caused by precipitation replenishment and evapotranspiration consumption, the physical model residual sequence obtained after subtraction has higher stationarity than the original soil moisture content sequence, which reduces the difficulty of subsequent machine learning models to fit non-stationary time series data.

[0083] In this embodiment, the pre-trained machine learning model is obtained through the following offline construction steps: acquiring multi-source time series data from historical periods; calculating historical physical baseline data and historical meteorological characteristics based on the multi-source time series data from historical periods, and subtracting the historical measured soil data from the multi-source time series data from the corresponding historical physical baseline data to obtain the historical residual sequence; constructing a training feature set based on the historical residual sequence and the multi-source time series data from historical periods, and using the historical residual sequence as the training label to train multiple initial candidate machine learning models to obtain the pre-trained machine learning model.

[0084] Specifically, this embodiment represents the offline construction phase. The system extracts observational data and meteorological driving data within a historical time window, and recursively calculates historical physical baseline data using the water balance principle. Further, the historical residual sequence is calculated following the steps described above. This historical residual sequence serves as the training label for subsequent supervised learning, guiding the initial machine learning model to specifically learn the complex process patterns that the physical water balance model fails to capture.

[0085] Optionally, three feature sets with a progressive inclusion relationship are constructed as training feature sets. The three feature sets include: a first feature set, which only contains the lagged features of historical residual sequences; a second feature set, which adds historical meteorological features to the first feature set; and a third feature set, which adds historical crop phenological features determined based on crop phenological data from multi-source time series data of historical periods to the second feature set. Multiple candidate machine learning models are trained in parallel using the first, second, and third feature sets respectively to obtain multiple sets of candidate machine learning models.

[0086] Specifically, in order to achieve diagnostic functions, the system constructs a progressive feature set.

[0087] Specifically, the first feature set (AR-δ) extracts only historical values ​​of the historical residual sequence at different lag orders; the second feature set (AR-δ+Weather) adds meteorological features such as maximum and minimum temperatures, precipitation, relative humidity, wind speed, solar radiation, and effective accumulated temperature to the first feature set; the third feature set (Full-δ) further adds crop phenological features such as crop coefficients and root depth coefficients to the second feature set. It should be noted that when constructing the third feature set, the system removes the historical physical baseline data itself to avoid information leakage between the feature information and the prediction target.

[0088] After the feature set is constructed, multiple initial candidate machine learning models are extracted. The three sets of feature sets mentioned above are then input into the corresponding candidate machine learning models for parameter updates and fitting, and the trained candidate machine learning models are output.

[0089] Optionally, the multiple candidate machine learning models include algorithm types of varying complexity, specifically: linear regression models and regularized regression models for capturing linear dependencies; and tree-based ensemble learning models for capturing non-linear dependencies and feature interactions.

[0090] Specifically, to adapt to different data distribution characteristics, the candidate machine learning model pool encompasses a variety of algorithms. Regularized regression models are constructed using algorithms such as linear regression, ridge regression, or lasso regression; tree-based ensemble learning models are constructed using algorithms such as random forests. All of the above candidate machine learning models use mean squared error as the objective function during the training phase, which is the standard choice for regression prediction tasks in this field. Those skilled in the art can also choose conventional alternative objective functions such as mean absolute error or Huber loss according to actual needs.

[0091] As a supplementary constraint mechanism for small sample scenarios, when the number of effective historical time series samples extracted is lower than a preset threshold, the system applies anti-overfitting constraints to the hyperparameters of the tree-based ensemble learning model. Specifically, it sets a relatively shallow upper limit for the maximum tree depth parameter and a relatively small upper limit for the number of decision trees parameter to control the complexity of the tree-based ensemble learning model and prevent overfitting in the low-dimensional feature space. In general scenarios, those skilled in the art can use conventional hyperparameter tuning methods such as cross-validation, grid search, or Bayesian optimization to determine the optimal hyperparameter combination for each candidate machine learning model based on the prediction performance metrics of the validation set.

[0092] Optionally, the predictive performance metrics of each group of candidate machine learning models are evaluated on independent test sets pre-divided from multi-source time series data from historical periods; the improvement in predictive performance metrics corresponding to the first feature set, the second feature set, and the third feature set is compared to diagnose physical model bias. Specifically, the system uses test data independent of the training set to calculate predictive performance metrics (such as coefficient of determination or root mean square error) between the predicted values ​​output by each group of candidate machine learning models and the actual residuals. Further, based on the progressive relationship of the feature sets, it enters the corresponding diagnostic branch: If the prediction performance index corresponding to the second feature set shows an improvement of more than the preset diagnostic threshold compared to the first feature set, then the calculation model for diagnosing the physical baseline data has a systematic bias at the meteorological driven response level.

[0093] The specific diagnostic method is as follows: the improvement of this performance index indicates that the residual sequence contains meteorological information that has not been resolved by the physical baseline model. Based on this, the system outputs a diagnostic label, indicating that the basic water balance model has insufficient parameterization in meteorological driving links such as evapotranspiration estimation or precipitation infiltration calculation.

[0094] If the prediction performance index corresponding to the third feature set shows an improvement of more than the preset diagnostic threshold compared to the second feature set, then the calculation model for diagnosing the physical baseline data has a systematic bias at the crop phenological parameterization level; the diagnostic conclusion of the physical model bias diagnosis will be output.

[0095] The specific diagnostic method is as follows: the improvement of this performance index indicates that the residual sequence contains unresolved information related to the crop growth stage. Based on this, the system outputs a diagnostic label, indicating that there are structural errors in the basic water balance model during the step assignment of crop coefficients or the modeling of water demand changes during the phenological transition period.

[0096] Based on the prediction performance metrics, the optimal combination is selected from multiple candidate machine learning models to serve as the pre-trained machine learning model for the final output.

[0097] Specifically, the system iterates through the prediction performance metrics of all feature set-model combinations, extracts the optimal metric (such as the combination with the highest coefficient of determination), and solidifies the model structure and weight parameters corresponding to that combination as a pre-trained machine learning model to be called in the online prediction stage.

[0098] Accordingly, the target prediction value is the residual prediction value; the result synthesis rule is to superimpose the physical baseline data corresponding to the prediction time with the residual prediction value to obtain the final soil moisture content prediction result.

[0099] Specifically, in the online prediction phase, the system inputs the optimal feature set constructed at the current time step into the pre-trained machine learning model, and the value output by the model's forward computation is the residual prediction value.

[0100] Furthermore, the system acquires the physical baseline data corresponding to the current time step and calculates the sum of the physical baseline data and the residual prediction value. This sum is then output as the final soil moisture content prediction result for the current time step. This synthesis method ensures that the final prediction result retains both the structural constraints of the physical model on macroscopic water balance and the compensation and correction of local environmental effects and system biases by the data-driven model.

[0101] The final soil moisture content prediction results can be output to the farmland irrigation decision system for storage and visualization, or transmitted to the upper management platform through the communication interface to support drought early warning and irrigation scheduling decisions.

[0102] This application transforms the prediction target into a residual sequence generated by a physical water balance model and superimposes the predicted residual values ​​onto the physical baseline. This improves upon the difficulty in correcting biases in physical models and the challenge of fitting non-stationary sequences to data-driven models. Accordingly, this dual-drive architecture utilizes physical mechanisms to pre-eliminate the main trend and seasonal fluctuations in water changes, making the residual sequence input to the machine learning model more stable. While ensuring that the prediction results do not violate basic hydrodynamic laws, it reduces the difficulty of model fitting and the risk of overfitting.

[0103] Meanwhile, a sine curve integral and state feedback mechanism were introduced in the feature calculation stage. On the one hand, this more accurately reconstructs the effective accumulated temperature process when the intraday temperature crosses the base temperature. On the other hand, dynamic boundary constraints reflect the physical laws that precipitation after dryness is prone to infiltration and precipitation after wetness is prone to runoff, which helps to suppress the distortion of physical baseline data.

[0104] Building upon this, to address the issue that fixed feature time windows are difficult to adapt to different soil environments, a partial autocorrelation function and a statistical significance threshold are used to adaptively filter historical state correlations. This mechanism enables the feature input dimensions to automatically adapt to the moisture decay rate of soils with different textures, helps to eliminate the interference of redundant historical noise, and enhances the model's feature adaptability when applied across regions.

[0105] Furthermore, by constructing an offline progressive feature set including residuals, meteorology, and phenology, and comparing the performance improvement of multiple models during feature progression, we achieved quantitative decomposition and diagnosis of insufficient meteorological-driven response and step error in crop phenology parameterization. This provides a targeted basis for subsequent parameterization iteration of the underlying physical model and improves the problem of difficulty in locating structural defects in the physical model.

[0106] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0107] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0108] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A method for predicting soil moisture based on progressive feature set construction and multi-model comparison, characterized in that, include: Acquire multi-source time series data for the target area. The multi-source time series data should include at least meteorological data, measured soil data, crop phenological data, and physically simulated soil moisture content. Meteorological characteristics representing meteorological driving forces and crop water consumption status are calculated based on multi-source time series data, and the physical simulation soil moisture content is recursively calculated based on the water balance principle, and the physical simulation soil moisture content is used as the physical baseline data. Based on a predetermined lag order selection rule, a time series feature set is constructed using multi-source time series data and physical baseline data; Determine the prediction target and the corresponding prediction architecture, input the time series feature set into the pre-trained machine learning model for prediction, and obtain the target prediction value; Based on the correspondence between the predicted target and the expected soil moisture content prediction results, the predicted target values ​​are synthesized to obtain the final soil moisture content prediction results.

2. The method according to claim 1, characterized in that, Meteorological characteristics representing meteorological driving forces and crop water consumption status are calculated based on multi-source time series data, and soil moisture content is physically simulated based on the water balance principle. Specifically, this includes: Calculate solar radiation, reference evapotranspiration, and effective accumulated temperature based on meteorological data; By combining reference evapotranspiration and crop phenological data, crop evapotranspiration is calculated, and solar radiation, reference evapotranspiration, effective accumulated temperature, and crop evapotranspiration are used as meteorological characteristics. Based on crop evapotranspiration and precipitation data from meteorological data, combined with preset soil hydraulic parameters, the daily physical simulation soil moisture content is recursively calculated based on the water balance principle.

3. The method according to claim 2, characterized in that, Calculating the effective accumulated temperature specifically includes: Obtain the daily maximum and minimum temperatures from meteorological data, and set the base temperature for crops; When the lowest temperature of the day is greater than or equal to the base temperature, the effective accumulated temperature of the day is calculated based on the difference between the daily average temperature and the base temperature. When the highest temperature of the day is less than or equal to the base temperature, the effective accumulated temperature of the day is determined to be zero. When the daily minimum temperature is lower than the base temperature and the daily maximum temperature is higher than the base temperature, assuming that the daily temperature follows a sinusoidal change between the daily minimum and daily maximum temperatures, the temperature contribution value above the base temperature is calculated by integrating the sine curve and taken as the effective accumulated temperature for the day.

4. The method according to claim 1, characterized in that, The rules for choosing the lag order include: Obtain the target sequence of the feature to be constructed, and calculate the partial autocorrelation coefficient of the target sequence under different lag orders; Based on statistical significance, partial autocorrelation coefficients are screened to determine the lag order that has significant autocorrelation with the target sequence, so as to adaptively construct a time series feature set.

5. The method according to claim 1, characterized in that, When the prediction architecture is a direct prediction architecture, the prediction target is the absolute value of soil moisture content, and the time series feature set includes physical baseline data. Accordingly, the target prediction value is the predicted value of soil moisture content; The result synthesis rule is: the target predicted value is used as the final soil moisture content prediction result.

6. The method according to claim 1, characterized in that, When the prediction architecture is a residual correction architecture, the prediction target is the physical model residual, which is the difference between the actual water content in the measured soil data and the corresponding physical baseline data. Accordingly, the target prediction value is the residual prediction value; The result synthesis rule is as follows: the physical baseline data corresponding to the prediction time is superimposed with the residual prediction value to obtain the final soil moisture content prediction result.

7. The method according to claim 6, characterized in that, The pre-trained machine learning model is obtained through the following offline build steps: Acquire multi-source time series data from historical periods; Historical physical baseline data are calculated based on multi-source time series data from historical periods, and the historical residual series are obtained by subtracting the historical measured soil data from the multi-source time series data from historical periods from the corresponding historical physical baseline data. A training feature set is constructed based on historical residual sequences and multi-source time series data from historical periods. The historical residual sequences are used as training labels to train multiple initial candidate machine learning models, resulting in a pre-trained machine learning model.

8. The method according to claim 7, characterized in that, A training feature set is constructed based on historical residual sequences and multi-source time series data from historical periods. Using historical residual sequences as training labels, multiple initial candidate machine learning models are trained, specifically including: Three feature sets with a progressive inclusion relationship were constructed as training feature sets. The three feature sets are: the first feature set, which contains only the lagged features of historical residual sequences; the second feature set, which adds historical meteorological features to the first feature set; and the third feature set, which adds historical crop phenological features to the second feature set. Multiple candidate machine learning models are trained in parallel using the first feature set, the second feature set, and the third feature set, respectively, to obtain multiple sets of candidate machine learning models.

9. The method according to claim 8, characterized in that, After obtaining multiple candidate machine learning models, the offline construction steps also include: Evaluate the predictive performance metrics of each group of candidate machine learning models on an independent test set; By comparing the improvement in the prediction performance indicators corresponding to the first feature set, the second feature set, and the third feature set, a physical model bias diagnosis is performed: if the prediction performance indicator corresponding to the second feature set shows an improvement of more than a preset diagnostic threshold compared to the first feature set, then the calculation model of the physical baseline data is diagnosed as having a systematic bias at the meteorological driving response level; if the prediction performance indicator corresponding to the third feature set shows an improvement of more than a preset diagnostic threshold compared to the second feature set, then the calculation model of the physical baseline data is diagnosed as having a systematic bias at the crop phenological parameterization level. Based on the prediction performance metrics, the optimal combination is selected from multiple candidate machine learning models to serve as the pre-trained machine learning model for the final output.

10. The method according to claim 8, characterized in that, The multiple candidate machine learning models contain algorithm types of varying complexity, specifically including: Linear regression models and regularized regression models used to capture linear dependencies; Additionally, tree-based ensemble learning models for capturing nonlinear dependencies and feature interactions.