A method and system for urban land use planning based on machine learning

By calculating the empirical cumulative distribution function and skewness coefficient of data characteristics, deleting abnormal data, and introducing the tent chaos mapping function improved by difference control volume and adaptive factor, the problems of data anomalies and model overfitting in urban land use planning are solved. problem, improve the accuracy and search efficiency of the model, and optimize the planning effect.

CN117933748BActive Publication Date: 2024-09-20GUANGZHOU ZHUDING ARCHITECTURE & PLANNING DESIGN INST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410100791.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-25
Publication Date
2024-09-20
Estimated Expiration
2044-01-25

AI Technical Summary

Technical Problem

The existence of data outliers in urban land use planning leads to inaccuracy and unreliability. It is difficult for existing outlier detection algorithms to assess the degree of anomalies. The model has the risk of overfitting and low efficiency. The initialization position distribution is uneven and information exchange occurs during parameter search. Insufficient, affecting the convergence speed of the algorithm.

Method used

By calculating the empirical cumulative distribution function and skewness coefficient of data characteristics, the weighted average method is used to obtain anomaly scores and delete abnormal data, the difference control volume and weighted variables are introduced to design the difference loss function, and the adaptive factor improved tent chaos mapping function is used Initialize individual locations and construct adaptive neighborhood groups, and perform location updates based on correction factors.

Benefits of technology

It improves data quality and reliability, enhances the accuracy and generalization ability of the model, improves parameter search efficiency and global search capabilities, and optimizes the effect of urban land use planning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117933748B
    Figure CN117933748B
Patent Text Reader

Abstract

The present invention discloses a method and system for urban land use planning based on machine learning, and the method includes: data collection, urban land data anomaly processing, building an urban land use planning model, model parameter search and urban land use planning. The present invention belongs to the field of land use planning technology, and specifically refers to a method and system for urban land use planning based on machine learning. The scheme calculates the empirical cumulative distribution function and skewness coefficient of each feature of the data, obtains three different anomaly scores of the data, calculates the final anomaly score of the data by weighted average method, and identifies and deletes the abnormal data according to the anomaly threshold; calls the SVM function, introduces the difference control amount and the weighted variable to design the difference loss function, and completes the model construction; uses the tent chaos mapping function improved by the adaptive factor to initialize the individual position, constructs the adaptive neighborhood group based on the adaptive influence, and updates the position based on the correction factor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of land use planning, and specifically refers to an urban land use planning method and system based on machine learning. Background Art

[0002] Urban land use planning is to scientifically and rationally arrange and utilize urban land resources, improve land use efficiency, and promote sustainable urban development. However, the collected urban land data has outliers, which increases the inaccuracy and unreliability of the data, and the existing outlier detection algorithm is difficult to accurately assess the degree of data anomaly; the existing urban land use planning model has the risk of overfitting, low efficiency and accuracy; the existing urban land use planning model has uneven initialization position distribution during parameter search, and no effective information exchange is performed during position update, which disrupts the convergence speed of the algorithm. Summary of the invention

[0003] In view of the above situation, in order to overcome the defects of the prior art, the present invention provides an urban land use planning method and system based on machine learning. In view of the fact that the collected urban land data have outliers, which increase the inaccuracy and unreliability of the data, and the existing outlier detection algorithm is difficult to accurately evaluate the degree of abnormality of the data, this scheme calculates the empirical cumulative distribution function and skewness coefficient of each feature of the data, obtains three different abnormality scores of the data, uses the weighted average method to calculate the final abnormality score of the data, and identifies and deletes abnormal data according to the abnormal threshold, more accurately measures the distribution and skewness of the data, thereby better judging the degree of abnormality of the data and ensuring the quality and reliability of the selected data set; in view of the fact that the existing urban land use planning model has the risk of overfitting, low efficiency and accuracy, this scheme introduces difference control The difference loss function is designed based on the quantity and weighted variables to enhance the accuracy of the model and make it better adapt to the task of urban land use planning. In view of the problem that the initialization position distribution of the existing urban land use planning model is uneven during parameter search, and there is no effective information exchange during position update, which disrupts the convergence speed of the algorithm, this scheme uses the tent chaos mapping function improved by adaptive factors to initialize individual positions to ensure that the individual position distribution is relatively uniform, and constructs individual adaptive neighborhood groups based on adaptive influence, which can use information exchange between neighbors to improve the search effect, and updates the position based on the correction factor. The change of individual position is adjusted by the correction factor, which controls the change amplitude of the position to a certain extent, avoids excessive or small changes, improves the search efficiency and global search ability, and improves the effect of urban land use planning.

