Urban planning method and system based on digital twin
By calculating the correlation of urban population data and the contribution of isolated trees, the weighted anomaly score is obtained, which solves the problem of inaccurate prediction of traditional exponential smoothing method when population data mutates, improves the prediction accuracy of urban population data, and supports more accurate predictions. Urban Plan.
Patent Information
- Application Number
- CN202410917446.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-07-10
AI Technical Summary
The traditional exponential smoothing method cannot adapt to sudden changes in urban population data, resulting in inaccurate population data prediction results.
By calculating the correlation of any two dimensions and the contribution of isolated trees, a weighted anomaly score is obtained, and the smoothing parameters are adaptively adjusted to improve the accuracy of population data prediction.
Achieving more accurate predictions of urban population data and helping to formulate more accurate urban planning plans.
Smart Images

Figure CN118504775B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to an urban planning method and system based on digital twins. Background Art
[0002] The application of digital twins in urban planning is an emerging field with great potential. Digital twins refer to technologies that use digital models of physical entities to simulate, analyze and optimize their operating status and behavior. In urban planning, digital twin systems can combine sensor data, simulation algorithms and big data analysis to achieve smarter and more efficient urban management and development. The application of digital twin technology in urban population data planning is of great significance. It combines modern computing power, big data analysis and simulation technology to accurately simulate the population distribution, flow and development trends of cities, providing a scientific basis for urban planning and management.
[0003] For example, a Chinese patent document with authorization announcement number CN117649063B discloses a method for site selection and planning of public service facilities based on population big data, proposing to obtain future population development trends through the prediction of population data, and obtain the optimal site selection plan for public service facilities based on the population development trends.
[0004] However, the changes in urban population data are different in different time periods. For example, during the peak employment period, there will be migrant workers coming to the city to work, that is, the population in various areas of the city will increase. Therefore, it is necessary to combine historical data to predict the population.
[0005] Exponential smoothing is an algorithm for predicting data based on time series data, while traditional exponential smoothing predicts data with fixed smoothing parameters that are preset artificially. However, due to sudden changes in urban population data during special time periods such as peak employment periods, fixed smoothing parameters cannot adapt to sudden changes in population data, resulting in inaccurate prediction results for population data. Summary of the invention
[0006] The purpose of the present invention is to provide an urban planning method and system based on digital twins to solve the problem of inaccurate urban population planning.
[0007] In a first aspect, the present invention provides an urban planning method based on digital twins, which adopts the following technical solutions:
[0008] Get multi-dimensional data points of the city population;
[0009] Calculate the correlation between any two dimensions according to the product of the difference between the data and the mean of the two dimensions and the standard deviation of the data of the two dimensions, wherein the correlation is positively correlated with the product of the difference between the data and the mean and negatively correlated with the standard deviation;
[0010] Calculate the comprehensive correlation of any dimension according to the correlation between the dimension and all other dimensions, sort the comprehensive correlations of all dimensions from small to large, and obtain a comprehensive correlation sequence, wherein the comprehensive correlation is positively correlated with the correlation size;
[0011] Acquire a dimension sequence of the isolated tree, and calculate a contribution of the isolated tree according to a difference between the dimension sequence and the comprehensive correlation sequence, wherein the contribution is negatively correlated with the difference;
[0012] The contribution of the isolated tree is normalized and used as the weight of the isolated tree. According to the weight of the isolated tree, the weighted path length of any data point is calculated to obtain the weighted anomaly score of all multidimensional data points. Population prediction is performed based on the weighted anomaly score, thereby realizing urban planning.
[0013] The present invention calculates the weight of any isolated tree by calculating the contribution of the isolated tree to the abnormal scores of all data points. According to the weight of the isolated tree, the path lengths of all data points in the isolated tree are weightedly calculated, thereby calculating and obtaining the abnormal scores of all data, so that the abnormal score results of the data are more accurate.
[0014] Furthermore, smoothing parameters are calculated and obtained based on the abnormal score results of the data to make population forecasts. Adaptive changes can be made based on changes in the current population data, thereby making the prediction results of the population data more accurate. Furthermore, the results of the urban planning plan formulated by the staff are more accurate.
[0015] In one embodiment, the comprehensive correlation satisfies the expression:
[0016] ;
[0017] In the formula, Indicates The comprehensive correlation of the dimensions; Indicates the total number of dimensions; represents the dimension ordinal number, ; Indicates Dimensions and The correlation of the dimensions; Indicates The mean correlation between a dimension and all other dimensions; Represents the standard normalization function.
[0018] By calculating the comprehensive correlation of any dimension, the difference between each dimension and other dimensions in the data set can be evaluated. If a dimension has a high correlation with other dimensions, the comprehensive correlation of the dimension is high. In the isolation forest algorithm, when using any dimension to segment data samples, the comprehensive correlation of the dimension is different, and the segmentation effect of the sample is different. Therefore, the present invention calculates the comprehensive correlation of any dimension to facilitate the subsequent accurate calculation of the anomaly score.
[0019] In one embodiment, the correlation satisfies the expression:
[0020] ;
[0021] In the formula, Indicates Dimensions and The correlation of the dimensions; Represents the total number of data points in any dimension; Represents the ordinal number of a data point in any dimension; Indicates The dimension The value of the data point; Indicates The mean of all data points in the dimension; Indicates The dimension The value of the data point; Indicates The mean of all data points in the dimension.
[0022] Indicates the directional consistency of any two dimensions. If its value is positive, it means that the data directions of the two dimensions are consistent. Otherwise, the directions of the two dimensions are inconsistent. The correlation between any two dimensions is calculated by calculating the directional consistency of any two dimensions and the difference between the means of these two dimensions and the dimensions in which they are located, so that the calculation of the correlation is more accurate. Furthermore, data of different dimensions may have different units and scales. For example, per capita income and unemployment rate may be in completely different numerical ranges. Through standardized calculation, the influence of scale is eliminated, ensuring the accuracy of calculation.
[0023] In one embodiment, the contribution satisfies the expression:
[0024] ;
[0025] In the formula, Indicates The contribution of an isolated tree; Indicates the total number of dimensions; Indicates the dimension ordinal number; Indicates the first dimension in the sequence The label corresponding to each dimension; Indicates the first The label corresponding to each dimension; Expressed as a natural constant The exponential function of base .
[0026] The contribution of any isolated tree is obtained by calculating the difference between the dimension sequence corresponding to any isolated tree and the comprehensive correlation sequence, that is, different dimension sequences of different isolated trees, so that different isolated trees have different contributions, so that the anomaly score of any data point can be obtained according to the contribution in the future, so that the obtained anomaly score result is more accurate.
[0027] In one embodiment, the method for obtaining the label includes:
[0028] For the comprehensive correlation sequence, the index position of any dimension in the sequence is used as the label of the dimension;
[0029] For any dimension in the dimension sequence, the label of the dimension in the comprehensive correlation sequence is obtained, and the label is used as the label of the dimension in the dimension sequence.
[0030] In one embodiment, the dimension sequence is obtained in the following manner:
[0031] For any isolated tree, the dimensions of each layer are obtained from the root node of the isolated tree downward in sequence, and all the obtained dimensions are recorded as the dimension sequence of the isolated tree.
[0032] In one embodiment, the weight of the isolated tree satisfies the expression:
[0033] ;
[0034] In the formula, Indicates The weight of an isolated tree; Indicates The contribution of an isolated tree; Represents the minimum contribution of all isolated trees; Represents the maximum contribution of all isolated trees.
[0035] In one embodiment, the weighted anomaly score includes:
[0036] For any data point, obtain the weight of all isolated trees where the data point is located, and calculate the weighted path length of the data point in all isolated trees based on the weight of the data point in all isolated trees. The calculation formula is as follows:
[0037] ;
[0038] In the formula, Indicates The weighted path length of the data points; represents the total number of isolated trees; represents the isolated tree ordinal number; Indicates The data point in The path length in an isolated tree; Indicates The weight of an isolated tree;
[0039] The weighted path length of the data point is used to replace the average path length calculation in the traditional isolation forest algorithm to obtain the weighted anomaly score of the data point.
[0040] In one embodiment, performing population prediction based on the weighted anomaly score includes:
[0041] Preset an abnormal threshold , the weighted anomaly score is greater than the preset anomaly threshold The data points are regarded as abnormal data points;
[0042] The mean of the index positions of all abnormal data points is obtained, and the ratio of the mean of the index positions to the total number of data points collected is used as the smoothing parameter of the exponential smoothing method to predict the population data of the city in the next month.
[0043] By obtaining the mean index position of the abnormal data points in the acquired data, and taking the ratio of the mean index position to the total number of data points collected as the smoothing parameter of the exponential smoothing method, the smoothing parameter is adaptively obtained according to the ratio of the mean index position of the abnormal data to the total number of data points collected, so as to make the prediction result more accurate.
[0044] In a second aspect, the present invention provides an urban planning system based on digital twins, which adopts the following technical solutions:
[0045] The urban planning system based on digital twins includes: a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the urban planning method based on digital twins is implemented.
[0046] By adopting the above technical solution, the above-mentioned urban planning method based on digital twins is generated into a computer program and stored in a memory so as to be loaded and executed by a processor, thereby making a terminal device based on the memory and the processor for easy use.
[0047] The present invention has the following technical effects:
[0048] The present invention calculates the correlation between any dimension and other dimensions, further obtains the comprehensive correlation of any dimension, obtains the comprehensive correlation sequence, and calculates the contribution of any isolated tree according to the difference between the dimension sequence of any isolated tree and the comprehensive correlation sequence, and obtains the weight of the isolated tree according to the contribution. The present invention assigns different weights to different isolated trees through the dimension sequences in different isolated trees, and the abnormal score result of calculating any data point is more accurate compared to the traditional isolation forest algorithm, which assigns the same weight to all isolated trees.
[0049] Furthermore, the present invention calculates the smoothing parameters by calculating the average level of the index positions of the abnormal data points in the acquired data, thereby avoiding the problem of inaccurate prediction results caused by traditional preset fixed smoothing parameters, thereby making the prediction results of population data more accurate and facilitating the staff to formulate more accurate urban planning plans. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-restrictive manner, and the same or corresponding reference numerals represent the same or corresponding parts.
[0051] Figure 1 It is a flow chart of the method in the urban planning method based on digital twins in an embodiment of the present invention. DETAILED DESCRIPTION
[0052] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0053] It should be understood that when the terms "first", "second", etc. are used in the claims, descriptions, and drawings of the present invention, they are only used to distinguish different objects, rather than to describe a specific order. The terms "include" and "comprise" used in the description and claims of the present invention indicate the presence of the described features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their collections.
[0054] The embodiment of the present invention discloses a city planning method based on digital twins, referring to Figure 1 , comprising steps S1 to S5:
[0055] S1: Get multi-dimensional data points of city population.
[0056] It should be noted that urban population data is key information used to analyze and predict urban development, infrastructure needs, social service needs, etc. Scientific analysis and use of urban population data can more effectively improve the quality of urban development and the living standards of residents. Among them, urban population data includes but is not limited to population size, GDP level, per capita income level, employment rate, unemployment rate, etc.
[0057] In one embodiment, the city population, GDP level, per capita income level, employment rate and unemployment rate are obtained through government statistical agencies, wherein the city population, GDP level, per capita income level, employment rate and unemployment rate data are obtained every month, and all the data obtained every month are used as a multi-dimensional data point.
[0058] At this point, the multi-dimensional data points of the city’s population have been obtained.
[0059] S2: Calculate the correlation between any two dimensions.
[0060] It should be noted that data of different dimensions will have certain influences on each other. For example, the per capita income level will affect the GDP level, employment rate and unemployment rate of the city, and these influences will make the final anomaly detection results inaccurate, thus affecting the prediction results. Therefore, it is necessary to calculate the correlation between any two dimensions.
[0061] In one embodiment, the correlation calculation formula between any two dimensions is as follows:
[0062] ;
[0063] In the formula, Indicates Dimensions and The correlation of the dimensions; Represents the total number of data points in any dimension; Represents the ordinal number of a data point in any dimension; Indicates The dimension The value of the data point; Indicates The mean of all data points in the dimension; Indicates The dimension The value of the data point; Indicates The mean of all data points in the dimension.
[0064] in, It reflects the consistency of the changes between the two dimensions. If its value is greater than 0, it means that the change trends of the two dimensions are the same. Otherwise, the change trends of the two dimensions are different. and By making a ratio, we can eliminate the Dimensions and The impact of different scales in each dimension.
[0065] At this point, the correlation calculation between any two dimensions is completed.
[0066] S3: Calculate the comprehensive correlation of any dimension, and obtain the comprehensive correlation sequence according to the comprehensive correlation sizes of all dimensions.
[0067] It should be noted that for any dimension, the greater the correlation between the dimension and other dimensions, the greater the comprehensive correlation of the dimension. When using the isolation forest algorithm to detect anomalies in urban population data, if the correlation of the dimension closer to the root node is greater, the segmentation effect of using the dimension to segment the urban population data is better, making the anomaly detection result more accurate. Therefore, the present invention needs to obtain the comprehensive correlation of any dimension, and obtain the comprehensive correlation sequence according to the size of the comprehensive correlation of all dimensions.
[0068] In one embodiment, a specific calculation formula for calculating the comprehensive correlation of any dimension based on the correlation between any dimension and other dimensions is as follows:
[0069] ;
[0070] In the formula, Indicates The comprehensive correlation of the dimensions; Indicates the total number of dimensions; represents the dimension ordinal number, ; Indicates Dimensions and The correlation of the dimensions; Indicates The mean correlation between a dimension and all other dimensions; Represents the standard normalization function.
[0071] in, Indicates The average level of the correlation between a dimension and all other dimensions. The larger the value, the higher the comprehensive correlation of the dimension. Conversely, the lower the comprehensive correlation of the dimension. Indicates The smaller the value is, the more stable the correlation between the dimension data and other dimension data is, that is, the higher the credibility of the comprehensive correlation of the dimension data is, and vice versa, the lower the credibility of the comprehensive correlation of the dimension data is.
[0072] It should be noted that the comprehensive correlation only characterizes the correlation between any one dimension and all other dimensions. The above formula is only a preferred way to obtain the comprehensive correlation. Implementers can use other methods to obtain the comprehensive correlation. The obtained comprehensive correlation can characterize the correlation between any one dimension and all other dimensions. For example, the mean of the correlation between any one dimension and all other dimensions can be directly used as the comprehensive correlation of the dimension.
[0073] It should be noted that in the isolation forest algorithm, data points with larger anomaly scores are usually located in the upper layer of the isolation tree. Therefore, when using any dimension to distinguish population data, the dimension with less correlation is usually placed in the upper layer of the isolation tree, so that the isolation tree can better distinguish the features.
[0074] In one embodiment, the comprehensive correlations of all dimensions are sorted from small to large to obtain a comprehensive correlation sequence.
[0075] At this point, the calculation of the comprehensive correlation of any dimension is completed, and the comprehensive correlation sequence is obtained.
[0076] S4: Obtain the dimension sequence of the isolated tree, and calculate the contribution of the isolated tree according to the difference between the dimension sequence of the isolated tree and the difference between the comprehensive correlation sequence.
[0077] It should be noted that when constructing an isolated tree using the isolation forest algorithm, in order to ensure randomness, the dimensions in the isolated tree are usually arranged randomly, and dimensions with different arrangement orders will have different effects on the anomaly scores of all data in the isolated tree. Therefore, the present invention needs to calculate the contribution of the isolated tree based on the difference in the dimension sequence of the isolated tree and the difference in the comprehensive correlation sequence.
[0078] In one embodiment, for the comprehensive correlation sequence, the index position of any dimension in the sequence is used as the label of the dimension.
[0079] For any isolated tree, the dimensions of each layer are obtained downward from the root node of the isolated tree, and all the obtained dimensions are recorded as the dimension sequence of the isolated tree; for any dimension in the dimension sequence, the label of the dimension in the comprehensive correlation sequence is obtained, and it is used as the label of the dimension in the dimension sequence.
[0080] For example, if the comprehensive correlation sequence is [population size, employment rate, unemployment rate, per capita income level, GDP level], then the labels corresponding to each dimension are: population size = "1", employment rate = "2", unemployment rate = "3", per capita income level = "4", GDP level = "5". If the dimension sequence of the isolated tree is [per capita income level, employment rate, GDP level, population size, unemployment rate], then the dimension label sequence of the isolated tree is: [4,2,5,1,3].
[0081] The calculation formula for calculating the contribution of the isolated tree based on the difference between the dimension sequence of the isolated tree and the difference between the comprehensive correlation sequence is as follows:
[0082] ;
[0083] In the formula, Indicates The contribution of an isolated tree; Indicates the total number of dimensions; Indicates the dimension ordinal number; The number of the dimension label sequence of the isolated tree The label corresponding to each dimension; Indicates the first dimension in the comprehensive correlation sequence The label corresponding to each dimension; Expressed as a natural constant The exponential function of base .
[0084] The smaller the value is, the smaller the difference between the two is, which means that the contribution of the isolated tree is greater; conversely, the contribution of the isolated tree is smaller.
[0085] At this point, the contribution calculation of any isolated tree is completed.
[0086] S5: Obtain the weight of the isolated tree according to the contribution of the isolated tree, calculate the weighted anomaly score of all data according to the weight of the isolated tree, and predict the city population data according to the weighted anomaly score.
[0087] It should be noted that the greater the contribution of an isolated tree, the greater the impact of the isolated tree on the anomaly detection result, that is, the greater the weight of the isolated tree on the anomaly detection result. Therefore, it is necessary to obtain the weight of the isolated tree according to the contribution of the isolated tree, and further obtain the weighted anomaly score of all data according to the weights of all isolated trees, and predict the urban population data according to the anomaly score results, so that the staff can formulate urban population planning plans according to the prediction results.
[0088] In one embodiment, for any isolated tree, the calculation formula for calculating the weight of the isolated tree according to the contribution of the isolated tree is as follows:
[0089] ;
[0090] In the formula, Indicates The weight of an isolated tree; Indicates The contribution of an isolated tree; Represents the minimum contribution of all isolated trees; Represents the maximum contribution of all isolated trees.
[0091] The process of calculating the weighted anomaly score for any data point is as follows:
[0092] For any data point, obtain the weight of all isolated trees where the data point is located, and calculate the weighted path length of the data point in all isolated trees based on the weight of the data point in all isolated trees. The calculation formula is as follows:
[0093] ;
[0094] In the formula, Indicates The weighted path length of the data points; represents the total number of isolated trees; represents the isolated tree ordinal number; Indicates The data point in The path length in an isolated tree; Indicates The weight of an isolated tree.
[0095] The weighted path length of the data point is used to replace the average path length calculation in the traditional isolation forest algorithm to obtain the weighted anomaly score of the data point.
[0096] It should be noted that the Isolation Forest algorithm uses the degree of isolation of samples in the constructed isolation tree to evaluate the degree of abnormality of samples. Abnormal points often have shorter path lengths in the isolation tree because these data points do not conform to the distribution pattern of normal points. By constructing isolation trees and comprehensively considering their respective abnormal scores, the Isolation Forest can effectively identify abnormal points.
[0097] Preset an abnormal threshold , the weighted anomaly score is greater than the preset anomaly threshold The data points are regarded as abnormal data points. Among them, The abnormal threshold is preset, and the present invention does not specifically limit it. The implementer can adjust it according to the actual implementation situation. For example, .
[0098] The mean of the index positions of all abnormal data points is obtained, and the ratio of the mean of the index positions to the total number of data points collected is used as the smoothing parameter of the exponential smoothing method to predict the population data of the city in the next month so that the staff can formulate urban planning plans.
[0099] It should be noted that exponential smoothing is a method commonly used in time series prediction. Its basic idea is to perform weighted averaging of observed data by preset smoothing parameters to predict future trends. The larger the smoothing parameter, the higher the weight given to closer data points. Conversely, the smaller the smoothing parameter, the higher the weight given to farther data points. If the ratio of the mean of the index position of all abnormal data points to the mean of the index position and the total number of data points collected is larger, it means that the abnormal data point is closer to the current moment, and it is necessary to pay more attention to it, that is, a larger smoothing parameter is required.
[0100] Through the above steps, the prediction of urban population data is completed.
[0101] An embodiment of the present invention also discloses an urban planning system based on digital twins, including a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, an urban planning method based on digital twins according to the present invention is implemented.
[0102] The above system also includes other components well known to those skilled in the art, such as a communication bus and a communication interface, and their configuration and functions are known in the art, so they will not be described in detail here.
[0103] In the present invention, the aforementioned memory may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. For example, a computer-readable storage medium may be any suitable magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory, a dynamic random access memory, a static random access memory, an enhanced dynamic random access memory, a high bandwidth memory, a hybrid storage cube, etc., or any other medium that can be used to store the required information and can be accessed by an application, a module, or both. Any such computer storage medium may be part of the device or accessible or connectable to the device.
[0104] Although this specification has shown and described a number of embodiments of the present invention, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art will conceive of many modifications, changes and alternatives without departing from the ideas and spirit of the present invention. It should be understood that in the practice of the present invention, various alternatives to the embodiments of the present invention described herein may be employed.
[0105] The above are all preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Therefore, any equivalent changes made based on the structure, shape, and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. Urban planning method based on digital twins, characterized by: Includes steps: Obtain multi-dimensional data points of the city population every month. The dimensions of the multi-dimensional data points include: population size, GDP level, per capita income level, employment rate, and unemployment rate; The difference between each dimension data and the mean value of the dimension data is calculated, and the correlation between any two dimensions is calculated based on the product of the difference between the two dimensions and the standard deviation of the two dimension data, satisfying the expression: ; In the formula, Indicates Dimensions and The correlation of the dimensions; Represents the total number of data points in any dimension; Represents the ordinal number of a data point in any dimension; Indicates The dimension The value of the data point; Indicates The mean of all data points in the dimension; Indicates The dimension The value of the data point; Indicates The mean of all data points in the dimension; wherein the correlation is positively correlated with the product of the differences and negatively correlated with the standard deviation; The comprehensive correlation of any dimension is calculated based on the correlation between any dimension and all other dimensions, satisfying the expression: ; In the formula, Indicates The comprehensive correlation of the dimensions; Indicates the total number of dimensions; represents the dimension ordinal number, ; Indicates The mean correlation between a dimension and all other dimensions; represents a standard normalization function; the comprehensive correlations of all dimensions are sorted from small to large to obtain a comprehensive correlation sequence, wherein the comprehensive correlation is positively correlated with the correlation size; Obtaining the dimension sequence of the isolated tree includes: for any isolated tree, starting from the root node of the isolated tree, sequentially obtaining the dimensions of each layer downward, and recording all the obtained dimensions as the dimension sequence of the isolated tree; calculating the contribution of the isolated tree according to the difference between the dimension sequence and the comprehensive correlation sequence, satisfying the expression: ; In the formula, Indicates The contribution of an isolated tree; Indicates the dimension ordinal number; Indicates the first dimension in the sequence The label corresponding to each dimension; Indicates the first The label corresponding to each dimension; Expressed as a natural constant An exponential function with a base number; the method for obtaining the label includes: for a comprehensive correlation sequence, the index position of any dimension in the sequence is used as the label of the dimension; for any dimension in the dimension sequence, the label of the dimension in the comprehensive correlation sequence is obtained, and it is used as the label of the dimension in the dimension sequence; wherein the contribution is negatively correlated with the difference; The contribution of the isolated tree is normalized and used as the weight of the isolated tree to satisfy the expression: ; In the formula, Indicates The weight of an isolated tree; Represents the minimum contribution of all isolated trees; Represents the maximum contribution of all isolated trees; according to the weight of the isolated tree, calculate the weighted path length of any data point, and obtain the weighted anomaly score of all multidimensional data points, including: for any data point, obtain the weight of all isolated trees where the data point is located, and calculate the weighted path length of the data point in all isolated trees according to the weight of the data point in all isolated trees. The calculation formula is as follows: ; In the formula, Indicates The weighted path length of the data points; represents the total number of isolated trees; represents the isolated tree ordinal number; Indicates The data point in The path length in the isolated tree; the weighted path length of the data point is used to replace the average path length in the traditional isolation forest algorithm to calculate and obtain the weighted anomaly score of the data point; population prediction is performed based on the weighted anomaly score, including: presetting an anomaly threshold , the weighted anomaly score is greater than the preset anomaly threshold The data points are taken as abnormal data points; the mean of the index positions of all abnormal data points is obtained, and the ratio of the mean of the index positions to the total number of data points collected is used as the smoothing parameter of the exponential smoothing method to predict the population data of the city in the next month, thereby realizing urban planning.
2. The urban planning system based on digital twins is characterized by: include: A processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the urban planning method based on digital twins according to claim 1 is implemented.
Citation Information
Patent Citations
Public service facility location planning method based on population big data
CN117649063B
Cloud computing data center energy consumption optimization method and system
CN117113235A
Coal quality data processing method based on laser burning and intelligent system
CN117235548A
Abnormal data processing method in automatic monitoring process of ambient air
CN117436005A
Urban three-dimensional space model construction method and system based on digital twinning
CN117576324A
