A method and device for simulating urban expansion based on neural network
Combining multi-scale neighborhood and trend feature information through the neural network model improves the accuracy of urban expansion simulation, solves the problem that existing models fail to fully utilize multi-scale information and dynamic data, and achieves more accurate urban expansion simulation.
Patent Information
- Application Number
- CN202210785206.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-29
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-06-29
AI Technical Summary
Existing urban expansion simulation models fail to make full use of multi-scale neighborhood information in the process of calculating the suitability of converting non-urban pixels into cities, and only use single- or two-period urban landscape data to correct model parameters, resulting in inaccurate simulation results. lower.
Using a neural network-based urban expansion simulation method, the convolutional neural network (U-Net) is used to extract multi-scale neighborhood feature information and the recurrent neural network (LSTM) is used to extract urban expansion trend feature information, and the two are combined to predict the transformation of urban land space. probability, and perform spatial allocation under the constraints of land demand in the next period.
It improves the accuracy of urban expansion simulation, can more accurately reflect the complex nonlinear relationship of the land system and urban landscape dynamics, and simulates various types of urban expansion, such as edge type and leapfrog expansion.
Smart Images

Figure CN115238572B
Abstract
Description
[0001] Technology Neighborhood
[0002] The invention relates to the field of signal processing technology, and in particular to a method and device for simulating urban expansion based on a neural network. Background Art
[0003] Currently, the world is experiencing rapid and large-scale urban landscape dynamics, which will continue in the future. Although urban landscape area accounts for only a small part of the total land area, urban landscape dynamics have greatly changed the surface processes, which has caused a series of ecological and environmental problems while promoting social and economic development. Urban expansion simulation is an important way to understand the urbanization process, evaluate the ecological and environmental effects of urbanization, and carry out urban planning. Therefore, conducting urban expansion simulation research is crucial for the future sustainable development of cities.
[0004] In recent years, many scholars have conducted research on urban expansion simulation. For example, He et al. (2006) developed the LUSD-urban (Land use scenario dynamics-urban-urban) model by coupling the system dynamics model and the CA model. The model calculates the conversion probability of pixels by weighted summation of driving factors, neighborhoods, and inheritance, and then allocates the space of urban landscape according to the size of the conversion probability.
[0005] Seto et al. (2011) developed the URBANMOD model by improving the GEOMOD model. The model used regional historical urban and driving factor data to obtain the suitability layer using empirical statistical functions and adopted a random allocation method to solve the salt and pepper phenomenon.
[0006] Verburg et al. (2013) developed the CLUMondo model based on the CLUE-S (Conversion of Land Use and its Effects at Small Region Extent) model. The model uses the logistic regression method to generate probability distribution maps of various land use types, sets the relative elasticity coefficient of land use change based on empirical research, and finally completes the land space allocation through an iterative method. Related studies have used the CLUMondo / CLUE-S model to simulate urban landscape dynamics in cities such as Pennsylvania, Spain, and Guangzhou, China.
[0007] Liu et al. (2017) developed a future land use simulation model called FLUS by adding a neural network algorithm to the traditional cellular automation. The model is based on the suitability probability calculation of the neural network and completes the spatial allocation according to the "adaptive inertial competition mechanism". Related studies have used the FLUS model to simulate urban landscape dynamics in the world, the Pearl River Delta and the Three Gorges Reservoir area in China.
[0008] Liang et al. (2020) developed the CFLUS (clustering-based FLUS) model by coupling the fuzzy clustering algorithm based on the FLUS model, and used this model to simulate the future urban landscape dynamics of the Dalian Taiping Bay Development Zone in China. Liang et al. (2021) constructed the Patch Generation Land Use Simulation (PLUS) model by combining the land expansion analysis strategy with the CA model based on multi-type random patch seeds. The PLUS model has been used to simulate urban expansion in the Hangzhou metropolitan area, Wuhan, and Harbin-Changchun urban agglomerations in China.
[0009] However, existing urban expansion simulation models still have shortcomings, resulting in low accuracy of simulation results. First, existing models do not fully utilize multi-scale neighborhood information in the process of calculating the suitability of non-urban pixels to urban areas. Second, existing models only use single-period or two-period urban landscape data to calibrate model parameters, and do not fully utilize urban landscape dynamic information. Summary of the invention
[0010] The present invention provides a method and device for simulating urban expansion based on a neural network, so as to solve the above problems.
[0011] The present invention provides a method for simulating urban expansion based on a neural network, comprising: obtaining basic data for simulating urban expansion;
[0012] Inputting the city expansion simulation basic data into the pre-trained first neural network model and the second neural network model respectively, and obtaining the first conversion probability and the second conversion probability accordingly;
[0013] Allocating urban land space by combining the first conversion probability and the second conversion probability to obtain urban land space information for the next period, so as to realize urban expansion simulation;
[0014] The first conversion probability is the probability of a non-urban pixel being converted into an urban pixel, which is predicted by the first neural network model based on multi-scale neighborhood feature information in the basic data of urban expansion simulation, and the multi-scale neighborhood feature information is extracted by the first neural network;
[0015] The second conversion probability is the probability of a non-urban pixel being converted into an urban pixel, predicted by the second neural network model based on the urban expansion trend characteristic information in the urban expansion simulation basic data, and the urban expansion trend characteristic information is extracted by the second neural network.
[0016] According to a neural network-based urban expansion simulation method provided by the present invention, the first neural network model is a convolutional neural network U-Net model, the U-Net model includes a contraction path and an expansion path, and the contraction path and the expansion path both include multiple convolution blocks;
[0017] Each convolution block extracts the location condition information around the pixel to be evaluated through multiple convolutional layers:
[0018]
[0019] In the formula, represents the result of the convolution operation on the jth pixel to be evaluated in the ith band in the rth convolution kernel of the lth convolution layer, that is, the location condition information. Represents the value of the jth pixel to be evaluated in the Ith band in the input data of the lth convolutional layer, represents the weight of the lth convolutional layer, represents the bias term, N0 represents the number of bands of the input data, K r Indicates the size of the convolution kernel;
[0020] An ELU activation function is set after each convolutional layer. The ELU activation function is used to extract the nonlinear characteristics of the driving factor. The expression of the ELU activation function is:
[0021]
[0022] In the formula, x represents the value of the input pixel;
[0023] A maximum pooling layer is set after each convolution block in the contraction path to weight the lth convolution layer. Perform the maximum pooling operation:
[0024]
[0025] In the formula, is the calculation result of the maximum pooling layer, and K represents the sliding window size of the pooling layer calculation;
[0026] An upsampling layer is set after each convolution block in the extension path to fuse features and restore the size of the feature map output by the convolution block;
[0027] The contraction path and the expansion path are provided with a jump connection, which is used to propagate the spatial information in the basic data of urban expansion simulation from the shallow layer of the contraction path to the deep layer of the expansion path;
[0028] The feature map output by the extension path is calculated through the SoftMax network layer to predict the probability of each pixel to be evaluated being converted into an urban or non-urban environment, that is, the first conversion probability:
[0029]
[0030] In the formula, x i Represents the value of the i-th pixel to be evaluated in the input data, and K represents the urban category or non-urban category.
[0031] According to a neural network-based urban expansion simulation method provided by the present invention, the second neural network model is a recurrent neural network LSTM model;
[0032] The LSTM model includes an input gate i t , output gate o t , forget gate, long memory unit c t and short memory unit h t ;
[0033] Among them, the input gate i t and output gate o t According to the output value h of the short memory unit at time t-1 t-1 and the input value x at time t t get:
[0034] i t =σ(W i ·[h t-1 ,x t ]+b i )
[0035] o t =σ(W o ·[h t-1 ,x t ]+b o )
[0036] Where σ is the Sigmoid activation function, W i and W o are the input gate weight matrix and the output gate weight matrix respectively; h t-1 represents the output value of the short memory unit at time t-1; x t represents the input value at time t; b i and b o They are the input gate bias term and the output gate bias term respectively;
[0037] The forget gate includes the first forget gate f t and the second forget gate The first forget gate f t Used to control the long memory unit state c at time t-1 t-1 c retained until time t t Information, the second forget gate Used to control the input gate i at time t t is used for c at time t t Information:
[0038] f t =σ(W f ·[h t-1 ,x t ]+b f )
[0039]
[0040] Where tanh represents the tanh activation function, W f and W c are the first forget gate weight matrix and the second forget gate weight matrix respectively; h t-1 represents the output value of the short memory unit at time t-1, x t represents the input value at time t, b f and b c They are the first forget gate bias term and the second forget gate bias term respectively;
[0041] Using the first forget gate f t , The Second Forgotten Gate And the long memory unit state c at time t-1 t-1 Calculate the long memory unit state c at time t t :
[0042]
[0043] In the formula, It means element-wise multiplication;
[0044] According to the output gate o t and the long memory cell state c at time t t Calculate the output value h of the LSTM model at time t t :
[0045]
[0046] Where W o is the output gate weight matrix, b o is the output gate bias term, h t-1is the output value of the short memory unit at time t-1;
[0047] Based on the output value h of the LSTM model at time t t , through the SoftMax network layer, the probability of each pixel to be evaluated being converted into an urban or non-urban area is predicted, that is, the second conversion probability. According to a method for simulating urban expansion based on a neural network provided by the present invention, the allocation of urban land space by combining the first conversion probability with the second conversion probability includes:
[0048] Using the optimal coupling weights corresponding to the pre-trained first neural network model and the second neural network model, the first conversion probability and the second conversion probability are calculated to obtain the optimal conversion probability of each pixel to be evaluated;
[0049] Under the constraint of the urban land demand in the next period, the urban land space is allocated from top to bottom according to the size of the optimal conversion probability of the pixel to be evaluated.
[0050] According to a neural network-based urban expansion simulation method provided by the present invention, the optimal coupling weight is obtained in the training process of the first neural network model and the second neural network model in the following manner:
[0051] The sum of the conversion probability output by the first neural network model during the training process and the conversion probability output by the second neural network model during the training process is set to 1;
[0052] The initial weight corresponding to the conversion probability output by the first neural network model during the training process is set to 0, and the final weight is set to 1; the initial weight corresponding to the conversion probability output by the second neural network model during the training process is set to 1, and the final weight is set to 0;
[0053] Setting a weight step, determining a weight value for each city using a predetermined coupling method according to the weight step, and performing coupling calculation based on the determined weight value;
[0054] The calculated coupling result is evaluated by a predetermined evaluation method, and based on the evaluation result, the determined weight value with the highest accuracy is selected as the optimal coupling weight.
[0055] According to a neural network-based urban expansion simulation method provided by the present invention, the predetermined coupling mode includes full-area scale coupling and sub-area scale coupling;
[0056] The whole-region scale coupling is to set the same weight value for each city;
[0057] The zoning scale coupling is to set different weight values for each city.
[0058] According to a neural network-based urban expansion simulation method provided by the present invention, the predetermined evaluation method includes overall accuracy evaluation, Kappa evaluation and FOM evaluation;
[0059] Among them, the overall accuracy assessment OA is:
[0060]
[0061] In the formula, n is the total number of pixels, n kk Simulate the correct number of k-type pixels in the simulation results;
[0062] The Kappa evaluation is:
[0063]
[0064] Where n k+ is the number of k-type pixels in the actual result, n +k is the number of k-type pixels in the simulation results;
[0065] The FOM evaluation is:
[0066] FOM=B / (A+B+C)
[0067] Wherein, B is the number of pixels that are converted from non-urban to urban both in simulation and in reality, A is the number of pixels that are simulated as non-urban pixels but not converted to urban but are actually converted to urban, and C is the number of pixels that are simulated as non-urban pixels but not converted to urban.
[0068] According to a method for simulating urban expansion based on a neural network provided by the present invention, before obtaining basic data for simulating urban expansion, the method further includes:
[0069] A linear regression equation is established based on historical urban population data and historical urban land demand:
[0070]
[0071] In the formula, represents the urban land demand, represents the urban population of the ith province in year t under scenario s, β0 and β1 are both linear fitting parameters, ε i,s represents the correction factor;
[0072] The demand for urban land in the next period is calculated based on the linear regression equation and the urban population in the next period; wherein the urban population in the next period is obtained based on the localized SSPs population and urbanization rate data;
[0073] Under the constraint of the urban land demand in the next period, the urban land space is allocated by combining the first conversion probability and the second conversion probability to obtain the urban land space information in the next period to realize the urban expansion simulation.
[0074] According to a method for simulating urban expansion based on a neural network provided by the present invention, after obtaining basic data for simulating urban expansion, the method further comprises:
[0075] The basic data for urban expansion simulation is standardized to 0-1 to obtain a corresponding driving factor layer; wherein the basic data for urban expansion simulation includes digital elevation model data, slope data, distance to roads data, distance to city centers data, distance to rivers data, soil number data, and average temperature data;
[0076] Obtaining a conversion cost layer, and stacking the driving factor layer, the conversion cost layer, and the historical urban land layer to obtain driving factor data;
[0077] Accordingly, the city expansion simulation basic data is input into the pre-trained first neural network model and the second neural network model respectively, including:
[0078] The driving factor data are respectively input into the pre-trained first neural network model and the second neural network model.
[0079] The present invention also provides a city expansion simulation device based on a neural network, comprising: a land demand acquisition module, used to acquire the city land demand in the next period according to historical city population data, historical city land demand and the city population in the next period;
[0080] A data acquisition module is used to obtain basic data for urban expansion simulation;
[0081] A land allocation module, used to allocate urban land space in combination with the first conversion probability and the second conversion probability, and obtain urban land space information for the next period to realize urban expansion simulation;
[0082] The first conversion probability is the probability of a non-urban pixel being converted into an urban pixel, which is predicted by the first neural network model based on multi-scale neighborhood feature information in the basic data of urban expansion simulation, and the multi-scale neighborhood feature information is extracted by the first neural network;
[0083] The second conversion probability is the probability of a non-urban pixel being converted into an urban pixel, predicted by the second neural network model based on the urban expansion trend characteristic information in the urban expansion simulation basic data, and the urban expansion trend characteristic information is extracted by the second neural network.
[0084] The urban expansion simulation method and device based on neural network provided by the present invention extracts multi-scale neighborhood feature information of the city through the first neural network model, and obtains the first conversion probability based on the prediction; extracts the characteristic information of urban expansion trend through the second neural network model, and obtains the second conversion probability based on the prediction. The first conversion probability and the second conversion probability are combined to accurately simulate the urban expansion situation. BRIEF DESCRIPTION OF THE DRAWINGS
[0085] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. 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 any creative work.
[0086] Figure 1 is a flow chart of a method for simulating urban expansion based on a neural network provided by an embodiment of the present invention;
[0087] Figure 2 is a schematic diagram of an implementation of the first neural network model provided in an embodiment of the present invention to predict a first conversion probability;
[0088] Figure 3 is a schematic diagram of implementing the second conversion probability predicted by the second neural network model provided in an embodiment of the present invention;
[0089] Figure 4 is a comparison chart of model accuracy provided by an embodiment of the present invention;
[0090] Figure 5 is a schematic comparison diagram between actual urban expansion provided by an embodiment of the present invention and urban expansion simulated by a model;
[0091] Figure 6 A schematic diagram of the structure of a city expansion simulation device based on a neural network provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0092] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings 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.
[0093] Most of the existing urban expansion simulation models lack consideration of multi-scale neighborhoods, which restricts the simulation accuracy. For example, in the LUSD-urban model, each pixel is calculated separately in the process of weighted linear combination of driving factors. In the FLUS model, each pixel is put into an artificial neural network and the conversion probability is predicted, and the pixels to be evaluated are not affected by the surrounding pixels.
[0094] Secondly, the existing models lack the utilization of dynamic information of urban landscape. For example, in the LUSD-urban model, only two periods of urban land are used for parameter correction. In the FLUS model, only one period of urban land is used to train the artificial neural network.
[0095] This application provides a new method to improve the accuracy of urban expansion simulation by coupling convolutional neural networks and recurrent neural networks.
[0096] Among them, convolutional neural network is one of the most widely used models in deep learning. Studies have successfully applied it to remote sensing related fields such as object recognition, remote sensing classification, and model simulation. In the process of urban expansion simulation, convolutional neural network can be used to fully explore the spatial feature information contained in the spatial driving factor data, so as to effectively reflect the complex nonlinear relationship of the land system.
[0097] Recurrent neural networks can mine time series information in data and are often used to process sequence data. Recurrent neural networks are also used in geography-related fields such as image classification, agricultural detection, and model simulation. In the process of urban expansion simulation, recurrent neural networks can be used to further mine time series information in multi-period urban landscape data. Combining the spatial characteristics of driving factors extracted by convolutional neural networks with the temporal characteristics of urban landscapes extracted by recurrent neural networks can more accurately simulate urban landscape dynamics.
[0098] The purpose of the present invention is to use an urban expansion simulation model based on convolutional neural networks and recurrent neural networks to simulate the urban landscape dynamics of the Beijing-Tianjin-Hebei urban agglomeration from 2020 to 2050. Specifically, first, the present invention will construct a convolutional neural network and a recurrent neural network respectively, and simulate the future urban landscape dynamics based on historical multi-period urban landscape data and multiple types of driving factors that can effectively reveal human activities and natural impacts. Then, the convolutional neural network and the recurrent neural network are coupled in different ways to explore the impact of different coupling methods on the accuracy of the simulation results. Finally, the optimal coupling method is used to simulate urban expansion from 2020 to 2050. The following is combined with Figure 1-Figure 6 The urban expansion simulation method and device based on neural network of the present invention are specifically described.
[0099] Figure 1 is a flow chart of a method for simulating urban expansion based on a neural network provided by an embodiment of the present invention; Figure 1 As shown, the urban expansion simulation method based on neural network may include the following steps:
[0100] S101, obtaining basic data for urban expansion simulation.
[0101] In this step, the basic data for urban expansion simulation is obtained from urban built-up area data, land use / cover data, digital elevation model (DEM) data, soil data, meteorological observation data and auxiliary geographic data. Among them, the spatial resolution of urban built-up area data from 1992 to 2015 is 1km, and the overall accuracy is 90.9%; in the urban built-up area data in 2020, urban land is defined as areas with non-vegetation and artificial surface coverage exceeding 50%.
[0102] The spatial resolution of land use and land cover data is 30m, including 9 types: cultivated land, forest land, shrubs, grassland, water body, snow, bare land, impermeable layer and wetland, with an overall accuracy of 79.31%.
[0103] The DEM data comes from the geospatial data cloud platform of the Computer Network Information Center of the Chinese Academy of Sciences, with a spatial resolution of 90m.
[0104] The soil condition data comes from the China High-Resolution National Soil Information Grid Basic Attribute Dataset of the National Qinghai-Tibet Plateau Science Data Center, which mainly includes soil organic carbon content, sand content, clay content and silt content, with a spatial resolution of 250m.
[0105] Meteorological observation data come from the National Meteorological Science Data Center, including the average daily maximum temperature and precipitation data of 756 meteorological stations across the country in January and July from 1980 to 2013. The station data were spatially interpolated using the Kriging interpolation method to obtain meteorological data with a spatial resolution of 1 km.
[0106] Auxiliary geographic data include administrative boundary data, city center points, roads, and river data from the National Basic Geographic Information Center.
[0107] To ensure the consistency of all the above data, the raster and vector data projection coordinate systems are unified to Albers through rasterization, projection conversion and resampling operations, and the spatial resolution of the raster data is unified to 500m, thus forming data in a unified format, which is convenient for obtaining the basic data for urban expansion simulation.
[0108] S102, inputting the basic data of urban expansion simulation into the pre-trained first neural network model and the second neural network model respectively, and obtaining the first conversion probability and the second conversion probability accordingly.
[0109] Among them, the first conversion probability is the probability of non-urban pixels being converted into urban pixels, which is predicted by the first neural network model based on multi-scale neighborhood feature information in the urban expansion simulation basic data, and the multi-scale neighborhood feature information is extracted by the first neural network.
[0110] The second conversion probability is the probability of a non-urban pixel being converted into an urban pixel, predicted by the second neural network model based on the urban expansion trend characteristic information in the urban expansion simulation basic data, and the urban expansion trend characteristic information is extracted by the second neural network.
[0111] In this step, after obtaining the basic data of urban expansion simulation, the probability of non-urban pixels being converted into urban pixels in the next period is predicted using the first neural network model and the second neural network model. The first neural network model can extract multi-scale neighborhood feature information of the city from the basic data of urban expansion simulation; the second neural network model can extract urban expansion trend feature information from the basic data of urban expansion simulation.
[0112] S103, allocating urban land space in combination with the first conversion probability and the second conversion probability to obtain urban land space information for the next period to achieve urban expansion simulation.
[0113] In this step, by weighted addition of the first conversion probability and the second conversion probability, the probability of each non-urban pixel being converted into an urban pixel is finally obtained, and then the urban land space allocation is completed from top to bottom based on the size of the probability of the non-urban pixel being converted into an urban pixel.
[0114] In the process of weighting the first conversion probability and the second conversion probability, the weights corresponding to the first conversion probability and the second conversion probability are determined during the training process of the first neural network model and the second neural network model. The first neural network model and the second neural network model are continuously coupled, and the accuracy of the conversion rate is evaluated based on the coupling results. Then, the optimal coupling weight is determined based on the evaluation results, which is used to perform weighted calculation on the first conversion probability and the second conversion probability.
[0115] The urban expansion simulation method based on neural network provided by the embodiment of the present invention extracts multi-scale neighborhood feature information of the city through the first neural network model, and predicts a first conversion probability based on the information; extracts urban expansion trend feature information through the second neural network model, and predicts a second conversion probability based on the information. The first conversion probability and the second conversion probability are combined to accurately simulate the urban expansion situation.
[0116] Figure 2 It is a schematic diagram of an implementation of the first neural network model provided in an embodiment of the present invention predicting a first conversion probability.
[0117] like Figure 2 As shown, the first neural network model is a convolutional neural network U-Net model, which includes a contraction path and an expansion path, and the contraction path and the expansion path both include multiple convolution blocks.
[0118] Each convolution block extracts the location condition information around the pixel to be evaluated through multiple convolutional layers:
[0119]
[0120] In the formula, represents the result of the convolution operation on the jth pixel to be evaluated in the ith band in the rth convolution kernel of the lth convolution layer, that is, the location condition information. Represents the value of the jth pixel to be evaluated in the Ith band in the input data of the lth convolutional layer, represents the weight of the lth convolutional layer, represents the bias term, N0 represents the number of bands of the input data, K r Indicates the size of the convolution kernel.
[0121] An ELU activation function is set after each convolutional layer. The ELU activation function is used to extract the nonlinear characteristics of the driving factor. The expression of the ELU activation function is:
[0122]
[0123] In the formula, x represents the value of the input pixel.
[0124] A maximum pooling layer is set after each convolution block in the contraction path to weight the lth convolution layer. Perform the maximum pooling operation:
[0125]
[0126] In the formula, is the calculation result of the maximum pooling layer, and K represents the sliding window size of the pooling layer calculation.
[0127] An upsampling layer is set after each convolution block in the extension path to fuse features and restore the size of the feature map output by the convolution block.
[0128] The contraction path and the expansion path are provided with a jump connection, which is used to propagate the spatial information in the basic data of urban expansion simulation from the shallow layer of the contraction path to the deep layer of the expansion path.
[0129] The feature map output by the extension path is calculated through the SoftMax network layer to predict the probability of each pixel to be evaluated being converted into an urban or non-urban environment, that is, the first conversion probability:
[0130]
[0131] In the formula, x i Represents the value of the i-th pixel to be evaluated in the input data, and K represents the urban category or non-urban category.
[0132] In this embodiment, the first neural network model is a U-Net convolutional neural network, which consists of a contracting path and an encoder path, each of which contains 5 convolution blocks. Each convolution block has three 3×3 convolution layers, which are used to extract the location condition information around the pixel to be evaluated. The formula is:
[0133]
[0134] In the formula, It represents the convolution operation result of the jth pixel in the i-th band in the r-th convolution kernel of the l-th convolution layer. Represents the value of the jth pixel in the Ith band of the lth layer input data, represents the weight of the convolutional layer, represents the bias term, N0 represents the number of bands of the input data, K r Indicates the size of the convolution kernel. In this embodiment, a 3×3 convolution kernel is used, i.e., K r =3.
[0135] After each convolution, there is an Exponential Linear Unit (ELU) activation function, which is used to extract the nonlinear characteristics of the driving factor. Compared with the ReLU (Rectified Linear Unit, ReLU) function commonly used in convolutional neural network models, the ELU function still has output when the input is negative, and this part of the output also has a certain anti-interference ability, which can eliminate the problem of ReLU gradient disappearance. The ELU function is expressed as:
[0136]
[0137] In the formula, x represents the value of the input pixel.
[0138] In the contracting path, each convolution block is followed by a 2×2 maximum pooling operation, which is used to mitigate the increase in the variance of the estimated value caused by the limited neighborhood size and retain more information about the driving factors. At the same time, the max pooling operation can also mitigate the deviation of the estimated mean caused by the convolution layer parameter error and retain more texture information. The maximum pooling layer can be expressed as:
[0139]
[0140] In the formula, is the calculation result of the pooling layer, K represents the sliding window size of the pooling layer calculation, and in this embodiment, the window size is set to 3×3, that is, K=3.
[0141] In the encoder path, each convolution block is followed by a 2×2 upsampling to fuse features and gradually restore the size of the feature map.
[0142] In addition, in order to obtain more accurate information, the features of each stage in the contracting path are stacked with the shallower features in the corresponding encoder path, that is, skip connections are used to propagate spatial information from the shallow layers of the contracting path to the deep layers of the encoder path.
[0143] In the last layer, a dropout of 0.1 is added to prevent overfitting.
[0144] Multi-scale neighborhood information is extracted through the above-mentioned convolution operation, upsampling operation, maximum pooling operation, and deconvolution operation. Among them, the location condition information output by the convolution layer is part of the multi-scale neighborhood information.
[0145] Finally, the multi-scale neighborhood information is calculated through the SoftMax activation function to obtain the probability of each pixel being converted to urban or non-urban. The formula is:
[0146]
[0147] In the formula, x i represents the value of the i-th pixel in the input data, K represents the category, and in this embodiment, the category refers to urban and non-urban.
[0148] In the output results of the SoftMax activation function, there may be some edge pixels that have not been fully trained and some pixels with a value of 0.5 (indicating that the probability of conversion to urban / non-urban is the same). For this, a 3×3 mean filter is used, that is, the value of the pixel is replaced by the average value around these pixels to avoid the appearance of 0.5 pixels.
[0149] The urban expansion simulation method based on neural network provided by the embodiment of the present invention comprehensively extracts the spatial characteristics of each driving factor and their mutual relationship through the multi-layer convolution operation superimposed in the U-Net model, extracts the multi-scale neighborhood feature information, and then accurately predicts the first conversion probability based on the multi-scale neighborhood feature information. In addition, since in the downsampling process of U-Net, the urban pixels and non-urban pixels at the edge of the city are fused into one pixel; in the upsampling process, the pixels fused in the downsampling process are re-expanded to the original size, the probability of non-urban pixels at the edge of the city being converted into urban pixels will be affected by urban pixels, and their probability of being converted into cities will be greater than that of pixels far away from the city. Therefore, the U-Net model effectively simulates the edge-type urban expansion. In addition, the convolutional recurrent neural network can accurately simulate the expansion direction of the city.
[0150] Figure 3 It is a schematic diagram of an implementation of the second neural network model provided in an embodiment of the present invention to predict the second conversion probability.
[0151] like Figure 3 As shown, the second neural network model is a recurrent neural network LSTM model.
[0152] The LSTM model includes an input gate i t , output gate o t , forget gate, long memory unit c t and short memory unit h t ;
[0153] Among them, the input gate i t and output gate o t According to the short memory unit h at time t-1 t-1 and the input value x at time t t get:
[0154] i t =σ(W i ·[h t-1 ,x t ]+b i )
[0155] o t =σ(W o ·[h t-1 ,x t ]+bo )
[0156] Where σ is the Sigmoid activation function, W i and W o are the input gate weight matrix and the output gate weight matrix respectively; h t-1 represents the output value of the short memory unit at time t-1; x t represents the input value at time t; b i and b o They are the input gate bias term and the output gate bias term respectively;
[0157] The forget gate includes the first forget gate f t and the second forget gate The first forget gate f t Used to control the long memory unit state c at time t-1 t-1 c retained until time t t Information, the second forget gate Used to control the input gate i at time t t is used for c at time t t Information:
[0158] f t =σ(W f ·[h t-1 ,x t ]+b f )
[0159]
[0160] Where tanh represents the tanh activation function, W f and W c are the first forget gate weight matrix and the second forget gate weight matrix respectively; h t-1 represents the output value of the short memory unit at time t-1, x t represents the input value at time t, b f and b c They are the first forget gate bias term and the second forget gate bias term respectively;
[0161] Using the first forget gate f t , The Second Forgotten Gate And the long memory unit state c at time t-1 t-1 Calculate the long memory unit state c at time t t :
[0162]
[0163] In the formula, It means element-wise multiplication;
[0164] According to the output gate o t and the long memory cell state c at time t t Calculate the output value h of the LSTM model at time t t :
[0165]
[0166] Where W o is the output gate weight matrix, b o is the output gate bias term, h t-1 is the output value of the short memory unit at time t-1;
[0167] Based on the output value h of the LSTM model at time t t , through the SoftMax network layer, the probability of each pixel to be evaluated being converted into an urban or non-urban environment is predicted, that is, the second conversion probability.
[0168] In this embodiment, the second neural network model is an LSTM model. LSTM is a special recurrent neural network that is mainly used to solve the gradient vanishing and gradient exploding problems in the long sequence training process. LSTM can perform better in longer sequences. The LSTM model can extract time series information from historical urban landscape dynamic data and calculate the probability of converting non-urban pixels into urban pixels.
[0169] Among them, LSTM includes three gates (input gate i t , output gate o t and forget gate) and two memory units (long memory c t and short memory h t ). The input gate and output gate are used to output the state h according to the short memory unit at time t-1. t-1 and the input value x at time t t Control neural network input information i t and output information o t , the formula is:
[0170] i t =σ(W i ·[h t-1 ,x t ]+b i )
[0171] o t =σ(W o ·[h t-1 ,x t ]+b o 0
[0172] Where σ is the Sigmoid activation function, W i and Wo are the input gate weight matrix and the output gate weight matrix respectively; h t-1 represents the output value of the short memory unit at time t-1; x t represents the input value at time t; b i and b o They are the input gate bias term and the output gate bias term respectively.
[0173] The forget gate includes f t and f t Determines the state c of the long memory unit at time t-1 t-1 How many c are retained at time t? t , Used to control the input information i at time t t How much can be used for c at time t t :
[0174] f t =σ(W f ·[h t-1 ,x t ]+b f )
[0175]
[0176] Where σ is the sigmoid activation function, tanh is the tanh activation function, and W f and W c are the first forget gate weight matrix and the second forget gate weight matrix respectively; h t-1 represents the output value of the short memory unit at time t-1, x t represents the input value at time t, b i and b c They are the first forget gate bias term and the second forget gate bias term respectively.
[0177] The calculated result f t and Used to calculate the current long memory unit state c t The formula is:
[0178]
[0179] The final output of LSTM (h t ) by the output gate o t and the cell state c t Determined jointly, the calculation method is:
[0180]
[0181] Finally, the final output of LSTM (h t) is input into the fully connected layer and the softmax layer to predict the second conversion probability.
[0182] The urban expansion simulation method based on neural network provided by the embodiment of the present invention fully extracts the characteristic information of urban expansion trend through LSTM recurrent neural network, and then accurately predicts the second conversion probability based on the characteristic information of urban expansion trend, and combines it with the multi-scale neighborhood characteristic information corresponding to the first conversion probability, so as to further improve the prediction accuracy. In addition, since the order in which the pixels enter the recurrent neural network is random in LSTM, when calculating the probability of non-urban pixels being converted into cities, only the influence of urban landscape dynamics and location factors is considered. Therefore, the recurrent neural network can simulate the leapfrog urban expansion, which is difficult to simulate by other models. By coupling U-Net and LSTM, the advantages of both can be brought into play, and the marginal urban expansion occurring in the surrounding part of the city and the leapfrog urban expansion that is not connected to the existing city can be accurately simulated, so as to simulate the urban expansion more effectively.
[0183] Furthermore, the allocating urban land space by combining the first conversion probability and the second conversion probability includes:
[0184] The first conversion probability and the second conversion probability are calculated using the optimal coupling weights corresponding to the pre-trained first neural network model and the second neural network model to obtain the optimal conversion probability of each pixel to be evaluated.
[0185] Under the constraint of the urban land demand in the next period, the urban land space is allocated from top to bottom according to the size of the optimal conversion probability of the pixel to be evaluated.
[0186] In this embodiment, the optimal coupling weight is determined during the training process. Weight values are set in advance for the conversion probabilities output by the U-Net model and the LSTM model. The conversion probabilities output by the two models are then weighted calculated using the set weight values to obtain the final conversion probability. By comparing it with the actual conversion probability, it is evaluated that under what set weight value the final conversion probability is closest to the actual conversion probability, thereby determining the optimal coupling weight between the U-Net model and the LSTM model.
[0187] It should be noted that before combining the second conversion probability output by LSTM with the first conversion probability output by U-Net, the histogram contrast stretching is performed on the second conversion probability output by LSTM to make the pixel values distributed around 0.5 without changing the relative size of the pixel values, so as to reduce the impact of the deviation of the pixel values on the coupling results.
[0188] Furthermore, the optimal coupling weight is obtained in the following manner during the training process of the first neural network model and the second neural network model.
[0189] The sum of the conversion probability output by the first neural network model during training and the conversion probability output by the second neural network model during training is set to 1.
[0190] The initial weight corresponding to the conversion probability output by the first neural network model during the training process is set to 0, and the end weight is set to 1; the initial weight corresponding to the conversion probability output by the second neural network model during the training process is set to 1, and the end weight is set to 0.
[0191] A weight step is set, a weight value is determined for each city according to the weight step using a predetermined coupling method, and coupling calculation is performed based on the determined weight value.
[0192] The calculated coupling result is evaluated by a predetermined evaluation method, and based on the evaluation result, the determined weight value with the highest accuracy is selected as the optimal coupling weight.
[0193] In this embodiment, the optimal coupling weight is found by enumeration method. Specifically, ① the sum of the probabilities of U-Net and LSTM outputs is set to 1; ② the initial weight of U-Net output probability is set to 0, the end weight is set to 1, and the initial weight of LSTM output probability is set to 1, and the end weight is set to 0; ③ the weight step is set to 0.1, and 10 couplings are performed; ④ the accuracy of the 10 coupling results is evaluated by multiple evaluation methods, and the weight corresponding to the group with the highest accuracy is selected from the 10 groups of results as the optimal coupling weight.
[0194] Furthermore, the predetermined coupling mode includes global scale coupling and sub-district scale coupling; the global scale coupling is to set the same weight value for each city; the sub-district scale coupling is to set a different weight value for each city.
[0195] Among them, the coupling methods include full-area-scale coupling and sub-area-scale coupling. Specifically, full-area-scale coupling means using the same weight for all cities; sub-area-scale coupling means using different weights for each city. After experimental comparison, it is found that sub-area-scale coupling has a better effect. In this embodiment, sub-area-scale coupling is selected.
[0196] Further, the predetermined evaluation method includes overall accuracy evaluation, Kappa evaluation and FOM evaluation;
[0197] Among them, the overall accuracy assessment OA is:
[0198]
[0199] In the formula, n is the total number of pixels, n kk Simulate the correct number of k-type pixels in the simulation results.
[0200] The Kappa evaluation is:
[0201]
[0202] Where n k+ is the number of k-type pixels in the actual result, n +k is the number of type k pixels in the simulation results.
[0203] The FOM evaluation is:
[0204] FOM=B / (A+B+C)
[0205] Where B is the number of pixels that are converted from non-urban to urban both in simulation and in reality, A is the number of pixels that are simulated as non-urban pixels but not converted to urban but are actually converted to urban, and C is the number of pixels that are simulated as non-urban pixels but not converted to urban.
[0206] In this embodiment, in order to evaluate the accuracy of the model, overall accuracy OA, Kappa and FOM are selected as evaluation criteria.
[0207] Among them, the calculation methods of overall accuracy OA and Kappa coefficient are:
[0208]
[0209]
[0210] Where n is the total number of pixels; kk Simulate the correct number of k-type pixels in the simulation results; n k+ is the number of k-type pixels in the actual result, n +k is the number of type k pixels in the simulation results.
[0211] FOM indicates the consistency between the simulated results and the actual results of the pixels that change in the simulation results. It can provide a relatively comprehensive evaluation of the performance of the landscape dynamics model. The FOM calculation method is:
[0212] FOM=B / (A+B+C)
[0213] Where B is the number of pixels that are converted from non-urban to urban both in simulation and in reality, A is the number of pixels that are simulated as non-urban pixels but not converted to urban but are actually converted to urban, and C is the number of pixels that are simulated as non-urban pixels but not converted to urban.
[0214] This embodiment uses the above three evaluation methods to evaluate the performance of a single U-Net model, a single LSTM model, a fully coupled U-Net and LSTM model, and a partitioned coupled U-Net and LSTM model. The corresponding evaluation results are shown in Figure 2. Figure 4 The corresponding urban expansion simulation results are shown in Figure 5 shown.
[0215] from Figure 4 as well as Figure 5 It can be seen that the average OA accuracy of the partition is 99.18%, the average Kappa coefficient is 0.8812, and the average FOM is 0.1323. The average OA accuracy of the simulation results of the whole area coupling method is 99.16%, the average Kappa coefficient is 0.8787, and the average FOM is 0.1229. The average overall accuracy of the simulation results using U-Net is 99.16%, the average Kappa coefficient is 0.8785, and the average FOM is 0.1219. The average overall accuracy of the simulation results using LSTM is 99.09%, the average Kappa coefficient is 0.8690, and the average FOM is 0.0820. In summary, the results simulated using the partition coupling method have the highest accuracy.
[0216] In addition, from the perspective of urban scale, the simulation results of each city using the partition coupling method have the highest accuracy. Among them, the simulation results of Qinhuangdao and Zhangjiakou using LSTM are consistent with the simulation results of the partition coupling method, both of which are the highest. The simulation results of Chengde, Cangzhou, Langfang and Hengshui using U-Net are consistent with the simulation results of the partition coupling method, both of which are the highest. The simulation results of Handan and Hengshui using the overall coupling method are consistent with the simulation results of the partition coupling method, both of which are the highest.
[0217] Furthermore, before obtaining the basic data for urban expansion simulation, the method further includes:
[0218] A linear regression equation is established based on historical urban population data and historical urban land demand:
[0219]
[0220] In the formula, represents the urban land demand, represents the urban population of the ith province in year t under scenario s, β0 and β1 are both linear fitting parameters, ε i,s Indicates the correction factor.
[0221] The urban land demand for the next period is calculated based on the linear regression equation and the urban population for the next period; wherein the urban population for the next period is obtained based on the localized SSPs population and urbanization rate data.
[0222] Under the constraint of the urban land demand in the next period, the urban land space is allocated by combining the first conversion probability and the second conversion probability to obtain the urban land space information in the next period to realize the urban expansion simulation.
[0223] In this example, historical population data are derived from the urban population statistics of each province published by the National Bureau of Statistics, historical urban land demand is obtained from land use / cover data, and the urban population number for the next period is derived from the localized SSPs population and urbanization rate data of each province in China from 2021 to 2100 by Chen et al. (2020b).
[0224] The linear relationship between urban population and urban land demand is fitted by using historical population data and historical urban land demand. Then, based on the fitted linear relationship and the future urban population obtained from the localized SSPs population and urbanization rate data of each province in China from 2021 to 2100, the future urban land demand can be calculated.
[0225] After obtaining historical population data and historical urban land demand, linear regression is used to estimate urban land demand under each SSPs (Shared Socioeconomic Pathways, SSPs) scenario. Specifically, first, a univariate linear regression equation is established for the urban population and urban land area of each province, and the equation is corrected. The corrected equation is as follows:
[0226]
[0227] In the formula, represents the urban land demand, represents the urban population of the ith province in year t under scenario s, β0 and β1 represent linear fitting parameters, and ε i,s represents the correction factor, which can be expressed as
[0228] All regression equations R 2 All of them are greater than 0.85, satisfying the significance test at the 0.05 level. After the regression equation is established, the localized SSPs population and urbanization rate data are used to obtain the urban population of each province under different SSPs from 2021 to 2050, and substitute them into the regression equation to estimate the future urban land demand of each province under each SSP.
[0229] Furthermore, after obtaining the basic data for urban expansion simulation, the method further includes:
[0230] The basic data of urban expansion simulation is standardized to 0-1 to obtain the corresponding driving factor layer.
[0231] The basic data for urban expansion simulation include digital elevation model data, slope data, distance data from roads, distance data from city centers, distance data from rivers, soil data and average temperature data.
[0232] A conversion cost layer is obtained, and the driving factor layer, the conversion cost layer and the historical urban land layer are stacked to obtain driving factor data.
[0233] Correspondingly, the step of inputting the basic data of urban expansion simulation into the pre-trained first neural network model and the second neural network model respectively includes: inputting the driving factor data into the pre-trained first neural network model and the second neural network model respectively.
[0234] In this embodiment, the digital elevation model (DEM) data, slope data, distance to the road data, distance to the city center data, distance to the river data, soil data, and average temperature data are first standardized to 0-1 to obtain the corresponding driving factor layer.
[0235] Then, different land cover / use types are assigned corresponding conversion costs to obtain the conversion cost layer.
[0236] Finally, the driving factor layer, the conversion cost layer, and the historical urban land layer are stacked into a data cube, namely the driving factor data. The driving factor data is predicted using the pre-trained first neural network model and the second neural network model. The above-mentioned driving factor data preprocessing is also applied in the training process. When the first neural network model and the second neural network model are trained, the training data is pre-processed with driving factor data to obtain the driving factor data for training.
[0237] It should be noted that when training the first neural network model, it is necessary to increase the number of training samples to improve the performance of the neural network. This embodiment cuts the input data for training into small patches and increases the number of samples through rotation operations. Among them, the specific cutting method is: 1. Cut the original data set into 256×256 patches; 2. Make the patches overlap by 75%; 3. Rotate all patches by 90°, 180° and 270°. After the cutting is completed, 90% of the data is selected as training samples and 10% of the data is selected as test samples, which are used to train and verify the first neural network model respectively.
[0238] When training the second neural network model, 90% of the data are directly selected as training samples and 10% of the data are selected as test samples, and are input into the second neural network model pixel by pixel.
[0239] Figure 6 A schematic diagram of the structure of a city expansion simulation device based on a neural network provided in an embodiment of the present invention, such as Figure 6 As shown, a city expansion simulation device based on a neural network includes:
[0240] The data acquisition module 601 is used to acquire basic data for urban expansion simulation.
[0241] In this module, the basic data for urban expansion simulation are obtained from urban built-up area data, land use / cover data, digital elevation model (DEM) data, soil data, meteorological observation data and auxiliary geographic data.
[0242] In addition, to ensure the consistency of all the above data, the raster and vector data projection coordinate systems are unified to Albers through rasterization, projection conversion and resampling operations, and the spatial resolution of the raster data is unified to 500m, thus forming data in a unified format, which is convenient for obtaining the basic data for urban expansion simulation.
[0243] The conversion probability acquisition module 602 is used to input the city expansion simulation basic data into the pre-trained first neural network model and the second neural network model respectively, and obtain the first conversion probability and the second conversion probability accordingly.
[0244] Among them, the first conversion probability is the probability of non-urban pixels being converted into urban pixels, which is predicted by the first neural network model based on multi-scale neighborhood feature information in the urban expansion simulation basic data, and the multi-scale neighborhood feature information is extracted by the first neural network.
[0245] The second conversion probability is the probability of a non-urban pixel being converted into an urban pixel, predicted by the second neural network model based on the urban expansion trend characteristic information in the urban expansion simulation basic data, and the urban expansion trend characteristic information is extracted by the second neural network.
[0246] In this module, the basic data for urban expansion simulation are obtained from urban built-up area data, land use / cover data, digital elevation model (DEM) data, soil data, meteorological observation data and auxiliary geographic data.
[0247] After obtaining the basic data of urban expansion simulation, the first neural network model and the second neural network model are used to predict the probability of non-urban pixels being converted into urban pixels in the next period. The first neural network model can extract multi-scale neighborhood feature information of the city from the basic data of urban expansion simulation; the second neural network model can extract urban expansion trend feature information from the basic data of urban expansion simulation.
[0248] The land allocation module 603 is used to allocate urban land space in combination with the first conversion probability and the second conversion probability to obtain urban land space information for the next period to realize urban expansion simulation.
[0249] In this module, by weighted addition of the first conversion probability and the second conversion probability, the probability of each non-urban pixel being converted into an urban pixel is finally obtained, and then the urban land space allocation is completed from top to bottom based on the size of the probability of the non-urban pixel being converted into an urban pixel.
[0250] In the process of weighting the first conversion probability and the second conversion probability, the weights corresponding to the first conversion probability and the second conversion probability are determined during the training process of the first neural network model and the second neural network model. The first neural network model and the second neural network model are continuously coupled, and the accuracy of the conversion rate is evaluated based on the coupling results. Then, the optimal coupling weight is determined based on the evaluation results, which is used to perform weighted calculation on the first conversion probability and the second conversion probability.
[0251] The urban expansion simulation device based on neural network provided by the embodiment of the present invention extracts multi-scale neighborhood feature information of the city through the first neural network model, and obtains a first conversion probability based on the prediction; extracts urban expansion trend feature information through the second neural network model, and obtains a second conversion probability based on the prediction. The first conversion probability and the second conversion probability are combined to accurately simulate the urban expansion situation.
[0252] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field may understand and implement it without creative work.
[0253] Through the description of the above implementation methods, technicians in this field can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiment.
[0254] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, ordinary technicians in this field should understand that they can still modify the technical solutions recorded in the aforementioned embodiments, or replace some of the technical features therein with equivalents. However, these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for simulating urban expansion based on a neural network, characterized in that: include: Obtain basic data for urban expansion simulation; Inputting the city expansion simulation basic data into the pre-trained first neural network model and the second neural network model respectively, and obtaining the first conversion probability and the second conversion probability accordingly; Allocating urban land space by combining the first conversion probability and the second conversion probability to obtain urban land space information for the next period, so as to realize urban expansion simulation; The first conversion probability is the probability of a non-urban pixel being converted into an urban pixel, which is predicted by the first neural network model based on multi-scale neighborhood feature information in the basic data of urban expansion simulation, and the multi-scale neighborhood feature information is extracted by the first neural network; The second conversion probability is a probability of a non-urban pixel being converted into an urban pixel, which is predicted by the second neural network model based on the urban expansion trend characteristic information in the urban expansion simulation basic data, and the urban expansion trend characteristic information is extracted by the second neural network; The first neural network model is a convolutional neural network U-Net model, the U-Net model includes a contraction path and an expansion path, and the contraction path and the expansion path both include a plurality of convolution blocks; Each convolution block extracts the location condition information around the pixel to be evaluated through multiple convolutional layers: ; In the formula, Indicates The convolutional layer r The convolution kernel i Band j The result of the convolution operation on the pixels to be evaluated, i.e., the location condition information, Indicates The convolutional layer input data I Band j The value of the pixel to be evaluated, Indicates The weights of the convolutional layers, represents the bias term, Indicates the number of bands of the input data. Indicates the size of the convolution kernel; An ELU activation function is set after each convolutional layer. The ELU activation function is used to extract the nonlinear characteristics of the driving factor. The expression of the ELU activation function is: ; In the formula, x Represents the value of the input pixel; A maximum pooling layer is set after each convolution block in the contraction path to l The weights of the convolutional layers Perform the maximum pooling operation: ; In the formula, is the calculation result of the maximum pooling layer, K Indicates the sliding window size for pooling layer calculation; An upsampling layer is set after each convolution block in the extension path to fuse features and restore the size of the feature map output by the convolution block; The contraction path and the expansion path are provided with a jump connection, which is used to propagate the spatial information in the basic data of urban expansion simulation from the shallow layer of the contraction path to the deep layer of the expansion path; The feature map output by the extension path is calculated through the SoftMax network layer to predict the probability of each pixel to be evaluated being converted into an urban or non-urban environment, that is, the first conversion probability: ; In the formula, Represents the input data i The value of the pixel to be evaluated, K represents an urban or non-urban category; Represents the input data j The value of the pixel to be evaluated; The second neural network model is a recurrent neural network LSTM model; The LSTM model includes an input gate i t , output gate o t , forget gate, long memory unit c t and short memory cells h t ; Among them, the input gate i t and output gate o t According to the output value of the short memory unit at time t-1 h t−1 and the input value at time t x t get: ; In the formula, is the Sigmoid activation function, W i and W o are the input gate weight matrix and the output gate weight matrix respectively; h t−1 Represents the output value of the short memory unit at time t-1; x t represents the input value at time t; b i and b o They are the input gate bias term and the output gate bias term respectively; The forget gate includes the first forget gate f t and the second forget gate , the first forget gate f t Used to control the state of the long memory unit at time t−1 c t−1 Keep until t Moment c t Information, the second forget gate Used to control the input gate at time t i t Used for t Moment c t Information: ; In the formula, tanh represents the tanh activation function, W f and W c They are the first forget gate weight matrix and the second forget gate weight matrix respectively; h t−1 express t-1 The output value of the short-term memory unit, x t express t The input value at the time, b f and b c They are the first forget gate bias term and the second forget gate bias term respectively; Using the first forget gate f t , The Second Forgotten Gate and the state of the long memory unit at time t−1 c t−1 Calculate the state of the long memory unit at time t c t : ; In the formula, It means element-wise multiplication; According to the output gate o t With the t The state of the long memory unit at time c t The LSTM model is calculated t Output value at time h t : ; Based on the LSTM model t Output value at time h t , through the SoftMax network layer, the probability of each pixel to be evaluated being converted into an urban or non-urban area is predicted, that is, the second conversion probability; The allocating urban land space by combining the first conversion probability and the second conversion probability includes: Using the optimal coupling weights corresponding to the pre-trained first neural network model and the second neural network model, the first conversion probability and the second conversion probability are calculated to obtain the optimal conversion probability of each pixel to be evaluated; Under the constraint of the urban land demand in the next period, the urban land space is allocated from top to bottom according to the size of the optimal conversion probability of the pixel to be evaluated.
2. The urban expansion simulation method based on neural network according to claim 1 is characterized in that: The optimal coupling weight is obtained in the training process of the first neural network model and the second neural network model by: The sum of the conversion probability output by the first neural network model during the training process and the conversion probability output by the second neural network model during the training process is set to 1; Set the initial weight corresponding to the conversion probability output by the first neural network model during the training process to 0, and the final weight to 1; The initial weight corresponding to the conversion probability output by the second neural network model during the training process is 1, and the final weight is 0; Setting a weight step, determining a weight value for each city using a predetermined coupling method according to the weight step, and performing coupling calculation based on the determined weight value; The calculated coupling result is evaluated by a predetermined evaluation method, and based on the evaluation result, the determined weight value with the highest accuracy is selected as the optimal coupling weight.
3. The urban expansion simulation method based on neural network according to claim 2 is characterized in that: The predetermined coupling mode includes full-area scale coupling and subarea scale coupling; The whole-region scale coupling is to set the same weight value for each city; The zoning scale coupling is to set different weight values for each city.
4. The urban expansion simulation method based on neural network according to claim 2 is characterized in that: The predetermined evaluation methods include overall accuracy evaluation, Kappa evaluation and FOM evaluation; Among them, the overall accuracy assessment OA is: ; In the formula, n is the total number of pixels, For the simulation results k The correct number of type pixels is simulated; The Kappa evaluation is: ; In the formula, For actual results k The number of type pixels, For the simulation results k The number of type pixels; The FOM evaluation is: ; In the formula, B is the number of pixels converted from non-urban to urban in both simulation and reality, A is the number of pixels simulated as non-urban pixels that were not converted to urban but were actually converted to urban pixels. C The number of cells that were simulated to be converted to urban by non-urban cells but were not actually converted to urban.
5. The urban expansion simulation method based on neural network according to claim 1, characterized in that: Before obtaining the basic data for urban expansion simulation, the method further includes: A linear regression equation is established based on historical urban population data and historical urban land demand: ; In the formula, represents the urban land demand, Indicates the situation s Next t Year i The urban population of the provinces , All are i The linear fitting parameters for each province are: represents the correction factor; The demand for urban land in the next period is calculated based on the linear regression equation and the urban population in the next period; wherein the urban population in the next period is obtained based on the localized SSPs population and urbanization rate data; Under the constraint of the urban land demand in the next period, the urban land space is allocated by combining the first conversion probability and the second conversion probability to obtain the urban land space information in the next period to realize the urban expansion simulation.
6. The urban expansion simulation method based on neural network according to claim 1, characterized in that: After obtaining the basic data for urban expansion simulation, the method further includes: The basic data for urban expansion simulation is standardized to 0-1 to obtain a corresponding driving factor layer; wherein the basic data for urban expansion simulation includes digital elevation model data, slope data, distance to roads data, distance to city centers data, distance to rivers data, soil number data, and average temperature data; Obtaining a conversion cost layer, and stacking the driving factor layer, the conversion cost layer, and the historical urban land layer to obtain driving factor data; Accordingly, the city expansion simulation basic data is input into the pre-trained first neural network model and the second neural network model respectively, including: The driving factor data are respectively input into the pre-trained first neural network model and the second neural network model.
7. A city expansion simulation device based on neural network, characterized in that: include: A data acquisition module is used to obtain basic data for urban expansion simulation; A conversion probability acquisition module is used to input the basic data of urban expansion simulation into the pre-trained first neural network model and the second neural network model respectively, and obtain the first conversion probability and the second conversion probability accordingly; A land allocation module, used to allocate urban land space in combination with the first conversion probability and the second conversion probability, and obtain urban land space information for the next period to realize urban expansion simulation; The first conversion probability is the probability of a non-urban pixel being converted into an urban pixel, which is predicted by the first neural network model based on multi-scale neighborhood feature information in the basic data of urban expansion simulation, and the multi-scale neighborhood feature information is extracted by the first neural network; The second conversion probability is a probability of a non-urban pixel being converted into an urban pixel, which is predicted by the second neural network model based on the urban expansion trend characteristic information in the urban expansion simulation basic data, and the urban expansion trend characteristic information is extracted by the second neural network; The first neural network model is a convolutional neural network U-Net model, the U-Net model includes a contraction path and an expansion path, and the contraction path and the expansion path both include a plurality of convolution blocks; Each convolution block extracts the location condition information around the pixel to be evaluated through multiple convolutional layers: ; In the formula, Indicates The convolutional layer r The convolution kernel i Band j The result of the convolution operation on the pixels to be evaluated, i.e., the location condition information, Indicates The convolutional layer input data I Band j The value of the pixel to be evaluated, Indicates The weights of the convolutional layers, represents the bias term, Indicates the number of bands of the input data. Indicates the size of the convolution kernel; An ELU activation function is set after each convolutional layer. The ELU activation function is used to extract the nonlinear characteristics of the driving factor. The expression of the ELU activation function is: ; In the formula, x Represents the value of the input pixel; A maximum pooling layer is set after each convolution block in the contraction path to l The weights of the convolutional layers Perform the maximum pooling operation: ; In the formula, is the calculation result of the maximum pooling layer, K Indicates the sliding window size for pooling layer calculation; An upsampling layer is set after each convolution block in the extension path to fuse features and restore the size of the feature map output by the convolution block; The contraction path and the expansion path are provided with a jump connection, which is used to propagate the spatial information in the basic data of urban expansion simulation from the shallow layer of the contraction path to the deep layer of the expansion path; The feature map output by the extension path is calculated through the SoftMax network layer to predict the probability of each pixel to be evaluated being converted into an urban or non-urban environment, that is, the first conversion probability: ; In the formula, Represents the input data i The value of the pixel to be evaluated, K represents an urban or non-urban category; Represents the input data j The value of the pixel to be evaluated; The second neural network model is a recurrent neural network LSTM model; The LSTM model includes an input gate i t , output gate o t , forget gate, long memory unit c t and short memory cells h t ; Among them, the input gate i t and output gate o t According to the output value of the short memory unit at time t-1 h t−1 and the input value at time t x t get: ; In the formula, is the Sigmoid activation function, W i and W o are the input gate weight matrix and the output gate weight matrix respectively; h t−1 Represents the output value of the short memory unit at time t-1; x t represents the input value at time t; b i and b o They are the input gate bias term and the output gate bias term respectively; The forget gate includes the first forget gate f t and the second forget gate , the first forget gate f t Used to control the state of the long memory unit at time t−1 c t−1 Keep until t Moment c t Information, the second forget gate Used to control the input gate at time t i t Used for t Moment c t Information: ; In the formula, tanh represents the tanh activation function, W f and W c They are the first forget gate weight matrix and the second forget gate weight matrix respectively; h t−1 express t-1 The output value of the short-term memory unit, x t express t The input value at the time, b f and b c They are the first forget gate bias term and the second forget gate bias term respectively; Using the first forget gate f t , The Second Forgotten Gate and the state of the long memory unit at time t−1 c t−1 Calculate the state of the long memory unit at time t c t : ; In the formula, It means element-wise multiplication; According to the output gate o t With the t The state of the long memory unit at time c t The LSTM model is calculated t Output value at time h t : ; Based on the LSTM model t Output value at time h t , through the SoftMax network layer, the probability of each pixel to be evaluated being converted into an urban or non-urban area is predicted, that is, the second conversion probability; The allocating urban land space by combining the first conversion probability and the second conversion probability includes: Using the optimal coupling weights corresponding to the pre-trained first neural network model and the second neural network model, the first conversion probability and the second conversion probability are calculated to obtain the optimal conversion probability of each pixel to be evaluated; Under the constraint of the urban land demand in the next period, the urban land space is allocated from top to bottom according to the size of the optimal conversion probability of the pixel to be evaluated.