[0004] The technical solution adopted by the present invention is as follows: The present invention provides an urban land use planning method based on machine learning, which comprises the following steps:

[0005] Step S1: Data collection, collecting urban land data and utilization types;

[0006] Step S2: Processing of urban land data anomalies: calculating the empirical cumulative distribution function and skewness coefficient of each feature of the data, obtaining three different anomaly scores of the data, using the weighted average method to calculate the final anomaly score of the data, and identifying and deleting abnormal data according to the anomaly threshold;

[0007] Step S3: construct an urban land use planning model, call the SVM function, introduce the difference control amount and weighted variables to design the difference loss function, and complete the model construction;

[0008] Step S4: Model parameter search, using the tent chaos mapping function improved by the adaptive factor to initialize the individual position, construct an adaptive neighborhood group based on the adaptive influence, and update the position based on the correction factor;

[0009] Step S5: Urban land use planning, rationally planning the use type of urban land based on the data tags output by the urban land use planning model.

[0010] Furthermore, in step S1, the data collection is to collect urban land data and utilization types. The urban land data includes land utilization status data, population data, economic data, ecological environment data, traffic data and topographic data. The utilization types include commercial areas, industrial areas, public areas, residential areas and landscape areas. The utilization types are used as data labels.

[0011] Furthermore, in step S2, the urban land data abnormality processing specifically includes the following steps:

[0012] Step S21: preprocessing, normalizing the collected data, removing noise and missing values, and constructing a land data processing set A based on the preprocessed data;

[0013] Step S22: Calculate the empirical cumulative distribution function. For the boundary value b of the d1th feature, calculate the proportion of values ​​less than or equal to b and the proportion of values ​​greater than or equal to b in the land data processing set A to obtain the first empirical cumulative distribution function and the second empirical cumulative distribution function. The formula used is as follows:

[0014] ;

[0015] ;

[0016] Where 1{} is an indicator function, which is 1 when its argument is true and 0 otherwise; is the first empirical cumulative distribution function of the d1th feature, is the second empirical cumulative distribution function of the d1th feature, is the value of the d1th feature of the n1th data in the land data processing set A, b is the boundary value, d1 is the feature index of the data, N1 is the number of data in the land data processing set A, D1 is the number of features of the data, and n1 is the data index in the land data processing set A;

[0017] Step S23: Calculate the skewness coefficient. The skewness coefficient is obtained based on the average value of all data of the d1th feature. The formula used is as follows:

[0018] ;

[0019] ;

[0020] In the formula, is the skewness coefficient of the d1th feature, is the data average of the d1th feature;

[0021] Step S24: Calculate the anomaly score, and obtain three anomaly scores based on the first empirical cumulative distribution function, the second empirical cumulative distribution function and the skewness coefficient, respectively. The formula used is as follows:

[0022] ;

[0023] ;

[0024] ;

[0025] In the formula, yes The first anomaly score, yes The second anomaly score, yes The third anomaly score of

[0026] Step S25: Calculate the final anomaly score, pre-set the weight γ1 of the first anomaly score, the weight γ2 of the second anomaly score, and the weight γ3 of the third anomaly score, and the formula used is as follows:

[0027] ;

[0028] In the formula, yes The final anomaly score of

[0029] Step S26: Delete abnormal data, pre-set abnormal threshold β, when ≥β, then the The data is identified as abnormal data and deleted; otherwise, it is retained, and 70% of the data is randomly selected from the last retained data to construct a training data set, and a test data set is constructed based on the remaining 30% of the data.

[0030] Furthermore, in step S3, the construction of the urban land use planning model specifically includes the following steps:

[0031] Step S31: Model training, using Python to import the sklearn library to call the SVM function, and complete model training based on the training data set;

[0032] Step S32: Design a difference loss function. Input the test data set into the model and design a difference loss function based on the loss value. The formula used is as follows:

