Urban toughness evaluation method, device and equipment for urban planning and medium
By processing the weights of multiple indicators given by experts using principal component analysis, the importance of evaluation indicators in urban resilience assessment is determined, which solves the problem of insufficient accuracy in urban resilience assessment and enables more scientific urban planning.
Patent Information
- Application Number
- CN202411101612.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-11-26
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The accuracy of existing urban resilience assessment results is insufficient, making it difficult to effectively guide urban planning and the sustainable development of human and environmental systems.
Principal component analysis is used to process the indicator weight vectors given by multiple experts to obtain the projection matrix, and a temporary vector is constructed to determine the importance of the evaluation indicators. The indicator weights are then adjusted by combining objective and subjective information to improve the accuracy of the evaluation.
It improves the accuracy of urban resilience assessment, enabling it to more objectively reflect the complexity and diversity of urban systems and enhance the scientific rigor and reliability of urban planning.
Smart Images

Figure CN119026946A_ABST
Abstract
Description
Technical Field
[0001] The present invention is applicable to the field of data processing technology, and in particular relates to an urban resilience assessment method, device, equipment and medium for urban planning. Background Art
[0002] Urban resilience refers to the ability of the urban infrastructure system to effectively resist the impact of disasters, maintain the basic operation of the economic, social, infrastructure, and material support systems when facing emergencies such as economic crises, public health incidents, earthquakes, floods, fires, wars, and terrorist attacks, and to quickly resume normal operations after a disaster. It is very important to improve urban resilience in the process of urban planning, development, and construction.
[0003] In order to evaluate urban resilience, the existing methods usually focus on basic indicators in the five major areas of economy, society, system, ecology and facilities related to urban resilience. Experts give corresponding importance weights to each basic indicator based on actual conditions, and calculate the urban resilience index by weighting the data of each basic indicator with the given weights. The internal resilience of the urban system is measured, thereby providing guidance for the sustainability of human and environmental systems and the study of urban resilience.
[0004] However, with the rapid development of global urbanization, the actual situation of resilient city construction is complex and changeable. It is difficult for experts to accurately assess the importance weights of all basic indicators, resulting in low accuracy of the evaluation results of resilient city planning and construction, making it difficult to provide accurate and effective guidance and suggestions for the sustainability of human and environmental systems and urban resilience research.
[0005] Therefore, how to improve the accuracy of urban resilience assessment results used in urban planning has become an urgent problem to be solved. Summary of the invention
[0006] In view of this, an embodiment of the present invention provides an urban resilience assessment method, device, equipment and medium for urban planning to solve the problem of insufficient accuracy of current urban resilience assessment results.
[0007] In a first aspect, a method for evaluating urban resilience for urban planning is provided, the method comprising: Obtaining a set number of manually given indicator weight vectors, each of which is composed of indicator weights corresponding to various evaluation indicators of the target city regarding urban resilience as components; All the indicator weight vectors are spliced into a sample matrix, and a principal component analysis is performed on the sample matrix to obtain a corresponding projection matrix; Constructing a temporary vector corresponding to the evaluation index, wherein the number of components of the temporary vector is the same as the number of the evaluation indexes, the i-th element of the i-th temporary vector corresponding to the i-th evaluation index is 1, and the remaining elements are 0, multiplying the transposed matrix of the projection matrix by the i-th temporary vector to obtain a mapping vector, and taking the square of the mapping vector as the importance value of the i-th evaluation index; Based on the importance value of each of the evaluation indicators, the urban resilience evaluation value of the target city is determined.
[0008] In a second aspect, a device for evaluating urban resilience for urban planning is provided, the device comprising: A weight vector construction module is used to obtain a set number of manually given indicator weight vectors, each of which is composed of indicator weights corresponding to various evaluation indicators of urban resilience of the target city as components; A projection matrix acquisition module is used to splice all the indicator weight vectors into a sample matrix, and perform principal component analysis on the sample matrix to obtain a corresponding projection matrix; An importance determination module is used to construct a temporary vector corresponding to the evaluation index, the number of components of the temporary vector is the same as the number of the evaluation index, the i-th element of the i-th temporary vector corresponding to the i-th evaluation index is 1, and the remaining elements are 0, and the transposed matrix of the projection matrix is multiplied by the i-th temporary vector to obtain a mapping vector, and the square of the mapping vector is used as the importance value of the i-th evaluation index; The urban resilience assessment module is used to determine the urban resilience assessment value of the target city based on the importance value of each of the evaluation indicators.
[0009] In a third aspect, an embodiment of the present invention provides a computer device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the urban resilience assessment method for urban planning as described in the first aspect is implemented.
[0010] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the urban resilience assessment method for urban planning as described in the first aspect is implemented.
[0011] Compared with the prior art, the present invention has the following beneficial effects: The urban resilience assessment method of the present invention takes into account that in the process of urban resilience assessment, as the scale of the city expands, the number of evaluation indicators increases and the urban system becomes more complex, the weights of each evaluation indicator given manually become increasingly inaccurate. For this reason, the present invention selects to perform principal component analysis on multiple groups of indicator weight vectors given by multiple people to obtain a projection matrix, and then constructs a temporary vector corresponding to a single indicator weight to obtain a mapping vector corresponding to the single indicator weight through the projection matrix. The contribution of different indicator weights is reflected by the mapping vector, and then the objective importance of each indicator weight to the resilience evaluation result is determined, and then combined with the original indicator weight determined subjectively, the manual indicator weight is corrected with objective information, thereby improving the accuracy of the resilient city planning assessment. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, 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 only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0013] Figure 1 This is a schematic diagram of an application environment of an urban resilience assessment method for urban planning provided by the first embodiment of the present invention; Figure 2 It is a flow chart of a method for evaluating urban resilience for urban planning provided in the first embodiment of the present invention; Figure 3 It is a schematic diagram of the evaluation indicators under various dimensions related to urban resilience; Figure 4 is a flowchart of a method for obtaining a projection matrix provided in Embodiment 2 of the present invention; Figure 5 is a schematic diagram of the structure of a device for evaluating urban resilience for urban planning provided by Embodiment 3 of the present invention; Figure 6 It is a structural diagram of a computer device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0014] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.
[0015] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0016] It should also be understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0017] As used in the present specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]", depending on the context.
[0018] In addition, in the description of the present specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0019] References to "one embodiment" or "some embodiments" etc. described in the present specification mean that one or more embodiments of the present invention include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0020] The embodiments of the present invention can acquire and process relevant data based on artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0021] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0022] It should be understood that the order of execution of the steps in the following embodiments does not imply a precedence of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0023] In order to illustrate the technical solution of the present invention, specific embodiments are provided below for illustration.
[0024] The first embodiment of the present invention provides a method for evaluating urban resilience for urban planning, which can be applied in the following aspects: Figure 1 In an application environment, the client communicates with the server. The client includes but is not limited to handheld computers, desktop computers, laptops, ultra-mobile personal computers (UMPC), netbooks, cloud terminal devices, personal digital assistants (PDA) and other terminal devices. The terminal device corresponding to the client connects to the target database through a preset application programming interface (Application Programming Interface, API). When the target data is driven to execute the corresponding task, a corresponding task log will be generated, and the above task log can be collected through the API. The server can be implemented with an independent server or a server cluster composed of multiple servers. The computer device corresponding to the server is connected to the corresponding database, rule base, etc. to obtain the corresponding data in the database. The above computer device can also be connected to the client to collect data and control instructions sent by the client user.
[0025] See also Figure 2 , is a flow chart of a method for evaluating urban resilience for urban planning provided by the first embodiment of the present invention. The method for evaluating urban resilience for urban planning can be applied to Figure 1 The client or server in Figure 2 As shown, the urban resilience assessment method for urban planning may include the following steps: Step S101, obtaining a set number of manually given indicator weight vectors, each of which is composed of indicator weights corresponding to various evaluation indicators of the target city regarding urban resilience as components.
[0026] like Figure 3 As shown in the figure, the evaluation indicators related to urban resilience are very diverse, which can be roughly divided into five dimensions: ecology, economy, society, system and facilities. The values of various evaluation indicators in different dimensions, and even different evaluation indicators in the same dimension, will have large differences. Therefore, in order to avoid errors in the urban resilience assessment of the target city to be evaluated due to the differences in the values of the evaluation indicators themselves, this embodiment preferably first normalizes the index values of each evaluation indicator to eliminate the error caused by the differences in the values of the evaluation indicators themselves. Of course, in other embodiments, the index values of the evaluation indicators can also be used directly to conduct subsequent resilience assessments of the target city.
[0027] The specific method for normalizing the index values of the evaluation index is to select the maximum index value of the evaluation index from the historical data for each evaluation index, and use the ratio of the index value of the evaluation index of the current target city to the maximum index value of the evaluation index in the historical data as the normalized value of the evaluation index of the current target city, thereby completing the acquisition of the normalized values of each evaluation index of the target city. It should be emphasized that in order to improve the accuracy of the acquisition of the normalized value, the sample size of the historical data should be large enough and include data of cities of various sizes and types.
[0028] In order to facilitate the subsequent calculation of the urban resilience evaluation value of the target city, after obtaining the normalized values of each evaluation indicator of the target city, each normalized value is used as a component to form an evaluation indicator vector. That is, the dimension of the evaluation indicator vector is the same as the number of evaluation indicators, and the value under each dimension is the normalized value of the corresponding evaluation indicator.
[0029] Taking into account the situation that the scale of current urban development is increasing and the weights given by experts for each evaluation indicator in the process of urban resilience evaluation are becoming increasingly inaccurate, this embodiment chooses to obtain the indicator weights of each evaluation indicator given by multiple experts, that is, each expert gives a corresponding indicator weight for each evaluation indicator, and the indicator weights of each evaluation indicator given by each expert are used as components to form an indicator weight vector, so that a number of indicator weight vectors corresponding to the number of experts can be obtained, where the number of experts can be determined by the operator according to actual conditions.
[0030] However, as mentioned above, as the scale of urban development increases and the urban system becomes more complex, the difficulty of expert evaluation increases, and the accuracy of the weights of given evaluation indicators will decrease accordingly. Although this embodiment selects multiple experts to give weights, these weights are essentially still completely determined manually and subjectively. Whether it is to select the weight given by any expert or to comprehensively consider the weights given by all experts by averaging, the final weights still cannot escape the purely subjective category. Therefore, after obtaining the weight vectors of each indicator, this embodiment intends to use the principal component analysis method to perform a correlation analysis on the weights of each indicator, so as to determine the relative importance based on the objective contribution of different weights to the evaluation, and thus correct the indicator weights, so as to further combine the results of objective evaluation to realize the correction of the indicator weights given by experts subjectively, so as to ultimately achieve the effect of improving the accuracy of the resilience evaluation of the target city as a whole.
[0031] Step S102: All the indicator weight vectors are concatenated into a sample matrix, and a principal component analysis is performed on the sample matrix to obtain a corresponding projection matrix.
[0032] To facilitate the analysis of the indicator weight vectors given by each expert, this embodiment first concatenates the indicator weight vectors to form a sample matrix, and then performs principal component analysis on the sample matrix to obtain the corresponding projection matrix, wherein the method of performing principal component analysis on the matrix can utilize the existing method process.
[0033] The reason why the present embodiment uses the principal component analysis technique is that there may be correlation between the dimensions of high-dimensional data. The role of principal component analysis is to reduce the dimension of high-dimensional data according to the size of the correlation between different dimensions, so as to complete the data cleaning and more efficiently characterize the contribution of different data to the whole. Assuming that the number of components of the indicator weight vector in the present embodiment is N, that is, assuming that there are N evaluation indicators in total, and the number of eigenvalues selected in the process of obtaining the corresponding projection matrix by principal component analysis is K, then the implementation process of the present embodiment is to reduce the dimension of the N-dimensional sample matrix to a K-dimensional principal component matrix. In this process, for a single indicator weight vector, it can be understood that the process is to replace the indicator weight vector originally represented by N original dimensional information with an indicator weight vector represented by K reference dimensional information or updated dimensional information with fewer dimensions, that is, the principal component vector. The correlation between the K reference dimensional information is smaller and the noise is less, so the K reference dimensional information has a stronger representation ability than the N original dimensional information, and has a data representation effect similar to the original high-dimensional data with fewer dimensions.
[0034] Among them, the projection matrix corresponding to the sample matrix analyzed by the principal component analysis method, combined with the working principle of the principal component analysis, can realize the principal component screening of the original data, that is, the sample matrix. Then, in the existing principal component analysis process, the process of multiplying the sample matrix with the transposed matrix of the projection matrix to obtain the principal component matrix is actually the process of eliminating relatively useless or less important dimensional information from the original data of the sample matrix, and highlighting the important information.
[0035] Step S103, construct a temporary vector corresponding to the evaluation index, the number of components of the temporary vector is the same as the number of the evaluation index, the i-th element of the i-th temporary vector corresponding to the i-th evaluation index is 1, and the remaining elements are 0, and the transpose matrix of the projection matrix is multiplied by the i-th temporary vector to obtain a mapping vector, and the square of the mapping vector is used as the importance value of the i-th evaluation index.
[0036] Based on the role of the above-mentioned projection matrix, this embodiment can sequentially construct special temporary vectors that only characterize a single evaluation indicator, and obtain the mapping vector corresponding to each temporary vector by the method of obtaining each temporary vector according to the principal component matrix, that is, by multiplying the transpose matrix of the projection matrix with each temporary vector respectively. By observing the mapping vector, the proportion of the single evaluation indicator corresponding to each temporary vector in the principal component characterization process can be determined, and thus the contribution of different evaluation indicators to the principal component characterization can be determined by comparing different mapping vectors. Since the contribution size is directly positively correlated with the importance, the importance of each evaluation indicator can also be determined.
[0037] Specifically, the number of temporary vectors corresponds to the number of evaluation indicators, and the number of components of the temporary vector is the same as the number of evaluation indicators, that is, the components of the temporary vector are the same as the components of the evaluation indicator vector, and the only difference is that the values of the elements in different components or dimensions are different. In order to achieve the unique representation of different evaluation indicators by the temporary vector, this embodiment sets the temporary vector corresponding to the i-th evaluation indicator, and only the i-th element takes the value of 1, while the values of other elements are 0, so that when calculating with the projection matrix, the result can be guaranteed to represent only the importance of the previous evaluation indicator.
[0038] Regarding how to quantify the importance of the evaluation indicators, specifically, the corresponding mapping vector can be obtained by multiplying the transposed matrix of the projection matrix with the i-th temporary matrix corresponding to the i-th evaluation indicator, and then the size of the square of the corresponding mapping vector is observed as the importance value of the i-th evaluation indicator.
[0039] The specific method for obtaining the square of the mapping vector is to first square each element in the mapping vector, and then sum the obtained square values to obtain the square of the mapping vector.
[0040] The principle of constructing a temporary vector in this step and mapping the temporary vector to a mapping vector is that, since there is only one element in the temporary vector that is a non-zero value, and the non-zero value corresponds to a certain indicator weight, any mapping value in the mapping vector can represent the correlation between the original dimensional information of the indicator weight corresponding to the non-zero element and the reference dimensional information corresponding to the mapping value. The stronger the correlation, the larger the mapping value, and the weaker the correlation, the smaller the mapping value. Then, according to the sum of squares of the mapping vectors, the degree of correlation between the basic attributes and each reference dimensional information can be represented, which is equivalent to representing the importance of the original dimensional information of the indicator weight. When the sum of squares of the mapping vector obtained after a certain indicator weight is mapped to the temporary vector is small, it can be considered that the change of the indicator weight has little effect on the value of the reference dimensional information, and the indicator weight is more likely to be noise or associated with other basic attributes, so its value should be smaller.
[0041] Step S104: determining the urban resilience evaluation value of the target city based on the importance value of each evaluation indicator.
[0042] Taking into account that the importance value of the evaluation index is obtained by measuring the index weight information given by all experts, this embodiment preferably weights the mean of the index weight given by each expert for the current evaluation index according to the importance value of the current evaluation index, that is, first calculate the mean of the index weights given by all experts for the current evaluation index, and then multiply the obtained mean by the importance value corresponding to the current evaluation index to obtain the adjustment result of the weight of the current evaluation index, that is, the adjusted weight of the current evaluation index.
[0043] Then, in order to ensure that the magnitude of the evaluation results of urban resilience are consistent each time, the adjusted weights of each evaluation indicator are normalized. Specifically, the adjusted weights of each evaluation indicator are normalized according to the sum of the adjusted weights of all evaluation indicators to obtain the target weight of each evaluation indicator. The normalized values of each evaluation indicator are weighted and summed according to the target weight to finally obtain the urban resilience assessment value of the target city.
[0044] The urban resilience assessment method of this embodiment takes into account that whether a single set of evaluation indicator weights or an average of multiple sets of evaluation indicator weights are used, they are all given subjectively by humans. Although different evaluation indicators are given different weights based on experience in the giving process, with the increasing number of evaluation indicators and the increasing complexity of urban systems, the determination of the indicator weights of evaluation indicators becomes increasingly inaccurate, resulting in increasing difficulty in fully utilizing objective information on the objective importance of evaluation indicators to resilience assessment. For this reason, this example determines the projection matrix based on multiple indicator weight vectors through principal component analysis, and then constructs a temporary vector to obtain the mapping vector corresponding to each indicator weight through the projection matrix. The mapping vector reflects the contribution of different indicator weights, and then determines the objective importance of each indicator weight to the resilience evaluation result. It is then combined with the original indicator weights determined subjectively, thereby realizing the correction of the indicator weights given manually with objective information, thereby improving the accuracy of the resilient city planning assessment.
[0045] See also Figure 4 , is a flowchart of a method for obtaining a projection matrix in step S102 in the above embodiment provided by the second embodiment of the present invention, such as Figure 4 As shown, the method for obtaining the projection matrix may include the following steps: Step S201, each of the indicator weight vectors is represented in the form of a column vector and all the indicator weight vectors are concatenated by column to obtain a sample matrix, and each column in the sample matrix is centralized to obtain a reference matrix.
[0046] For the sake of ease of explanation, first assume that there are N evaluation indicators for urban resilience in the target city. Corresponding to these N evaluation indicators, it is necessary to give each evaluation indicator its indicator weight in the urban resilience evaluation process. To this end, this embodiment uses the indicator weights given by a single expert for each of the above evaluation indicators as components to form an indicator weight vector. It is easy to understand that if M experts are selected to each give a set of corresponding indicator weights for the above evaluation indicators, then M indicator weight vectors will be formed accordingly.
[0047] Moreover, in this embodiment, the indicator weight vector is preferably a column vector, and since the number of indicator weights in the indicator weight vector is the same as the number of evaluation indicators, the number of components or dimensions of the indicator weight vector is the same as the evaluation indicators, which is N, and each indicator weight vector is a column vector of size N*1. It is easy to understand that in other embodiments, the indicator weight vector can of course be constructed in the form of a row vector, and the column vector construction form here is only an optional result.
[0048] Since each indicator weight vector is a column vector of size N*1, after splicing the M indicator weight vectors corresponding to the M experts by columns, we can get a sample matrix of size N*M, and then center each column in the sample matrix to get the reference matrix X.
[0049] Regarding the centering of each column in the sample matrix, centralization is also zero mean, so the process of centralization of each column is to subtract the mean of all elements in the column from each element in the column, and use the obtained differences as the new elements of the corresponding elements to form a new column, so as to complete the centering of the column.
[0050] Step S202: multiply the reference matrix by the transposed matrix of the reference matrix to obtain a discrete matrix, perform eigenvalue decomposition on the discrete matrix and determine an eigenvector corresponding to each eigenvalue.
[0051] After determining the reference matrix X, the discrete matrix XX can be obtained by multiplying the reference matrix X with the transposed matrix of the reference matrix X. T Then, based on the existing method for obtaining matrix eigenvalues and corresponding eigenvectors, the discrete matrix is decomposed into eigenvalues to obtain N eigenvalues and the eigenvector corresponding to each eigenvalue, where the eigenvector is a column vector of size N*1.
[0052] Step S203 , selecting a maximum preset number of eigenvalues, and splicing eigenvectors corresponding to the maximum preset number of eigenvalues by columns according to the order of the maximum preset number of eigenvalues to obtain a projection matrix.
[0053] The N eigenvalues obtained after eigenvalue decomposition are sorted from large to small, and the largest preset number K eigenvalues are selected, where the preset number K is set by the operator according to the situation and the cumulative variance contribution rate of the principal component corresponding to the selected largest preset number K eigenvalues should be greater than the required value.
[0054] After selecting the largest preset number K eigenvalues, the eigenvectors corresponding to the K eigenvalues are sorted from large to small according to the K eigenvalues and spliced in columns to obtain a projection matrix of size N*K.
[0055] It should be additionally explained that the construction form of the temporary vector in the present invention is related to the size of the projection matrix. Corresponding to the projection matrix being of N*K size, the temporary vector constructed at this time should be a column vector of N*1 size, and the i-th row element in the i-th temporary vector is 1, and the elements of the remaining rows are 0. In other embodiments, if the indicator weight vector is a row vector, the corresponding number of rows and columns of the subsequent sample matrix and projection matrix are opposite to those in the present embodiment, and accordingly the temporary vector should also be a row vector of 1*N size, and the i-th column element in the i-th temporary vector is 1, and the elements of the remaining columns are 0.
[0056] The embodiment of the present invention provides a detailed process of obtaining a projection matrix and relevant standard principles in the acquisition process, thereby improving the accuracy of obtaining the importance value corresponding to the subsequent evaluation index of the projection matrix of the present invention.
[0057] Corresponding to the method of the above embodiment, Figure 5 The structural block diagram of the urban resilience assessment device for urban planning provided by the third embodiment of the present invention is shown. The above-mentioned assessment device is applied to a computer device, and the computer device is connected to the target database through a preset application program interface. When the target database is driven to execute the corresponding task, a corresponding task log will be generated, and the above-mentioned task log can be collected through the API. For the convenience of explanation, only the part related to the embodiment of the present invention is shown.
[0058] See also Figure 5 , the evaluation device comprises: A weight vector construction module 31 is used to obtain a set number of manually given indicator weight vectors, each of which is composed of indicator weights corresponding to various evaluation indicators of the target city on urban resilience as components; A projection matrix acquisition module 32 is used to splice all the indicator weight vectors into a sample matrix, and perform principal component analysis on the sample matrix to obtain a corresponding projection matrix; The importance determination module 33 is used to construct a temporary vector corresponding to the evaluation index, the number of components of the temporary vector is the same as the number of the evaluation index, the i-th element of the i-th temporary vector corresponding to the i-th evaluation index is 1, and the remaining elements are 0, and the transposed matrix of the projection matrix is multiplied by the i-th temporary vector to obtain a mapping vector, and the square of the mapping vector is used as the importance value of the i-th evaluation index; The urban resilience assessment module 34 is used to determine the urban resilience assessment value of the target city based on the importance value of each of the assessment indicators.
[0059] Optionally, the projection matrix acquisition module 32 includes: A reference matrix acquisition unit, used for expressing each of the indicator weight vectors in the form of a column vector and concatenating all the indicator weight vectors by column to obtain a sample matrix, and centering each column in the sample matrix to obtain a reference matrix; An eigenvector acquisition unit, used for multiplying a reference matrix by a transposed matrix of the reference matrix to obtain a discrete matrix, performing eigenvalue decomposition on the discrete matrix and determining an eigenvector corresponding to each eigenvalue; The projection matrix acquisition unit is used to select a maximum preset number of eigenvalues, and splice the eigenvectors corresponding to the maximum preset number of eigenvalues in columns according to the order of the maximum preset number of eigenvalues to obtain a projection matrix.
[0060] Optionally, the importance determination module 33 includes: The temporary vector construction unit is used to limit the temporary vector to a column vector, wherein the i-th row element in the i-th temporary vector is 1, and the elements in the other rows are 0.
[0061] Optionally, the projection matrix acquisition module 32 further includes: The centralization implementation unit is used to subtract the mean value of all elements in the current column from each element in the current column of the sample matrix, and replace the current column with the obtained new column to complete the centralization of the current column.
[0062] Optionally, the weight vector construction module 31 includes: The index value normalization unit is used to obtain the maximum value of the current evaluation index from the historical data, and take the ratio of the actual value of the current evaluation index to the maximum value as the index value of the current evaluation index.
[0063] Optionally, the importance determination module 33 further includes: The mapping vector square calculation unit is used to calculate the square value of each element in the mapping vector, and sum the square values of each element as the square of the mapping vector.
[0064] Optionally, the urban resilience assessment module 34 includes: The adjustment weight calculation unit is used to calculate the mean value of each indicator weight corresponding to the current evaluation indicator in the set number of indicator weight vectors and multiply it by the importance value of the current evaluation indicator to obtain the adjustment weight of the current evaluation indicator; The resilience assessment value calculation unit is used to normalize the adjusted weights of each evaluation indicator according to the sum of the adjusted weights of all evaluation indicators to obtain the target weight of each evaluation indicator, and to perform weighted summation of the indicator values of each evaluation indicator based on the target weight of each evaluation indicator to obtain the urban resilience assessment value of the target city.
[0065] It should be noted that the information interaction, execution process and other contents between the above modules are based on the same concept as the embodiment of the method of the present invention. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0066] Figure 6 This is a schematic diagram of the structure of a computer device provided in Embodiment 4 of the present invention. Figure 6 As shown, the computer device of this embodiment includes: at least one processor ( Figure 6 Only one is shown in the figure), a memory, and a computer program stored in the memory and executable on at least one processor, which implements the steps in any of the above-mentioned embodiments of the urban resilience assessment method for urban planning when the processor executes the computer program.
[0067] The computer device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that Figure 6 This is merely an example of a computer device and does not constitute a limitation on the computer device. The computer device may include more or fewer components than shown in the figure, or a combination of certain components, or different components.
[0068] The processor may be a CPU, or other general-purpose processors, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0069] The memory includes a readable storage medium, an internal memory, etc., wherein the internal memory may be the memory of a computer device, and the internal memory provides an environment for the operation of the operating system and computer-readable instructions in the readable storage medium. The readable storage medium may be a hard disk of a computer device, and in other embodiments, it may also be an external storage device of the computer device, for example, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the computer device. Further, the memory may also include both an internal storage unit of the computer device and an external storage device. The memory is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of a computer program, etc. The memory may also be used to temporarily store data that has been output or is to be output.
[0070] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention. The specific working process of the units and modules in the above-mentioned device can refer to the corresponding process in the above-mentioned method embodiment, which will not be repeated here. If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned method embodiment can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying computer program code, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0071] The present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by a computer program product. When the computer program product runs on a computer device, the computer device can implement the steps in the above-mentioned method embodiment when executing.
[0072] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0073] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0074] In the embodiments provided by the present invention, it should be understood that the disclosed devices / computer equipment and methods can be implemented in other ways. For example, the device / computer equipment embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0075] 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, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0076] 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 may be replaced by equivalents. Such 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, and should be included in the protection scope of the present invention.
Claims
1. A method for evaluating urban resilience for urban planning, characterized in that: The method comprises: Obtaining a set number of manually given indicator weight vectors, each of which is composed of indicator weights corresponding to various evaluation indicators of the target city regarding urban resilience as components; All the indicator weight vectors are spliced into a sample matrix, and a principal component analysis is performed on the sample matrix to obtain a corresponding projection matrix; Constructing a temporary vector corresponding to the evaluation index, wherein the number of components of the temporary vector is the same as the number of the evaluation indexes, the i-th element of the i-th temporary vector corresponding to the i-th evaluation index is 1, and the remaining elements are 0, multiplying the transposed matrix of the projection matrix by the i-th temporary vector to obtain a mapping vector, and taking the square of the mapping vector as the importance value of the i-th evaluation index; Based on the importance value of each of the evaluation indicators, the urban resilience evaluation value of the target city is determined.
2. The urban resilience assessment method for urban planning according to claim 1, characterized in that: The step of splicing all the indicator weight vectors into a sample matrix and performing principal component analysis on the sample matrix to obtain a corresponding projection matrix includes: Represent each of the indicator weight vectors in the form of a column vector and concatenate all of the indicator weight vectors by column to obtain a sample matrix, and center each column in the sample matrix to obtain a reference matrix; Multiplying a reference matrix by a transposed matrix of the reference matrix to obtain a discrete matrix, performing eigenvalue decomposition on the discrete matrix and determining an eigenvector corresponding to each eigenvalue; A maximum preset number of eigenvalues is selected, and eigenvectors corresponding to the maximum preset number of eigenvalues are spliced by columns according to the order of the maximum preset number of eigenvalues to obtain a projection matrix.
3. The urban resilience assessment method for urban planning according to claim 2, characterized in that: The temporary vector is a column vector, the i-th row element in the i-th temporary vector is 1, and the other row elements are 0.
4. The urban resilience assessment method for urban planning according to claim 2, characterized in that: The method for centering each column in the sample matrix is: The mean value of all elements in the current column is subtracted from each element in the current column of the sample matrix, and the current column is replaced by the obtained new column to complete the centering of the current column.
5. The urban resilience assessment method for urban planning according to claim 1, characterized in that: The index value of the evaluation index is a normalized value, and the acquisition method is: The maximum value of the current evaluation index is obtained from the historical data, and the ratio of the actual value of the current evaluation index to the maximum value is used as the index value of the current evaluation index.
6. The urban resilience assessment method for urban planning according to claim 1, characterized in that: The square of the mapping vector is: The square value of each element in the mapping vector is calculated, and the square values of each element are summed as the square of the mapping vector.
7. The urban resilience assessment method for urban planning according to claim 1 or 5, characterized in that: The method for determining the urban resilience evaluation value of the target city based on the importance value of each evaluation indicator is: Calculate the average of the weights of each indicator corresponding to the current evaluation indicator in the set number of indicator weight vectors and multiply it by the importance value of the current evaluation indicator to obtain the adjustment weight of the current evaluation indicator; The adjusted weights of each evaluation indicator are normalized according to the sum of the adjusted weights of all evaluation indicators to obtain the target weight of each evaluation indicator. The indicator values of each evaluation indicator are weighted and summed based on the target weight of each evaluation indicator to obtain the urban resilience assessment value of the target city.
8. An urban resilience assessment device for urban planning, characterized in that: The device comprises: A weight vector construction module is used to obtain a set number of manually given indicator weight vectors, each of which is composed of indicator weights corresponding to various evaluation indicators of urban resilience of the target city as components; A projection matrix acquisition module is used to splice all the indicator weight vectors into a sample matrix, and perform principal component analysis on the sample matrix to obtain a corresponding projection matrix; An importance determination module is used to construct a temporary vector corresponding to the evaluation index, the number of components of the temporary vector is the same as the number of the evaluation index, the i-th element of the i-th temporary vector corresponding to the i-th evaluation index is 1, and the remaining elements are 0, and the transposed matrix of the projection matrix is multiplied by the i-th temporary vector to obtain a mapping vector, and the square of the mapping vector is used as the importance value of the i-th evaluation index; The urban resilience assessment module is used to determine the urban resilience assessment value of the target city based on the importance value of each of the evaluation indicators.
9. A computer device, characterized in that: The computer device includes a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the urban resilience assessment method for urban planning as described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the urban resilience assessment method for urban planning as described in any one of claims 1 to 7 is implemented.
