Snow water equivalent grid data modeling and analysis method considering spatial heterogeneity
By combining the global least squares linear regression model and the spatial filtering method, the snow water equivalent data is processed in blocks, and the spatial feature vectors are used to fit the residuals to construct a global-regional spatial regression model, which solves the spatial differences in snow water equivalent modeling. It solves the problem of qualitative and computational bottlenecks and achieves higher modeling accuracy and estimation effect.
Patent Information
- Application Number
- CN202210171309.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-24
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-02-24
AI Technical Summary
Existing technologies fail to effectively consider spatial heterogeneity in snow water equivalent modeling, resulting in poor modeling results, and traditional regression models have computational bottlenecks when processing spatial data.
A snow water equivalent raster data modeling method that takes into account spatial heterogeneity is proposed. By combining the global least squares linear regression model and the spatial filtering method, the data is processed in blocks, and the eigenvectors of the spatial adjacency matrix are used to fit the residuals. , build a global-regional spatial regression model to reduce the impact of spatial autocorrelation.
It improves the accuracy and estimation effect of snow water equivalent modeling, enables more accurate exploration of the relationship between snow water equivalent and influencing factors, and is suitable for large-scale remote sensing image modeling calculations.
Smart Images

Figure CN114611271B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of spatial statistical analysis service application technology, and in particular to a snow water equivalent grid data modeling and analysis method taking into account spatial heterogeneity. Background Art
[0002] Snow water equivalent (SWE) is one of the important snow accumulation parameters. It refers to the vertical depth of the water layer formed by the water obtained when the snow is completely melted. The common unit is mm. Since snow is very sensitive to temperature changes, the monitoring of snow water equivalent is of great significance for studying climate change trends, water resources management and agricultural production planning. The global snow cover areas are mainly located in mid- and high-latitude regions, the North and South Poles, and mountainous areas. The observation results of snow cover vary with different geographical locations. For example, the slope orientation determines the duration of sunshine and the intensity of radiation received. The less solar radiation on the shady slope helps to maintain soil moisture and reduce the evaporation capacity of the air, which is conducive to the accumulation of snow compared to the sunny slope. That is, the spatial heterogeneity of snow is strong. This makes it difficult for a small number of stations to fully display the spatiotemporal variation characteristics of snow cover on a large spatial scale, which has great limitations. Remote sensing technology, as a new means of large-scale monitoring of the earth's surface, overcomes the shortcomings of traditional station monitoring, provides continuous long-term and large-scale snow monitoring data, and is an important data source for snow water equivalent. Microwave sensors mainly receive radiation energy from snow and its underlying surface. The sensor represents the received energy in terms of brightness temperature. The property information of snow (such as snow water equivalent) has a certain functional relationship with brightness temperature, through which the snow water equivalent can be inverted.
[0003] The change of snow water equivalent is affected by environmental factors, such as air temperature (AT), surface heat flux (GFLUX), cloud water content (CLDWP), precipitation (PREC), vegetation cover (NDVI), wind speed (WS), etc. The spatial regression model is a modeling method that takes spatial effects into account, and can be used to explore the relationship between snow water equivalent and related factors. The least squares linear regression model has a simple structure and modeling process, and can be used to infer statistical correlations. The premise of the traditional regression model is that (residuals) are independent and identically distributed, but in fact they are interdependent and correlated, and there is spatial autocorrelation, so the traditional model is not suitable for spatial data. The variables of spatial statistical analysis have the properties of being interdependent and correlated in space, which is also called spatial autocorrelation. The spatial autocorrelation of variables will affect the accuracy of regression modeling, so the influence of spatial autocorrelation needs to be eliminated. The spatial regression model takes into account the influence of spatial autocorrelation, so an accurate model can be established. Griffith proposed a spatial filtering method to solve the spatial autocorrelation problem in spatial regression analysis. The core idea is to extract the eigenvector of the spatial adjacency matrix as a spatial influencing factor and add it to the regression model, that is, to incorporate the eigenvector representing the spatial effect into the final regression model. The spatial filtering method has a large amount of calculation and is usually calculated in areas with less data. It has not yet been maturely applied in the modeling calculation of the entire remote sensing image.
[0004] It can be seen that the existing methods have technical problems such as poor modeling effect. Summary of the invention
[0005] The present invention proposes a snow water equivalent raster data modeling and analysis method that takes into account spatial heterogeneity, which is used to solve or at least partially solve the technical problem that the existing methods have poor modeling effects. Based on the relevant influencing factor data of snow water equivalent, spatial regression modeling of snow water equivalent is performed, the influencing factors of snow water equivalent are explored, and the changes in snow water equivalent are analyzed through regression models. The invention aims to simultaneously consider global scale characteristics and spatial heterogeneity, reduce the impact of spatial effects, further improve the accuracy of snow water equivalent modeling and estimation effects, and achieve the purpose of modeling and calculation of large-scale remote sensing images through a block method.
[0006] The technical solution of the present invention is:
[0007] The first aspect provides a snow water equivalent grid data modeling method that takes into account spatial heterogeneity, including:
[0008] S1: Obtaining grid data of snow water equivalent and preprocessing the obtained grid data;
[0009] S2: Based on the preprocessed data, a global least squares linear regression model was established with snow water equivalent as the dependent variable and environmental factors related to snow water equivalent as the independent variables:
[0010] y g =β0+β1x1+β2x2+…+β k x k +ε
[0011] In the formula, y g represents the observed value of snow water equivalent, x1, x2, …x k They represent the first, second and kth related influencing factors of snow water equivalent, β0, β1, …β k They are x1, x2, …x k The coefficient of , ε is the difference between the fitted value and the observed value of the global least squares linear regression model, that is, the residual;
[0012] S3: extract the residual of the global least squares linear regression model and divide it into several sub-region modeling units of size N×N;
[0013] S4: for each sub-region modeling unit after division, determine whether the residual has spatial autocorrelation. If it has spatial autocorrelation, execute step S5; otherwise, use the parameters of the global least squares linear regression model in step S2 as the final model parameters of the corresponding sub-region;
[0014] S5: Modeling the sub-region using a spatial filtering method, specifically including fitting the residual using the eigenvector of the spatial adjacency matrix to obtain a fitting result;
[0015] S6: Add the fitting results as spatial influences to the global least squares linear regression model constructed in step S2 to obtain the final spatial regression model.
[0016] In one implementation, in step S1, the acquired raster data is preprocessed, including projection transformation, mask extraction, outlier processing, nearby missing grid filling, and data standardization.
[0017] In one embodiment, in step S4, whether the residual has spatial autocorrelation is determined by calculating the Moran's index, and the Moran's index is reflected by the probability p value, specifically including: if p is less than the threshold, indicating that there is spatial autocorrelation, then proceed to step S5; otherwise, indicating that there is no spatial autocorrelation, then the parameters of the global least squares linear regression model in step S2 are used as the final model parameters of the corresponding sub-area.
[0018] In one embodiment, step S5 includes:
[0019] S5.1: construct a spatial adjacency matrix W according to the adjacency relationship of the grid cells of the sub-regions;
[0020] S5.2: Centralize the constructed spatial adjacency matrix to obtain matrix C.
[0021] S5.3: Calculate the eigenvalues and eigenvectors of the matrix C, and perform preliminary screening to obtain the spatial eigenvectors that meet the conditions;
[0022] S5.4: Based on the spatial feature vectors that meet the conditions, the target feature vectors are gradually screened out using the forward selection method;
[0023] S5.5: Based on the selected target feature vector, a regional feature function spatial filter value regression model is constructed for each sub-region. The formula is:
[0024] ε i =E i α i +∈ i (i=1,2,…m)
[0025] Among them, ε i is the residual of the global model of the ith sub-region, α i is the regression coefficient vector of the ith sub-region, and the matrix E i Including j target feature vectors selected from the i-th sub-region, ∈ i is the regional model error vector of the ith sub-region, and m is the total number of sub-regions into which the study area is divided.
[0026] In one embodiment, step S6 includes:
[0027] The fitted values of the regional model constructed by modeling the sub-regions are combined and then added to the fitted values of the global least squares linear regression model to obtain the final spatial regression model. The formula is as follows:
[0028]
[0029] in, is the snow water equivalent fitting value of the final spatial regression model, is the snow water equivalent fitting value of the global least squares linear regression model, is the fitted value of the residual of the combined sub-region;
[0030] The final spatial regression model expression is:
[0031]
[0032] In the formula, x1, x2, …x k are the relevant influencing factors of snow water equivalent, β0, β1, …β k is related to x1, x2, …x k The independent global least squares linear regression coefficients, E is the selected feature vector set, α is the regression coefficient vector of the sub-region, and ∈ is the error vector.
[0033] In one embodiment, the method further includes step S7, evaluating and analyzing the final spatial regression model.
[0034] Based on the same inventive concept, the second aspect of the present invention provides an analysis method for snow water equivalent, which is implemented based on the final spatial regression model constructed in the first aspect.
[0035] The above one or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:
[0036] In view of the problem that the traditional regression model does not consider the influence of spatial effects in snow water equivalent modeling, and the spatial regression model faces serious computational bottlenecks in raster data, the present invention proposes a snow water equivalent raster data modeling method that takes into account spatial heterogeneity, while considering global and regional spatial effects. When performing spatial modeling on remote sensing images, the data is divided into several sub-regions of the same size, and each sub-region is modeled to achieve the purpose of modeling and calculating the entire remote sensing image; using the spatial filtering method, the eigenvectors of the spatial adjacency matrix are used to fit the residuals, and the fitting results are added as spatial effects to the previous global model to obtain the final spatial regression model. An accurate model of snow water equivalent and its related factors can be obtained, further improving the accuracy of snow water equivalent modeling and estimation effect for subsequent research and analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 A flow chart of a snow water equivalent grid data modeling method taking into account spatial heterogeneity provided by an embodiment of the present invention;
[0039] Figure 2 A block statistics diagram of data preprocessing in an embodiment of the present invention;
[0040] Figure 3 It is a schematic diagram of performing regional division on the extracted global model residual in an embodiment of the present invention;
[0041] Figure 4 This is a flowchart of regional modeling taking into account spatial heterogeneity in an embodiment of the present invention. DETAILED DESCRIPTION
[0042] The core problem to be solved by the present invention is that the distribution of snow water equivalent is affected by spatial effects. The traditional regression model only considers the global impact of environmental factors. Due to the existence of spatial heterogeneity, the spatial effects of local areas are not taken into consideration. At the same time, for snow water equivalent raster data, the use of specific spatial regression methods to model faces serious computational bottlenecks. In response to these problems, the present invention proposes a snow water equivalent raster data modeling method that takes into account spatial heterogeneity, constructs a global-regional spatial regression model of snow water equivalent and environmental factors, and can accurately explore the relationship between snow water equivalent and influencing factors.
[0043] 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 ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0044] Embodiment 1
[0045] This embodiment provides a snow water equivalent grid data modeling method that takes into account spatial heterogeneity, including:
[0046] S1: Obtaining grid data of snow water equivalent and preprocessing the obtained grid data;
[0047] S2: Based on the preprocessed data, a global least squares linear regression model was established with snow water equivalent as the dependent variable and environmental factors related to snow water equivalent as the independent variables:
[0048] y g =β0+β1x1+β2x2+…+β k x k +ε
[0049] In the formula, y g represents the observed value of snow water equivalent, x1, x2, …x k They represent the first, second and kth related influencing factors of snow water equivalent, β0, β1, …β k They are x1, x2, …x k The coefficient of , ε is the difference between the fitted value and the observed value of the global least squares linear regression model, that is, the residual;
[0050] S3: extract the residual of the global least squares linear regression model and divide it into several sub-region modeling units of size N×N;
[0051] S4: for each sub-region modeling unit after division, determine whether the residual has significant spatial autocorrelation. If it has significant spatial autocorrelation, execute step S5; otherwise, use the parameters of the global least squares linear regression model in step S2 as the final model parameters of the corresponding sub-region;
[0052] S5: Modeling the sub-region using a spatial filtering method, specifically including fitting the residual using the eigenvector of the spatial adjacency matrix to obtain a fitting result;
[0053] S6: Add the fitting results as spatial influences to the global least squares linear regression model constructed in step S2 to obtain the final spatial regression model.
[0054] The main ideas of the present invention are as follows:
[0055] In order to take into account spatial heterogeneity, consider local features in spatial regression modeling, and eliminate spatial autocorrelation, the present invention proposes a snow water equivalent grid data modeling method that takes into account spatial heterogeneity. The present invention believes that the spatial regression modeling of large-scale snow water equivalent grid data can first use a global least squares linear regression model on a global scale to obtain global features; in view of the problem that the residuals in the established global least squares linear regression model have high spatial autocorrelation, a spatial filtering method is used to fit the residuals using spatial feature vectors, and the residual fitting results are added as spatial influences to the previous global model (global least squares linear regression model) to become the final spatial regression model; when the aforementioned spatial filtering method is used to model the residuals, the data is divided into several small sub-regions, and the residuals of each sub-region are modeled, and finally the results of the overall modeling and the sub-region modeling are integrated, so as to achieve the purpose of modeling and calculating the entire remote sensing image.
[0056] It should be noted that the global characteristics refer to the response characteristics of snow water equivalent to relevant influencing factors in the overall research scope. For example, compared with other factors, the factor "air temperature (AT)" has the strongest negative correlation effect on all snow water equivalent in the region, which is a global characteristic.
[0057] See also Figure 1 , which is a flow chart of a snow water equivalent grid data modeling method taking into account spatial heterogeneity provided in an embodiment of the present invention.
[0058] Among them, step S1 is data acquisition and processing, S2 is global least squares linear regression modeling, S3 is global least squares linear regression residual blocking, S4 is the determination of spatial autocorrelation of residuals, S5 is residual modeling using spatial filtering method, and S6 is the construction of a global-regional model of snow water equivalent that takes into account spatial heterogeneity.
[0059] In the global least squares linear regression model of S2, β0, β1, …β k It is the coefficient of the influencing factor, which can reveal the impact on snow water equivalent. That is, the positive or negative sign of the coefficient represents a positive or negative correlation with snow water equivalent, and the absolute value represents the degree of correlation.
[0060] In one implementation, in step S1, the acquired raster data is preprocessed, including projection transformation, mask extraction, outlier processing, nearby missing grid filling, and data standardization.
[0061] During the specific implementation process, data on snow water equivalent and related factors are obtained. The snow water equivalent data covers the northern hemisphere and is derived from the monthly snow water equivalent data in the European Space Agency's GlobSnow project. The condition for the formation of snow is that the accumulation of snowfall is greater than the melting, so the relevant influencing factors are selected from the two aspects of snow accumulation and melting. From the perspective of snowfall, one of its necessary conditions is water vapor saturation, so atmospheric environmental factors such as air temperature (AT), cloud water content (CLDWP), wind speed (WS), etc. affect the amount of snowfall and snow distribution; from the perspective of snow melting, ground environmental factors such as surface heat flux (GFLUX), precipitation (PREC), vegetation cover (NDVI), etc. also affect the amount of snow to a certain extent.
[0062] Raster data preprocessing includes the following five sub-steps: (1) outlier removal; (2) projection transformation; (3) mask extraction; (4) block statistics processing; (5) data standardization.
[0063] (1) Elimination of outliers. Check the quality of the snow water equivalent and related influencing factors data, explain the outliers, and eliminate them according to the situation.
[0064] (2) Projection transformation. Spatial resolution refers to the minimum distance between two adjacent objects that can be identified on a remote sensing image. Due to different data sources, the snow water equivalent related factor data and the snow water equivalent data have different spatial resolutions. Therefore, the spatial resolution of all data needs to be unified before modeling, and unified projection transformation processing is required. Select an appropriate projection coordinate system based on the scope of the study area. If the study area is in the northern hemisphere, place the North Pole at the center of the projection, select the Lambert polar position equal area projection, and unify the data projection coordinate system for the snow water equivalent and related influencing factor data.
[0065] (3) Mask extraction: Using snow water equivalent data as the extraction basis, mask extraction is performed on the data of relevant influencing factors to crop the data range and unify the data size.
[0066] (4) Block statistical processing. Since the data sources of snow water equivalent and its influencing factors are different, the data coverage is also different. In order to unify the data coverage, block statistical processing is performed on the data of snow water equivalent environmental influencing factors. Block statistics can fill in the grids with missing data. First, select the operation window size, such as Figure 2 As shown in the figure, there are three neighborhood sizes: 3×3, 5×5, and 7×7. Taking the 5×5 neighborhood window as an example, the values of the 24 pixels around the pixel to be filled are obtained by specifying the statistical data type, which is the value finally assigned to the pixel to be filled. The statistical data types that can be specified include: average, maximum, minimum, majority, minority, median, standard deviation, sum, etc. Here, the average is selected as the specified statistical data type.
[0067] (5) Data standardization. The Z-Score standardization method is used to standardize the data of snow water equivalent and related influencing factors. The purpose is to enable data measured at different scales to be compared and analyzed at the same scale, and to enhance the interpretability of regression analysis coefficients. The formula is as follows:
[0068]
[0069] In the formula, z i Refers to the standardized value, x i is the data to be standardized, is the arithmetic mean of the data to be standardized, and S is the standard deviation of the data to be standardized.
[0070] For the global least squares linear regression model constructed in step S3, the size of the residual can measure the accuracy of the fit. The larger the residual, the less accurate the fit. The residual is related to the characteristics of the data itself and the choice of the regression equation. The least squares method requires that the snow water equivalent observation value y g With the fitted value The difference is minimized, so the equation is established:
[0071]
[0072] In the equation, we need to minimize the value of function Q. For function Q, we can calculate β0, β1, …β k Find the first-order partial derivative and set its value equal to 0, solve the system of equations to obtain the model regression coefficient, and thus obtain the global least squares linear regression model.
[0073] Step S4 extracts the global model residual and divides it into several N×N sub-regions. Figure 3 As shown. In the subsequent steps of calculating the Moran index and using the spatial filter method for regression, it is necessary to construct a spatial adjacency matrix. If the spatial adjacency matrix is constructed for the entire M×M remote sensing image, the matrix size is M 2 ×M2 , too much data will lead to slow calculation speed or even failure to calculate the eigenvectors in the future. Therefore, the global residual is divided into several N×N regions. The global residual consists of several grids. This step divides the global residual into Figure 3 Several N×N square sub-areas are shown.
[0074] In one embodiment, in step S4, whether the residual has spatial autocorrelation is determined by calculating the Moran's index, and the Moran's index is reflected by the probability p value, specifically including: if p is less than the threshold, indicating that there is spatial autocorrelation, then proceed to step S5; otherwise, indicating that there is no spatial autocorrelation, then the parameters of the global least squares linear regression model in step S2 are used as the final model parameters of the corresponding sub-area.
[0075] Specifically, the spatial autocorrelation is determined by calculating the Moran's I index. The residual expression of the global model is:
[0076]
[0077] Among them, ε is the residual, y g is the observed value of snow water equivalent, is the global model fitting value.
[0078] Moran's I index, also known as Moran's index, is an index used to measure spatial autocorrelation. Its value range is between -1 and 1. [0, 1] indicates that there is a positive correlation between geographical entities, [-1, 0] indicates that there is a negative correlation, and 0 indicates no correlation. The larger the absolute value, the more obvious the spatial autocorrelation, otherwise it is the opposite. The spatial autocorrelation of the residuals can be measured by calculating the Moran's I index of the residuals of the global least squares linear regression model. The formula is as follows:
[0079]
[0080] Among them, b i is the deviation of the attribute of feature i from its mean, w i,jis the spatial weight between elements i and j, and n is equal to the total number of elements. The interpretation of the Moran's I index requires judgment through the p-value. When the absolute value of the Moran's I index is large and the p-value is less than 0.05 (the threshold can be set according to the situation, and the threshold is 0.05 as an example), that is, the confidence level reaches 95%, it means that the spatial autocorrelation of the residuals is obvious enough, and the spatial factors in the residuals need to be removed and added to the final model. Generally speaking, because snow water equivalent is a geographical element with spatial effects, when calculating the Moran's I index for the regional residuals after global least squares linear regression modeling of snow water equivalent, when the Moran's I index is large and its p-value is less than 0.05, the residuals have obvious spatial autocorrelation.
[0081] The parameters of the global least squares linear regression model in step S2 are β0, β1, ...β k .
[0082] In one embodiment, step S5 includes:
[0083] S5.1: construct a spatial adjacency matrix W according to the adjacency relationship of the grid cells of the sub-regions;
[0084] S5.2: Centralize the constructed spatial adjacency matrix to obtain matrix C.
[0085] S5.3: Calculate the eigenvalues and eigenvectors of the matrix C, and perform preliminary screening to obtain the spatial eigenvectors that meet the conditions;
[0086] S5.4: Based on the spatial feature vectors that meet the conditions, the target feature vectors are gradually screened out using the forward selection method;
[0087] S5.5: Based on the selected target feature vector, a regional feature function spatial filter value regression model is constructed for each sub-region. The formula is:
[0088] ε i =E i α i +∈ i (i=1,2,…m)
[0089] Among them, ε i is the residual of the global model of the ith sub-region, α i is the regression coefficient vector of the ith sub-region, and the matrix E i Including j target feature vectors selected from the i-th sub-region, ∈ i is the regional model error vector of the ith sub-region, and m is the total number of sub-regions into which the study area is divided.
[0090] Specifically, step S5 uses a spatial filtering method to fit the residual model of each sub-region. Figure 4 This step includes four sub-steps: (1) constructing a spatial adjacency matrix; (2) centering the matrix; (3) calculating eigenvalues and eigenvectors and performing preliminary screening; and (4) using the forward selection method to gradually screen the target eigenvectors.
[0091] In the specific implementation process, the implementation method of step S5 is as follows:
[0092] Step S5.1: Construct and centralize the spatial adjacency matrix. The global spatial adjacency matrix C can be constructed according to Bishop adjacency, Rook adjacency and Queen adjacency methods:
[0093] a) Bishop adjacency: The four pixels adjacent to the four vertices of the target pixel are adjacent positions under this adjacency rule, that is, common vertex adjacency;
[0094] b) Rook adjacency: The four pixels adjacent to the four sides of the target pixel are adjacent positions under this adjacency rule, that is, common-edge adjacency;
[0095] c) Queen adjacency: The four pixels adjacent to the four sides of the target pixel are adjacent positions under this adjacency rule, that is, they are both common vertex adjacency and common edge adjacency.
[0096] Using C i,j Indicates the adjacency of grids i and j in the N×N subregion, and takes the value 0 or 1. If grids i and j are adjacent, then C i,j =1; if grids i and j are not adjacent, then C i,j =0; if i=j, then C i,j =0; thus the spatial adjacency matrix C of the corresponding N×N sub-region is obtained. As shown in the following formula:
[0097]
[0098] Step S5.2: Matrix centering. The spatial adjacency matrix C obtained in the previous step is centralized, and the formula is as follows:
[0099]
[0100] The spatial adjacency matrix C is centrally transformed to obtain the matrix MCM, where I is the n*n identity matrix, 1 is an n×1 vector with all elements being 1, n is the number of rows or columns of the spatial adjacency matrix, and T is the matrix transposition operator.
[0101] Step S5.3: Calculate eigenvalues and eigenvectors and perform preliminary screening. Perform mathematical decomposition on the matrix MCM:
[0102] MCM=EΛET
[0103] The decomposition result is called the characteristic function, which includes n eigenvectors and n corresponding eigenvalues. The n eigenvectors can be expressed as E0 = (EV1, EV2, ..., EV n ), where each eigenvector is an n×1 vector. Λ is an n×n diagonal matrix whose diagonal elements are n eigenvalues, which can be expressed in descending order as λ=(λ1,λ2,…,λ n ).
[0104] Then the eigenvectors are preliminarily screened under two conditions: one is its eigenvalue λ i >0; second, according to the empirical model requirements, the following conditions are met:
[0105]
[0106] where λ i is the feature value to be screened, λ max is the largest eigenvalue. The spatial eigenvectors that meet the conditions are obtained through preliminary screening.
[0107] Step S5.4: The forward selection method gradually selects the target feature vector. The specific steps are as follows:
[0108] Step S5.4.1: Sorting spatial feature vectors. Arrange the spatial feature vectors after the initial screening in descending order according to the corresponding eigenvalues to obtain the spatial feature vector set E t .
[0109] Step S5.4.2: In each N×N subregion, the residual of the global snow water equivalent model is used as the dependent variable, and the spatial feature vector set E t As the independent variable, establish an ordinary least squares regression model and calculate the regression equation Y i The AIC value of Akaike Information Criterion (AIC) is calculated as follows:
[0110] AIC=-2ln(L)+2k
[0111] Among them, L is the likelihood function and k is the number of variables in the model.
[0112] Step S5.4.3: Select the regression equation with the smallest AIC value from step S5.4.2, corresponding to the spatial feature vector set E t A spatial feature vector selected from is added to the selected feature vector set E. Then from the spatial feature vector set E t In the above equation, the eigenvectors except the eigenvector in E are added into the regression equation one by one.
[0113] Step S5.4.4: Determine whether the AIC value decreases. If the AIC value decreases, repeat step S5.4.3; if the AIC value does not decrease, stop adding the eigenvectors to the regression equation and record the eigenvectors that have been added to the regression equation. These eigenvectors are the j eigenvector sets E that are selected to optimize the evaluation criterion AIC, that is, the residual space filter value model of the i-th sub-region is obtained:
[0114] ε i =E i α i +∈ i (i=1,2,…m)
[0115] Among them, ε i is the residual of the ith sub-region, α i is the regression coefficient vector of the ith sub-region. i Including j feature vectors selected from the i-th sub-region, ∈ i is the regional model error vector of the ith sub-region, and m is the total number of sub-regions into which the study area is divided.
[0116] In one embodiment, step S6 includes:
[0117] The fitted values of the regional model constructed by modeling the sub-regions are combined and then added to the fitted values of the global least squares linear regression model to obtain the final spatial regression model. The formula is as follows:
[0118]
[0119] in, is the snow water equivalent fitting value of the final spatial regression model, is the snow water equivalent fitting value of the global least squares linear regression model, is the fitted value of the residual of the combined sub-region;
[0120] The final spatial regression model expression is:
[0121]
[0122] In the formula, x1, x2, …x k are the relevant influencing factors of snow water equivalent, β0, β1, …β k is related to x1, x2, …x k The independent global least squares linear regression coefficients, E is the selected feature vector set, α is the regression coefficient vector of the sub-region, and ∈ is the error vector.
[0123] Through the above steps, each N×N sub-region has its corresponding regional model, and the residual fitting result of the regional model is Combine, that is Figure 3 After the splicing, it is combined with the global snow water equivalent fitting result y g By adding them together, we can obtain the final snow water equivalent grid data model that takes into account spatial heterogeneity.
[0124] In one embodiment, the method further includes step S7, evaluating and analyzing the final spatial regression model.
[0125] Specifically, this part includes evaluation regression model and analysis regression model, among which,
[0126] In evaluating the regression model, several evaluation indicators of the model are calculated: the goodness of fit of the model (R 2 ), adjusted goodness of fit (Adj.R 2 ), root mean square error (RMSE), mean absolute error (MAE), mean absolute percentage error (MAPE), and Moran's index (Moran's I) of the residual. The formulas are as follows:
[0127] (1) Goodness of fit of the model (R 2 )
[0128] R 2 is a statistic that measures goodness of fit and gives the proportion of variation in the target variable explained by the regression model:
[0129]
[0130] where y i is the observed value of snow water equivalent, is the average of the observed values of snow water equivalent, is the snow water equivalent fitting value of the model, and n is the number of grids. 2 The value range is 0 to 1. The larger the value, the higher the model accuracy.
[0131] (2) Adjusted goodness of fit (Adj.R 2 )
[0132] Adjust R 2 The number of independent variables used to fit the target variable is taken into account. 2 Based on the offset of sample size on R 2 The effect of adding non-significant variables is penalized. 2 It is a statistic that measures the goodness of fit. Its formula is as follows:
[0133]
[0134] Where p is the number of independent variables. 2 Same as R 2Similarly, its value range is 0 to 1, and the larger the value, the higher the model accuracy.
[0135] (3) Root mean square error (RMSE)
[0136] The root mean square error is the square root of the ratio of the square of the deviation between the fitted value and the true value to the number of observations n. It measures the deviation between the fitted value and the true value and is more sensitive to outliers in the data:
[0137]
[0138] The meanings of the parameters are the same as above. The smaller the value, the higher the model accuracy.
[0139] (4) Mean absolute error (MAE)
[0140] The mean absolute error is the average of the absolute errors. Since the deviation is converted to an absolute value, there will be no positive and negative offset. Therefore, the mean absolute error can better reflect the actual situation of the fitting value error. The formula is as follows:
[0141]
[0142] The meanings of the parameters are the same as above. The smaller the value, the higher the model accuracy.
[0143] (5) Mean absolute percentage error (MAPE)
[0144] The mean absolute percentage error is a statistical indicator to measure the accuracy of the fit. It is a percentage value. It is generally believed that when MAPE is less than 10, the fitting accuracy is high. It is used to measure the accuracy of the fitting model. The formula is as follows:
[0145]
[0146] The meanings of the parameters are the same as above. The smaller the value, the higher the model accuracy.
[0147] (6) Moran's I
[0148] Moran's I index, also known as Moran's index, is an index used to measure spatial autocorrelation. Its value range is between -1 and 1. [0, 1] indicates that there is a positive correlation between geographical entities, [-1, 0] indicates that there is a negative correlation, and 0 indicates no correlation. The larger the absolute value, the more obvious the spatial autocorrelation, otherwise it is the opposite. The formula is as follows:
[0149]
[0150] Among them, b i is the deviation of the attribute of feature i from its mean, w i,jis the spatial weight between elements i and j, and n is equal to the total number of elements. The closer its value is to 0, the weaker the residual spatial autocorrelation is, and the more reliable the model is.
[0151] Analyze the regression model. After the above steps, the final model is as follows:
[0152]
[0153] In the formula, is the snow water equivalent grid data model fitting value taking into account spatial heterogeneity, x1, x2, …x k are the relevant influencing factors of snow water equivalent, β0, β1, …β k is the regression coefficient, the feature vector set E includes the selected j feature vectors, α is the regression coefficient vector of the sub-region, and ∈ is the error vector.
[0154] β0, β1, …β in the model k , that is, the regression coefficient corresponds to each relevant influencing factor of snow water equivalent, and its positive and negative signs represent the positive and negative correlation with snow water equivalent: if the sign is positive, the factor has a positive effect on the accumulation of snow water equivalent. The larger the factor, the larger the snow water equivalent, otherwise it is the opposite. Its absolute value represents the degree of influence on snow water equivalent. For different Eα items in each region, spatial visualization analysis is performed to obtain the changing law of spatial influence in the entire study area, which can be further analyzed in combination with relevant geological knowledge.
[0155] Embodiment 2
[0156] Based on the same inventive concept as that of the first embodiment, this embodiment provides an analysis method for snow water equivalent, which is implemented based on the final spatial regression model constructed in the first embodiment.
[0157] The global-regional model of snow water equivalent taking into account spatial heterogeneity is specifically used to explore the impact of snow water equivalent related influencing factors on it, and at the same time, the spatial effect, that is, the Eα term in the model, is considered when exploring the impact. There is a set of overall coefficients β0, β1, ...β k By analyzing the positive and negative correlation and the degree of influence on snow water equivalent by the positive and negative and absolute values of different coefficients of different influencing factors, spatial visualization analysis is performed on different Eα items in each region to obtain the changing pattern of spatial influence in the entire study area, which provides conditions for analyzing spatial effects in combination with specific regional environmental factors.
[0158] This embodiment is a specific application of the constructed model. The final regression model constructed in the first embodiment can be used to analyze the changes in snow water equivalent according to the changes in relevant environmental factors.
[0159] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0160] A snow water equivalent grid data modeling method that takes into account spatial heterogeneity is proposed, and global and regional spatial effects are considered at the same time. When performing spatial modeling on remote sensing images, the data is divided into several sub-regions of the same size, and each sub-region is modeled to achieve the purpose of modeling and calculating the entire remote sensing image; using the spatial filtering method, the eigenvector of the spatial adjacency matrix is used to fit the residual, and the fitting result is added as a spatial influence to the previous global model to obtain the final spatial regression model. The present invention can obtain an accurate model of snow water equivalent and its related factors for subsequent research and analysis.
[0161] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A snow water equivalent grid data modeling method taking into account spatial heterogeneity, characterized in that: include: S1: Obtaining grid data of snow water equivalent and preprocessing the obtained grid data; S2: Based on the preprocessed data, a global least squares linear regression model was established with snow water equivalent as the dependent variable and environmental factors related to snow water equivalent as the independent variables: y g =β0+β1x1+β2x2+…+β k x k +e In the formula, y g represents the observed value of snow water equivalent, x1, x2, …x k They represent the first, second and kth related influencing factors of snow water equivalent, β0, β1, …β k They are x1, x2, …x k The coefficient of , ε is the difference between the fitted value and the observed value of the global least squares linear regression model, that is, the residual; S3: extract the residual of the global least squares linear regression model and divide it into several sub-region modeling units of size N×N; S4: for each sub-region modeling unit after division, determine whether the residual has spatial autocorrelation. If it has spatial autocorrelation, execute step S5; otherwise, use the parameters of the global least squares linear regression model in step S2 as the final model parameters of the corresponding sub-region; S5: Modeling the sub-region using a spatial filtering method, specifically including fitting the residual using the eigenvector of the spatial adjacency matrix to obtain a fitting result; S6: Add the fitting results as spatial influences to the global least squares linear regression model constructed in step S2 to obtain the final spatial regression model.
2. The snow water equivalent grid data modeling method according to claim 1, characterized in that: In step S1, the acquired raster data is preprocessed, including projection transformation, mask extraction, outlier processing, nearby missing grid filling, and data standardization.
3. The snow water equivalent grid data modeling method according to claim 1, characterized in that: In step S4, whether the residual has significant spatial autocorrelation is determined by calculating the Moran's index. The Moran's index is reflected by the probability p value, which includes: if p is less than the threshold, indicating that there is significant spatial autocorrelation, then proceed to step S5; otherwise, indicating that there is no significant spatial autocorrelation, then the parameters of the global least squares linear regression model in step S2 are used as the final model parameters of the corresponding sub-region.
4. The snow water equivalent grid data modeling method according to claim 1, characterized in that: Step S5 includes: S5.1: construct a spatial adjacency matrix W according to the adjacency relationship of the grid cells of the sub-regions; S5.2: Centralize the constructed spatial adjacency matrix to obtain matrix C. S5.3: Calculate the eigenvalues and eigenvectors of the matrix C, and perform preliminary screening to obtain the spatial eigenvectors that meet the conditions; S5.4: Based on the spatial feature vectors that meet the conditions, the target feature vectors are gradually screened out using the forward selection method; S5.5: Based on the selected target feature vector, a regional feature function spatial filter value regression model is constructed for each sub-region. The formula is: e i =E i a i +∈ i (i=1,2,…m) Among them, ε i is the residual of the global model of the ith sub-region, α i is the regression coefficient vector of the ith sub-region, and the matrix E i Including j target feature vectors selected from the i-th sub-region, ∈ i is the regional model error vector of the ith sub-region, and m is the total number of sub-regions into which the study area is divided.
5. The snow water equivalent grid data modeling method according to claim 1, characterized in that: Step S6 includes: The fitted values of the regional model constructed by modeling the sub-regions are combined and then added to the fitted values of the global least squares linear regression model to obtain the final spatial regression model. The formula is as follows: in, is the snow water equivalent fitting value of the final spatial regression model, is the snow water equivalent fitting value of the global least squares linear regression model, is the fitted value of the residual of the combined sub-region; The final spatial regression model expression is: In the formula, x1, x2, …x k are the relevant influencing factors of snow water equivalent, β0, β1, …β k is related to x1, x2, …x k The independent global least squares linear regression coefficients, E is the selected feature vector set, α is the regression coefficient vector of the sub-region, and ∈ is the error vector.
6. The snow water equivalent grid data modeling method according to claim 1, characterized in that: The method further comprises step S7, evaluating and analyzing the final spatial regression model.
7. A method for analyzing snow water equivalent, characterized in that: The analysis method is implemented based on the final spatial regression model constructed according to any one of claims 1 to 5.