[0033] ;

[0034] ;

[0035] In the formula, Loss c is the loss value of the cth sample data, H c is the true label of the cth sample data, is the model output label of the cth sample data, K is the difference control amount, Ψ is the weighted variable, c is the index of the sample data, N xl is the number of sample data in the test data set, Loss zh is the difference loss function.

[0036] Furthermore, in step S4, the model parameter search specifically includes the following steps:

[0037] Step S41: Initialize the individual position. The individual position is used as a representative of the model parameters. A position initial value G0 is randomly generated in the range of [0, 1]. The individual position is initialized based on the tent chaos mapping function improved by introducing an adaptive factor. The formula used is as follows:

[0038] ;

[0039] In the formula, G i is the initial position of the ith individual, G i-1 is the initialization position of the i-1th individual, i is the index of the individual, N G is the total number of individuals, ε is the adaptive factor;

[0040] Step S42: Calculate the adaptive influence of the individual, take the performance of the urban land use planning model as the fitness value of the individual, sort them in descending order of fitness value, calculate the relative influence of each individual among all individuals according to the position and fitness value of the individual in the sorting, and the formula used to calculate the adaptive influence of the individual is as follows:

[0041] ;

[0042] In the formula, YX p (t) is the adaptive influence of the pth individual at the tth iteration, that is, the relative influence of the pth individual among all individuals at the tth iteration, p is the sorted individual index, that is, the individual ranking, S p (t) is the fitness value of the pth individual at the tth iteration, and t is the iteration index;

[0043] Step S43: Construct an individual adaptive neighborhood group and pre-set the neighborhood threshold , according to the neighborhood threshold , judge the adaptive neighborhood relationship between each pair of individuals, if YX p (t) or YX q There is one value in (t) greater than the neighborhood threshold , then the adaptive neighborhood relationship between individual p and individual q is recorded as 1; otherwise, the adaptive neighborhood relationship between individual p and individual q is recorded as 0, and the adaptive neighborhood group Z of individual p at the tth iteration is constructed based on the individuals with adaptive neighborhood relationship 1. p (t); where YX q (t) is the adaptive influence of the qth individual at the tth iteration, where q is the sorted index of the individual that is not equal to p;

[0044] Step S44: Perform location update based on the correction factor and randomly generate a location update strategy selection value h for each individual p , the formula used for position update based on the correction factor is as follows:

[0045] ;

[0046] ;

[0047] ;

[0048] In the formula, G p (t) is the position of the pth individual at the t+1th iteration, is the first correction factor, is the second correction factor, j is the adaptive neighborhood group Z p The individual index in (t), N pis the adaptive neighborhood group Z p The number of individuals in (t), E j is the jth individual in the adaptive neighborhood group Z p (t) weight, r is the updated random value, G j (t) is the adaptive neighborhood group Z at the tth iteration p The position of the jth individual in (t);

[0049] Step S45: Parameter determination, pre-set the fitness threshold σ and the maximum number of iterations T, update the individual fitness value, and when the highest fitness value is greater than the fitness threshold σ, build an urban land use planning model based on the current model parameters; otherwise, if the maximum number of iterations T is reached, go to step S41; otherwise, go to step S42.

[0050] Furthermore, in step S5, the urban land use planning is to collect urban land data of the area that needs to be planned, input it into the urban land use planning model for planning after pre-processing, and reasonably plan the use type of urban land according to the data labels output by the model.

[0051] The present invention provides an urban land use planning system based on machine learning, comprising a data acquisition module, an urban land data anomaly processing module, an urban land use planning model building module, a model parameter search module and an urban land use planning module;

[0052] The data collection module collects urban land data and utilization type, and sends the data to the urban land data exception processing module;

[0053] The urban land data anomaly processing module calculates the empirical cumulative distribution function and skewness coefficient of each feature of the data, obtains three different anomaly scores of the data, calculates the final anomaly score of the data using the weighted average method, identifies and deletes abnormal data according to the anomaly threshold, and sends the data to the urban land use planning model construction module;

[0054] The urban land use planning model construction module calls the SVM function, introduces the difference control amount and the weighted variable to design the difference loss function, completes the model construction, and sends the data to the model parameter search module;

[0055] The model parameter search module uses the tent chaos mapping function improved by the adaptive factor to initialize the individual position, constructs the adaptive neighborhood group based on the adaptive influence, updates the position based on the correction factor, completes the parameter search, and sends the data to the urban land use planning module;

[0056] The urban land use planning module reasonably plans the use type of urban land based on the data tags output by the urban land use planning model.

[0057] The beneficial effects achieved by the present invention using the above scheme are as follows:

[0058] (1) In view of the fact that the collected urban land data contain outliers, which increase the inaccuracy and unreliability of the data, and the existing outlier detection algorithms are difficult to accurately assess the degree of data anomaly, this scheme calculates the empirical cumulative distribution function and skewness coefficient of each feature of the data to obtain three different anomaly scores for the data. The weighted average method is used to calculate the final anomaly score of the data, and abnormal data is identified and deleted based on the anomaly threshold. This more accurately measures the distribution and skewness of the data, thereby better judging the degree of data anomaly and ensuring the quality and reliability of the selected data set.

[0059] (2) In view of the overfitting risk, low efficiency and accuracy of the existing urban land use planning model, this scheme introduces difference control quantity and weighted variables to design the difference loss function, enhances the accuracy of the model, makes it better adapt to the urban land use planning task, reduces the overfitting of the model to the training data, improves the generalization ability of the model, accelerates the convergence speed of the model, and enables the model to achieve better performance more quickly.

[0060] (3) In view of the problem that the initialization position distribution of the existing urban land use planning model is uneven during parameter search and no effective information exchange is performed during position update, which disrupts the convergence speed of the algorithm, this scheme uses the tent chaos mapping function improved by adaptive factors to initialize individual positions, ensure that the individual position distribution is relatively uniform, increase the coverage of the search space, and construct individual adaptive neighborhood groups based on adaptive influence. It can use information exchange between neighbors to improve the search effect, update the position based on the correction factor, adjust the change of individual position by the correction factor, control the change amplitude of the position to a certain extent, avoid excessive or small changes, improve the search efficiency and global search ability, maintain the diversity of the search, and improve the precision and efficiency of the search, optimize the model performance, and improve the effect of urban land use planning. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] Figure 1 A flow chart of a method for urban land use planning based on machine learning provided by the present invention;

[0062] Figure 2 A schematic diagram of an urban land use planning system based on machine learning provided by the present invention;

[0063] Figure 3 is a schematic flow chart of step S2;

[0064] Figure 4 It is a schematic diagram of the process of step S4.

[0065] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention. DETAILED DESCRIPTION

[0066] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0067] In the description of the present invention, it should be understood that terms such as “upper”, “lower”, “front”, “back”, “left”, “right”, “top”, “bottom”, “inside” and “outside” indicating directions or positional relationships are based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as limiting the present invention.

[0068] Example 1, see Figure 1 The present invention provides a method for urban land use planning based on machine learning, which comprises the following steps:

[0069] Step S1: Data collection, collecting urban land data and utilization types, and using the utilization types as data labels;

[0070] Step S2: Processing of urban land data anomalies: calculating the empirical cumulative distribution function and skewness coefficient of each feature of the data, obtaining three different anomaly scores of the data, using the weighted average method to calculate the final anomaly score of the data, and identifying and deleting abnormal data according to the anomaly threshold;

[0071] Step S3: construct an urban land use planning model, call the SVM function, introduce the difference control amount and weighted variables to design the difference loss function, and complete the model construction;

[0072] Step S4: Model parameter search, using the tent chaos mapping function improved by the adaptive factor to initialize the individual position, construct an adaptive neighborhood group based on the adaptive influence, and update the position based on the correction factor;

[0073] Step S5: Urban land use planning, rationally planning the use type of urban land based on the data tags output by the urban land use planning model.

[0074] Example 2, see Figure 1This embodiment is based on the above embodiment. In step S1, data collection is to collect urban land data and utilization types. Urban land data includes land utilization status data, population data, economic data, ecological environment data, traffic data and topographic data. Utilization types include commercial areas, industrial areas, public areas, residential areas and landscape areas. The utilization types are used as data labels.

[0075] Example 3, see Figure 1 and Figure 3 This embodiment is based on the above embodiment. In step S2, the abnormal processing of urban land data specifically includes the following steps:

[0076] Step S21: preprocessing, normalizing the collected data, removing noise and missing values, and constructing a land data processing set A based on the preprocessed data;

[0077] Step S22: Calculate the empirical cumulative distribution function. For the boundary value b of the d1th feature, calculate the proportion of values ​​less than or equal to b and the proportion of values ​​greater than or equal to b in the land data processing set A to obtain the first empirical cumulative distribution function and the second empirical cumulative distribution function. The formula used is as follows:

[0078] ;

[0079] ;

[0080] Where 1{} is an indicator function, which is 1 when its argument is true and 0 otherwise; is the first empirical cumulative distribution function of the d1th feature, is the second empirical cumulative distribution function of the d1th feature, is the value of the d1th feature of the n1th data in the land data processing set A, b is the boundary value and b∈R, R is the real number domain, d1 is the feature index of the data, N1 is the number of data in the land data processing set A, D1 is the number of features of the data, and n1 is the data index in the land data processing set A;

[0081] Step S23: Calculate the skewness coefficient. The skewness coefficient is obtained based on the average value of all data of the d1th feature. The formula used is as follows:

[0082] ;

[0083] ;

[0084] In the formula, is the skewness coefficient of the d1th feature, is the data average of the d1th feature;

[0085] Step S24: Calculate the anomaly score, and obtain three anomaly scores based on the first empirical cumulative distribution function, the second empirical cumulative distribution function and the skewness coefficient, respectively. The formula used is as follows:

[0086] ;

[0087] ;

[0088] ;

[0089] In the formula, yes The first anomaly score, yes The second anomaly score, yes The third anomaly score of

[0090] Step S25: Calculate the final anomaly score, pre-set the weight γ1 of the first anomaly score, the weight γ2 of the second anomaly score, and the weight γ3 of the third anomaly score, and the formula used is as follows:

[0091] ;

[0092] In the formula, yes The final anomaly score of

[0093] Step S26: Delete abnormal data, pre-set abnormal threshold β, when ≥β, then the The data is identified as abnormal data and deleted; otherwise, it is retained, and 70% of the data is randomly selected from the last retained data to construct a training data set, and a test data set is constructed based on the remaining 30% of the data.

[0094] By performing the above operations, the collected urban land data contains outliers, which increases the inaccuracy and unreliability of the data, and the existing outlier detection algorithms are difficult to accurately evaluate the degree of data anomaly. This scheme calculates the empirical cumulative distribution function and skewness coefficient of each feature of the data, obtains three different anomaly scores of the data, uses the weighted average method to calculate the final anomaly score of the data, and identifies and deletes abnormal data based on the anomaly threshold, more accurately measures the distribution and skewness of the data, thereby better judging the degree of data anomaly and ensuring the quality and reliability of the selected data set.

[0095] Example 4, see Figure 1 Based on the above embodiment, in step S3, building an urban land use planning model specifically includes the following steps:

[0096] Step S31: Model training, using Python to import the sklearn library to call the SVM function, and complete model training based on the training data set;

[0097] Step S32: Design a difference loss function. Input the test data set into the model and design a difference loss function based on the loss value. The formula used is as follows:

[0098] ;

[0099] ;

[0100] In the formula, Loss c is the loss value of the cth sample data, H c is the true label of the cth sample data, is the model output label of the cth sample data, K is the difference control amount, Ψ is the weighted variable and Ψ>1, c is the index of the sample data, N xl is the number of sample data in the test data set, Loss zh is the difference loss function.

[0101] By performing the above operations, in view of the overfitting risk, low efficiency and accuracy of the existing urban land use planning model, this scheme introduces difference control quantity and weighted variable to design difference loss function, enhances the accuracy of the model, makes it better adapt to the urban land use planning task, reduces the overfitting of the model to the training data, improves the generalization ability of the model, accelerates the convergence speed of the model, and enables the model to achieve better performance faster.

[0102] Example 5, see Figure 1 and Figure 4 This embodiment is based on the above embodiment. In step S4, the model parameter search specifically includes the following steps:

[0103] Step S41: Initialize the individual position. The individual position is used as a representative of the model parameters. A position initial value G0 is randomly generated in the range of [0, 1]. The individual position is initialized based on the tent chaos mapping function improved by introducing an adaptive factor. The formula used is as follows:

[0104] ;

[0105] In the formula, G i is the initial position of the ith individual, G i-1 is the initialization position of the i-1th individual, i is the index of the individual, N G is the total number of individuals, ε is the adaptive factor;

[0106] Step S42: Calculate the adaptive influence of the individual, take the performance of the urban land use planning model as the fitness value of the individual, sort them in descending order of fitness value, calculate the relative influence of each individual among all individuals according to the position and fitness value of the individual in the sorting, and the formula used to calculate the adaptive influence of the individual is as follows:

[0107] ;

[0108] In the formula, YX p (t) is the adaptive influence of the pth individual at the tth iteration, that is, the relative influence of the pth individual among all individuals at the tth iteration, p is the sorted individual index, that is, the individual ranking, S p (t) is the fitness value of the pth individual at the tth iteration, and t is the iteration index;

[0109] Step S43: Construct an individual adaptive neighborhood group and pre-set the neighborhood threshold , according to the neighborhood threshold , judge the adaptive neighborhood relationship between each pair of individuals, if YX p (t) or YX q There is one value in (t) greater than the neighborhood threshold , then the adaptive neighborhood relationship between individual p and individual q is recorded as 1; otherwise, the adaptive neighborhood relationship between individual p and individual q is recorded as 0, and the adaptive neighborhood group Z of individual p at the tth iteration is constructed based on the individuals with adaptive neighborhood relationship 1. p (t), p = 1, 2, ..., N G Among them, YX q (t) is the adaptive influence of the qth individual at the tth iteration, where q is the sorted index of the individual that is not equal to p;

[0110] Step S44: Perform location update based on the correction factor, and randomly generate a location update strategy selection value h between (0, 1) for each individual p , the formula used for position update based on the correction factor is as follows:

[0111] ;

[0112] ;

[0113] ;

[0114] In the formula, G p (t) is the position of the pth individual at the t+1th iteration, is the first correction factor, is the second correction factor, j is the adaptive neighborhood group Zp The individual index in (t), N p is the adaptive neighborhood group Z p The number of individuals in (t), E j is the jth individual in the adaptive neighborhood group Z p The weight in (t), r is the updated random value between [0, 1], G j (t) is the adaptive neighborhood group Z at the tth iteration p The position of the jth individual in (t);

[0115] Step S45: Parameter determination, pre-set the fitness threshold σ and the maximum number of iterations T, update the individual fitness value, and when the highest fitness value is greater than the fitness threshold σ, build an urban land use planning model based on the current model parameters; otherwise, if the maximum number of iterations T is reached, go to step S41; otherwise, go to step S42.

[0116] By performing the above operations, in order to solve the problem that the initialization position distribution of the existing urban land use planning model is uneven during parameter search, and no effective information exchange is performed during position update, which disrupts the convergence speed of the algorithm, this scheme uses the tent chaos mapping function improved by adaptive factors to initialize individual positions, ensure that the individual position distribution is relatively uniform, increase the coverage of the search space, and construct individual adaptive neighborhood groups based on adaptive influence, which can improve the search effect by using information exchange between neighbors, update the position based on the correction factor, adjust the change of individual position by the correction factor, control the change amplitude of the position to a certain extent, avoid excessive or small changes, improve the search efficiency and global search ability, maintain the diversity of the search, and improve the precision and efficiency of the search, optimize the model performance, and improve the effect of urban land use planning.

[0117] Example 6, see Figure 1 This embodiment is based on the above embodiment. In step S5, urban land use planning is to collect urban land data of the area that needs to be planned, and input it into the urban land use planning model for planning after preprocessing, and reasonably plan the use type of urban land according to the data labels output by the model.

[0118] Embodiment 7, see Figure 2 , this embodiment is based on the above embodiment, and the present invention provides an urban land use planning system based on machine learning, including a data acquisition module, an urban land data abnormality processing module, an urban land use planning model construction module, a model parameter search module and an urban land use planning module;

[0119] The data collection module collects urban land data and utilization types, and sends the data to the urban land data exception processing module;

[0120] The urban land data anomaly processing module calculates the empirical cumulative distribution function and skewness coefficient of each feature of the data, obtains three different anomaly scores of the data, uses the weighted average method to calculate the final anomaly score of the data, identifies and deletes abnormal data according to the anomaly threshold, and sends the data to the module for building the urban land use planning model;

[0121] The urban land use planning model module is constructed to call the SVM function, introduce the difference control amount and weighted variables to design the difference loss function, complete the model construction, and send the data to the model parameter search module;

[0122] The model parameter search module uses the tent chaos mapping function improved by the adaptive factor to initialize the individual position, builds the adaptive neighborhood group based on the adaptive influence, updates the position based on the correction factor, completes the parameter search, and sends the data to the urban land use planning module;

[0123] The urban land use planning module rationally plans the use types of urban land based on the data labels output by the urban land use planning model.

[0124] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0125] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

[0126] The present invention and its embodiments are described above, and such description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. In short, if ordinary technicians in the field are inspired by it, without departing from the purpose of the invention, they can design a structure and embodiment similar to the technical solution without creativity, which should belong to the protection scope of the present invention.

Claims

1. A method for urban land use planning based on machine learning, Features: The method comprises the following steps: Step S1: Data collection, collecting urban land data and utilization types; Step S2: Processing of urban land data anomalies: calculating the empirical cumulative distribution function and skewness coefficient of each feature of the data, obtaining three different anomaly scores of the data, using the weighted average method to calculate the final anomaly score of the data, and identifying and deleting abnormal data according to the anomaly threshold; Step S3: construct an urban land use planning model, call the SVM function, introduce the difference control amount and weighted variables to design the difference loss function, and complete the model construction; Step S4: Model parameter search, using the tent chaos mapping function improved by the adaptive factor to initialize the individual position, construct an adaptive neighborhood group based on the adaptive influence, and update the position based on the correction factor; Step S5: Urban land use planning, rationally planning the use type of urban land based on the data tags output by the urban land use planning model; In step S2, the urban land data abnormality processing specifically includes the following steps: Step S21: preprocessing, normalizing the collected data, removing noise and missing values, and constructing a land data processing set A based on the preprocessed data; Step S22: Calculate the empirical cumulative distribution function using the following formula: ; ; Where 1{} is an indicator function, which is 1 when its argument is true and 0 otherwise; It is the d 1 The first empirical cumulative distribution function of the features, It is the d 1 The second empirical cumulative distribution function of the features is, is the nth 1 The dth data 1 The value of the feature, b is the boundary value, d 1 is the feature index of the data, N 1 is the number of data in the land data processing set A, D 1 is the number of features in the data, n 1 is the data index in the land data processing set A; Step S23: Calculate the skewness coefficient using the following formula: ; ; In the formula, It is the d 1 The skewness coefficient of the feature, It is the d 1 The average value of the data for each feature; Step S24: Calculate the abnormality score using the following formula: ; ; ; In the formula, yes The first anomaly score, yes The second anomaly score, yes The third anomaly score of Step S25: Calculate the final anomaly score and pre-set the weight γ of the first anomaly score 1 , the weight of the second anomaly score γ 2 and the weight of the third anomaly score γ 3 , the formula used is as follows: ; In the formula, yes The final anomaly score of Step S26: Delete abnormal data, pre-set abnormal threshold β, when ≥β, then the The data is identified as abnormal data and deleted; otherwise, it is retained, and 70% of the data is randomly selected from the last retained data to build a training data set, and the test data set is built based on the remaining 30% of the data; In step S4, the model parameter search specifically includes the following steps: Step S41: Initialize the individual position, using the individual position as a representative of the model parameters, and randomly generate an initial position value G in the range of [0, 1] 0 , based on the tent chaos mapping function improved by introducing adaptive factors to initialize individual positions, the formula used is as follows: ; In the formula, G i is the initial position of the ith individual, G i-1 is the initialization position of the i-1th individual, i is the index of the individual, N G is the total number of individuals, ε is the adaptive factor; Step S42: Calculate the adaptive influence of the individual, take the performance of the urban land use planning model as the fitness value of the individual, sort them in order from large to small according to the fitness value, and calculate the adaptive influence of the individual using the following formula: ; In the formula, YX p (t) is the adaptive influence of the pth individual at the tth iteration, p is the sorted individual index, i.e., individual ranking, S p (t) is the fitness value of the pth individual at the tth iteration, and t is the iteration index; Step S43: Construct an individual adaptive neighborhood group and pre-set the neighborhood threshold , if YX p (t) or YX q There is one value in (t) greater than the neighborhood threshold , then the adaptive neighborhood relationship between individual p and individual q is recorded as 1; otherwise, the adaptive neighborhood relationship between individual p and individual q is recorded as 0, and the adaptive neighborhood group Z of individual p at the tth iteration is constructed based on the individuals with adaptive neighborhood relationship 1. p (t); where YX q (t) is the adaptive influence of the qth individual at the tth iteration, where q is the sorted index of the individual that is not equal to p; Step S44: Perform location update based on the correction factor and randomly generate a location update strategy selection value h for each individual p , the formula used for position update based on the correction factor is as follows: ; ; ; In the formula, G p (t) is the position of the pth individual at the t+1th iteration, is the first correction factor, is the second correction factor, j is the adaptive neighborhood group Z p The individual index in (t), N p is the adaptive neighborhood group Z p The number of individuals in (t), E j is the jth individual in the adaptive neighborhood group Z p (t) weight, r is the updated random value, G j (t) is the adaptive neighborhood group Z at the tth iteration p The position of the jth individual in (t); Step S45: Parameter determination, pre-set the fitness threshold σ and the maximum number of iterations T, update the individual fitness value, and when the highest fitness value is greater than the fitness threshold σ, build an urban land use planning model based on the current model parameters; otherwise, if the maximum number of iterations T is reached, go to step S41; otherwise, go to step S42; In step S3, the construction of the urban land use planning model specifically includes the following steps: Step S31: Model training, using Python to import the sklearn library to call the SVM function, and complete model training based on the training data set; Step S32: Design a difference loss function. Input the test data set into the model and design a difference loss function based on the loss value. The formula used is as follows: ; ; In the formula, Loss c is the loss value of the cth sample data, H c is the true label of the cth sample data, is the model output label of the cth sample data, K is the difference control amount, Ψ is the weighted variable, c is the index of the sample data, N xl is the number of sample data in the test data set, Loss zh is the difference loss function.

2. The urban land use planning method based on machine learning according to claim 1, Features: In step S1, the data collection is to collect urban land data and utilization types. The urban land data includes land utilization status data, population data, economic data, ecological environment data, traffic data and topographic data. The utilization types include commercial areas, industrial areas, public areas, residential areas and landscape areas. The utilization types are used as data labels.

3. The urban land use planning method based on machine learning according to claim 1, Features: In step S5, the urban land use planning is to collect urban land data of the area that needs to be planned, input it into the urban land use planning model after pre-processing, and reasonably plan the use type of urban land according to the data labels output by the model.

4. A machine learning-based urban land use planning system, used to implement a machine learning-based urban land use planning method as claimed in any one of claims 1 to 3, Features: It includes a data collection module, an urban land data anomaly processing module, an urban land use planning model building module, a model parameter search module and an urban land use planning module.

5. The urban land use planning system based on machine learning according to claim 4, Features: The data collection module collects urban land data and utilization type, and sends the data to the urban land data exception processing module; The urban land data anomaly processing module calculates the empirical cumulative distribution function and skewness coefficient of each feature of the data, obtains three different anomaly scores of the data, calculates the final anomaly score of the data using the weighted average method, identifies and deletes abnormal data according to the anomaly threshold, and sends the data to the urban land use planning model construction module; The urban land use planning model construction module calls the SVM function, introduces the difference control amount and the weighted variable to design the difference loss function, completes the model construction, and sends the data to the model parameter search module; The model parameter search module uses the tent chaos mapping function improved by the adaptive factor to initialize the individual position, constructs the adaptive neighborhood group based on the adaptive influence, updates the position based on the correction factor, completes the parameter search, and sends the data to the urban land use planning module; The urban land use planning module reasonably plans the use type of urban land based on the data tags output by the urban land use planning model.