CN115409671B - Composition method, device, terminal and storage medium of community resident population micro data - Google Patents
Composition method, device, terminal and storage medium of community resident population micro data Download PDFInfo
- Publication number
- CN115409671B CN115409671B CN202211046776.8A CN202211046776A CN115409671B CN 115409671 B CN115409671 B CN 115409671B CN 202211046776 A CN202211046776 A CN 202211046776A CN 115409671 B CN115409671 B CN 115409671B
- Authority
- CN
- China
- Prior art keywords
- population
- community
- data
- family
- micro
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 239000000203 mixture Substances 0.000 title description 2
- 230000002194 synthesizing effect Effects 0.000 claims abstract description 10
- 238000009826 distribution Methods 0.000 claims description 38
- 230000015572 biosynthetic process Effects 0.000 claims description 25
- 230000006870 function Effects 0.000 claims description 24
- 238000004422 calculation algorithm Methods 0.000 claims description 23
- 238000003062 neural network model Methods 0.000 claims description 23
- 238000005070 sampling Methods 0.000 claims description 20
- 239000011159 matrix material Substances 0.000 claims description 19
- 238000005457 optimization Methods 0.000 claims description 16
- 230000008569 process Effects 0.000 claims description 12
- 238000001308 synthesis method Methods 0.000 claims description 9
- 239000013598 vector Substances 0.000 claims description 8
- 238000000342 Monte Carlo simulation Methods 0.000 claims description 7
- 239000000284 extract Substances 0.000 claims description 4
- 238000010189 synthetic method Methods 0.000 claims description 2
- 238000004088 simulation Methods 0.000 abstract description 7
- 230000002265 prevention Effects 0.000 abstract description 3
- 238000013468 resource allocation Methods 0.000 abstract description 2
- 238000003786 synthesis reaction Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 7
- 238000004590 computer program Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 238000004364 calculation method Methods 0.000 description 4
- 210000002569 neuron Anatomy 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 3
- 238000010276 construction Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000011002 quantification Methods 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000011158 quantitative evaluation Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000011273 social behavior Effects 0.000 description 1
- 238000000547 structure data Methods 0.000 description 1
- 230000002123 temporal effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000012549 training Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/10—Services
- G06Q50/26—Government or public services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- Health & Medical Sciences (AREA)
- General Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Computational Linguistics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Evolutionary Computation (AREA)
- Biophysics (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Biomedical Technology (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Artificial Intelligence (AREA)
- Data Mining & Analysis (AREA)
- Tourism & Hospitality (AREA)
- Educational Administration (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Human Resources & Organizations (AREA)
- Marketing (AREA)
- Primary Health Care (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
技术领域technical field
本发明涉及社会仿真技术领域,尤其涉及的是一种社区居民人口微观数据合成方法、装置、终端及存储介质。The present invention relates to the technical field of social simulation, in particular to a method, device, terminal and storage medium for synthesizing microscopic data of community resident population.
背景技术Background technique
随着城市数字化与精细化治理的不断推进,包括公共服务设施需求预测、养老教育设施布局选址、防灾疏散精准模拟、交通网络设计在内的诸多领域对于带有空间信息和居民属性的人口微观数据的需求日益增长。With the continuous advancement of urban digitalization and refined governance, many fields, including demand forecasting for public service facilities, layout and location selection for elderly care and education facilities, accurate simulation of disaster prevention and evacuation, and traffic network design, are critical to the population with spatial information and resident attributes. There is a growing demand for micro data.
而现有的住区人口信息预测方法多采用地理信息数据或空间遥感信息生成不带有居民属性的人口空间分布信息,或采用人口合成技术生成带有居民属性却没有空间信息的人口微观数据。The existing population information prediction methods of residential areas mostly use geographic information data or spatial remote sensing information to generate population spatial distribution information without resident attributes, or use population synthesis technology to generate population micro data with resident attributes but no spatial information.
因此,现有技术还没有办法获得带有空间信息和居民属性的人口微观数据。Therefore, the existing technology has no way to obtain population micro data with spatial information and resident attributes.
发明内容Contents of the invention
本发明的主要目的在于提供一种社区居民人口微观数据合成方法、装置、智能终端及存储介质,能够生成带有空间信息与居民属性的社区居民人口微观数据。The main purpose of the present invention is to provide a microcosmic data synthesis method, device, intelligent terminal and storage medium of community resident population, capable of generating microcosmic data of community resident population with spatial information and resident attributes.
为了实现上述目的,本发明第一方面提供一种社区居民人口微观数据合成方法,所述方法包括:In order to achieve the above object, the first aspect of the present invention provides a method for synthesizing microcosmic data of community resident population, said method comprising:
基于行政区域宏观人口统计数据与社区的微观人口抽样数据,根据迭代比例更新算法获得社区人口微观数据集,所述社区人口微观数据集中包括住栋信息和家庭信息;Based on the macro-demographic data of the administrative area and the micro-population sampling data of the community, the micro-data set of the community population is obtained according to the iterative proportional update algorithm, and the micro-data set of the community population includes housing information and family information;
将所述社区人口微观数据集输入神经网络模型,获得用于预测家庭与住栋之间关系的预测模型;Input the microcosmic data set of the community population into the neural network model to obtain a prediction model for predicting the relationship between the family and the building;
基于所述预测模型、各类住栋的真实容量形成的约束条件,以效用损失最小为目标将所述社区人口微观数据集中各家庭样本分配至各类住栋,获得带有空间信息与居民属性的社区居民人口微观数据。Based on the constraints formed by the prediction model and the real capacity of various residential buildings, with the goal of minimizing the utility loss, each family sample in the microscopic data set of the community population is allocated to various residential buildings, and the spatial information and resident attributes are obtained. The population micro-data of community residents.
可选的,所述神经网络模型的输入层提取家庭特征和住栋特征,所述家庭特征包括:家庭人口数量、最高受教育程度、最大年龄、代际结构;所述住栋特征包括:住栋户型、住栋租金、产权属性。Optionally, the input layer of the neural network model extracts family features and housing features, and the family features include: family population, maximum education level, maximum age, and intergenerational structure; the housing features include: housing Building type, building rent, property right attribute.
可选的,所述基于行政区域宏观人口统计数据与社区的微观人口抽样数据,根据迭代比例更新算法获得社区人口微观数据集,包括:Optionally, based on the macro-demographic data of the administrative region and the micro-population sampling data of the community, the community population micro-data set is obtained according to an iterative proportional update algorithm, including:
根据微观人口抽样数据中家庭分类与人口特征之间的关系,获得频率矩阵;According to the relationship between family classification and population characteristics in the micro-population sampling data, a frequency matrix is obtained;
基于所述频率矩阵,根据迭代比例更新算法获得各人口特征对应的联合分布值;Based on the frequency matrix, a joint distribution value corresponding to each population characteristic is obtained according to an iterative proportional update algorithm;
循环迭代并根据所述频率矩阵和所述联合分布值计算每一次迭代的拟合度,直至所述拟合度小于设定阈值,获得各家庭分类的概率分布;Iterating in a loop and calculating the fitting degree of each iteration according to the frequency matrix and the joint distribution value, until the fitting degree is less than a set threshold, and obtaining the probability distribution of each family classification;
基于所述概率分布,采用蒙特卡洛方法随机抽取家庭样本至所述社区人口微观数据集。Based on the probability distribution, a Monte Carlo method is used to randomly select household samples to the microcosmic data set of the community population.
可选的,计算拟合度的表达式为:Optionally, the expression for calculating the degree of fit is:
其中,σ为拟合度,Dij为频率矩阵,Cj为联合分布值,m为人口特征的数量,W为权重向量。Among them, σ is the degree of fit, D ij is the frequency matrix, C j is the joint distribution value, m is the number of population characteristics, and W is the weight vector.
可选的,所述神经网络模型的误差函数模型为:Optionally, the error function model of the neural network model is:
其中,tn为期望输出,un为实际输出,N为家庭样本的个数。Among them, t n is the expected output, u n is the actual output, and N is the number of family samples.
可选的,所述基于所述预测模型、各类住栋的真实容量形成的约束条件,以效用损失最小为目标将所述社区人口微观数据集中各家庭样本分配至各类住栋,获得带有空间信息与居民属性的社区居民人口微观数据,包括:Optionally, based on the constraint conditions formed by the prediction model and the real capacity of various types of residential buildings, with the goal of minimizing the utility loss, each family sample in the community population micro-data set is allocated to various types of residential buildings, and the belt Community resident population microdata with spatial information and resident attributes, including:
基于各类住栋的真实容量的约束条件,以效用损失最小化为目标,构建动态优化模型的目标函数,所述动态优化模型用于对各住栋居民进行优化分配;Based on the constraint conditions of the real capacity of various residential buildings, with the utility loss minimization as the goal, the objective function of the dynamic optimization model is constructed, and the dynamic optimization model is used to optimize the distribution of residents in each residential building;
获得各类住栋的特征并将该特征、所述预测模型的预测结果输入动态优化模型,获得所述社区居民人口微观数据。Obtain the characteristics of various types of residential buildings and input the characteristics and the prediction results of the prediction model into the dynamic optimization model to obtain the microscopic data of the population of residents in the community.
可选的,所述目标函数的表达式为:Optionally, the expression of the objective function is:
其中,Aik为预测的第i类家庭选择k类住栋的概率,i=1,2,3...M,M为家庭类别的数量;Bik为第i类家庭对应的4个属性,k=1,2,3,4;Dij为第i类家庭被分配到第j类住栋的数量,i=1,2,3...M,j=1,2,3...N,N为住栋类型的数量;Pi=0或1表示在分配过程中该住栋是否被选中,i=1,2,...N;Wk为第k种住栋属性的权重,为Pi的均值。Among them, A ik is the predicted probability that the i-th family chooses the k-type residential building, i=1,2,3...M, M is the number of family categories; B ik is the four attributes corresponding to the i-th family , k=1,2,3,4; D ij is the number of households of type i allocated to type j housing, i=1,2,3...M,j=1,2,3.. .N, N is the number of residential building types; P i =0 or 1 indicates whether the residential building is selected during the allocation process, i=1, 2,...N; W k is the property of the kth residential building Weights, is the mean value of Pi .
本发明第二方面提供一种社区居民人口微观数据合成装置,其中,上述装置包括:The second aspect of the present invention provides a microcosmic data synthesis device for community residents, wherein the above-mentioned device includes:
社区人口微观数据集获取模块,用于基于行政区域宏观人口统计数据与社区的微观人口抽样数据,根据迭代比例更新算法获得社区人口微观数据集,所述社区人口微观数据集中包括住栋信息和家庭信息;The community population micro-data set acquisition module is used to obtain the community population micro-data set based on the macro-demographic data of the administrative area and the micro-population sampling data of the community according to the iterative proportional update algorithm. The community population micro-data set includes housing information and family information. information;
预测模块,用于将所述社区人口微观数据集输入神经网络模型,获得用于预测家庭与住栋之间关系的预测模型;Prediction module, for inputting the microcosmic data set of the community population into the neural network model to obtain a prediction model for predicting the relationship between the family and the building;
分配模块,用于基于所述预测模型、各类住栋的真实容量形成的约束条件,以效用损失最小为目标将所述社区人口微观数据集中各家庭样本分配至各类住栋,获得带有空间信息与居民属性的社区居民人口微观数据。The allocation module is used to allocate the family samples in the community population micro-data set to various types of residential buildings based on the constraints formed by the prediction model and the real capacity of various residential buildings with the goal of minimizing utility loss, and obtain Community resident population micro data of spatial information and resident attributes.
本发明第三方面提供一种智能终端,上述智能终端包括存储器、处理器以及存储在上述存储器上并可在上述处理器上运行的社区居民人口微观数据合成程序,上述社区居民人口微观数据合成程序被上述处理器执行时实现任意一项上述社区居民人口微观数据合成方法的步骤。The third aspect of the present invention provides an intelligent terminal. The above-mentioned intelligent terminal includes a memory, a processor, and a community resident population micro-data synthesis program that is stored on the above-mentioned memory and can run on the above-mentioned processor. The above-mentioned community resident population micro-data synthesis program When executed by the above-mentioned processor, the steps of realizing any one of the above-mentioned methods for synthesizing microscopic data of community resident population.
本发明第四方面提供一种计算机可读存储介质,上述计算机可读存储介质上存储有社区居民人口微观数据合成程序,上述社区居民人口微观数据合成程序被处理器执行时实现任意一项上述社区居民人口微观数据合成方法的步骤。The fourth aspect of the present invention provides a computer-readable storage medium. The above-mentioned computer-readable storage medium stores a community resident population micro-data synthesis program. When the above-mentioned community resident population micro-data synthesis program is executed by a processor, any one of the above-mentioned community The steps of the synthetic method of resident population micro data.
由上可见,本发明首先在行政区域宏观人口统计数据与社区的微观人口抽样数据的基础上通过迭代比例更新算法获得社区人口微观数据集,再根据神经网络模型学习家庭与住栋之间的关系,然后以效用损失最小为目标将各家庭样本优化分配至各住栋,从而获得带有空间信息与居民属性的社区居民人口微观数据。It can be seen from the above that the present invention first obtains the microscopic data set of community population through an iterative proportional update algorithm based on the macroscopic demographic data of the administrative region and the microscopic population sampling data of the community, and then learns the relationship between the family and the building according to the neural network model. , and then optimize the allocation of each household sample to each residential building with the goal of minimizing the utility loss, so as to obtain the microscopic data of the community resident population with spatial information and resident attributes.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the descriptions of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only of the present invention. For some embodiments, those skilled in the art can also obtain other drawings according to these drawings without paying creative efforts.
图1是本发明实施例提供的社区居民人口微观数据合成方法流程示意图;Fig. 1 is a schematic flow chart of a microcosmic data synthesis method for community resident population provided by an embodiment of the present invention;
图2是图1实施例的步骤S300具体流程示意图;FIG. 2 is a schematic diagram of the specific flow of step S300 in the embodiment of FIG. 1;
图3是图1实施例的步骤S100具体流程示意图;FIG. 3 is a schematic diagram of the specific flow of step S100 in the embodiment of FIG. 1;
图4是本发明实施例提供的社区居民人口微观数据合成装置的结构示意图;Fig. 4 is a schematic structural diagram of a community resident population micro data synthesis device provided by an embodiment of the present invention;
图5是本发明实施例提供的一种智能终端的内部结构原理框图。Fig. 5 is a functional block diagram of an internal structure of a smart terminal provided by an embodiment of the present invention.
具体实施方式Detailed ways
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本发明实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本发明。在其它情况下,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本发明的描述。In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present invention. It will be apparent, however, to one skilled in the art that the invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It should be understood that when used in this 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 one or more other features. , whole, step, operation, element, component and/or the presence or addition of a collection thereof.
还应当理解,在本发明说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本发明。如在本发明说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should also be understood that the terminology used in the description of the present invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the present invention. As used in this specification and the appended claims, the singular forms "a", "an" and "the" are intended to include plural referents unless the context clearly dictates otherwise.
还应当进一步理解,在本发明说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be further understood that the term "and/or" used in the description of the present invention and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations .
如在本说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当…时”或“一旦”或“响应于确定”或“响应于检测到”。类似的,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述的条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in this specification and the appended claims, the term "if" may be construed as "when" or "once" or "in response to determining" or "in response to detecting" depending on the context. Similarly, the phrases "if determined" or "if detected [the described condition or event]" may be construed, depending on the context, to mean "once determined" or "in response to the determination" or "once detected [the described condition or event]" event]" or "in response to detection of [described condition or event]".
下面结合本发明实施例的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明的一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Apparently, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
在下面的描述中阐述了很多具体细节以便于充分理解本发明,但是本发明还可以采用其它不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本发明内涵的情况下做类似推广,因此本发明不受下面公开的具体实施例的限制。In the following description, a lot of specific details are set forth in order to fully understand the present invention, but the present invention can also be implemented in other ways different from those described here, and those skilled in the art can do it without departing from the meaning of the present invention. By analogy, the present invention is therefore not limited to the specific examples disclosed below.
通常情况下,人口微观信息获取费时费力且涉及到居民隐私保护的问题,大多数相关研究与实践只有以行政区域为单位的人口普查数据汇总可以使用,其空间分辨率与时间分辨率均难以满足实际需求。Usually, the acquisition of population micro-information is time-consuming and labor-intensive and involves the privacy protection of residents. Most of the relevant research and practice can only use the summary of census data based on administrative regions, and its spatial resolution and temporal resolution are difficult to meet. Actual demand.
现有的住区人口信息预测方法多采用地理信息数据或空间遥感信息生成不带有居民属性信息的人口空间分布信息,或采用人口合成技术生成带有居民属性却没有空间信息的人口微观数据。因此,目前还没有生成带有空间信息与居民属性的人口微观数据的方法。The existing population information prediction methods of residential areas mostly use geographic information data or spatial remote sensing information to generate population spatial distribution information without resident attribute information, or use population synthesis technology to generate population micro data with resident attributes but no spatial information. Therefore, there is currently no method for generating population microdata with spatial information and resident attributes.
本发明将社区居民人口微观数据合成与空间信息相结合,融合神经网络模型与动态规划算法,在考虑住栋容量限制下,将微观家庭样本与居住空间信息相匹配,生成带有空间信息与居民属性的人口微观数据,以适应城市数字化与精细化治理。The present invention combines microscopic data synthesis of community resident population with spatial information, integrates neural network model and dynamic programming algorithm, and considers the limitation of housing capacity, matches microscopic family samples with living space information, and generates spatial information and resident The population micro-data of attributes to adapt to urban digitalization and refined governance.
示例性方法exemplary method
如图1所示,本发明实施例提供一种社区居民人口微观数据合成方法,可以运行在各种终端上,如电脑终端、平板电脑、智能手机等。具体地,上述方法包括如下步骤:As shown in FIG. 1 , the embodiment of the present invention provides a microcosmic data synthesis method of community resident population, which can be run on various terminals, such as computer terminals, tablet computers, smart phones, and the like. Specifically, the above method includes the following steps:
步骤S100:基于行政区域宏观人口统计数据与社区的微观人口抽样数据,根据迭代比例更新算法获得社区人口微观数据集,所述社区人口微观数据集中包括住栋信息和家庭信息;Step S100: Based on the macro-demographic data of the administrative area and the micro-population sampling data of the community, obtain the community population micro-data set according to the iterative proportional update algorithm, and the community population micro-data set includes housing information and family information;
具体地,人工人口的构建一般是指对个体社会特征的重构,根据真实社会的人口特征如个体的年龄、性别、家庭、受教育程度、职业以及其他社会经济关系等,自动生成与真实人口特征一致的人工人口数据集。人口合成方法是在人口特征联合概率分布的基础上,采用蒙特卡洛模拟等方法进行人口合成,生成的数据集中包含了总体人口规模以及所有可能的属性组合等信息。Specifically, the construction of an artificial population generally refers to the reconstruction of individual social characteristics, and automatically generates the real population according to the demographic characteristics of the real society, such as the individual's age, gender, family, education level, occupation, and other socioeconomic relationships. A dataset of artificial populations with consistent characteristics. The population synthesis method is based on the joint probability distribution of population characteristics, and uses methods such as Monte Carlo simulation for population synthesis. The generated data set contains information such as the overall population size and all possible attribute combinations.
具体过程为:采用迭代比例更新算法,对行政区域宏观人口统计数据与微观人口抽样数据进行迭代,迭代完成后获得社区人口微观数据集。迭代比例更新算法将家庭和人口的特征变量作为整体,将两个层面的宏观总体数据共同作为约束条件,优化生成家庭实体集合,然后再根据每个家庭的特征生成其成员,从而得到人口个体。The specific process is as follows: the iterative proportional update algorithm is used to iterate the macro-demographic data and micro-population sampling data of the administrative area, and the micro-data set of the community population is obtained after the iteration is completed. The iterative proportional update algorithm takes the characteristic variables of the family and the population as a whole, uses the macroscopic overall data of the two levels as constraints, optimizes the generation of the family entity set, and then generates its members according to the characteristics of each family to obtain the population individual.
其中,行政区域宏观人口统计数据可从国家统计局以及各省市的统计局公布人口普查数据以及经济普查数据中获取。社区的微观人口抽样数据能够提供多维度的人口特征属性,用于根据小规模高精度的个体以及家庭结构数据还原出社会中的家庭构成。Among them, the macro-demographic data of administrative regions can be obtained from the census data and economic census data published by the National Bureau of Statistics and the statistics bureaus of various provinces and cities. The micro-population sampling data of the community can provide multi-dimensional demographic characteristics attributes, which can be used to restore the family composition in the society based on small-scale high-precision individuals and family structure data.
行政区域宏观人口统计数据包括:年龄、性别、受教育程度、家庭人口、户籍类型等;微观人口抽样数据包括:年龄、性别、受教育程度、家庭人口、户籍类型以及所居住小区名称等;住栋信息包括:户型、建成年限、挂牌售价、产权类型等;家庭信息包括:家庭人口数量、家庭代际数量等。The macro-demographic data of the administrative area include: age, gender, education level, family population, household registration type, etc.; the micro-population sampling data include: age, gender, education level, family population, household registration type, and the name of the residential area, etc.; Building information includes: house type, year of completion, listing price, property right type, etc.; family information includes: family population, number of family generations, etc.
获得上述数据后,首先需要对年龄、性别、受教育程度、家庭人口、户籍类型以及住栋户型、挂牌售价与产权类型等要素指标进行量化处理。如:性别量化结果为:男为1、女为2;年龄量化结果为:0-15岁为1、15-30岁为2、30-45岁为3、45-60岁为4、60-75岁为5、75以上为6;其他要素指标同样进行量化,在此不再赘述。After obtaining the above data, it is first necessary to quantify factors such as age, gender, education level, family size, type of household registration, and type of house, listing price, and type of property right. For example: gender quantification results are: male is 1, female is 2; age quantification results are: 0-15 years old is 1, 15-30 years old is 2, 30-45 years old is 3, 45-60 years old is 4, 60- 5 for those aged 75 and 6 for those over 75; other element indicators are also quantified and will not be repeated here.
需要说明的是,上述要素指标的具体项目和数量不做限制,可以依据具体计算需求而作相应变化。It should be noted that the specific items and quantities of the above-mentioned element indicators are not limited, and can be changed according to specific calculation requirements.
步骤S200:将社区人口微观数据集输入神经网络模型,获得用于预测家庭与住栋之间关系的预测模型;Step S200: input the community population micro-data set into the neural network model to obtain a prediction model for predicting the relationship between the family and the building;
具体地,神经网络模型基于社区人口微观数据集,预测各分类下的微观家庭样本的住栋选择概率并求得各分类对应的权重。通过神经网络模型在微观家庭样本与居住空间信息之间建立较为准确的联系。Specifically, the neural network model predicts the housing selection probability of the microscopic family samples under each category based on the microscopic data set of the community population, and obtains the weight corresponding to each category. A neural network model is used to establish a more accurate connection between microscopic family samples and living space information.
本实施例将社区人口微观数据集输入神经网络模型后,神经网络模型的输入层提取家庭特征和住栋特征,所述家庭特征包括:家庭人口数量、最高受教育程度、最大年龄、代际结构;所述住栋特征包括:住栋户型、住栋租金、产权属性。神经网络模型中对家庭特征进行量化处理,如:家庭人口数量:1-3人为1、4-6人为2、7人以上为3;代际结构:1代户为1、2代户为2、3代及以上为3;依次类推,对家庭特征中的其他特征以及住栋特征也进行类似的量化处理。In this embodiment, after inputting the community population microscopic data set into the neural network model, the input layer of the neural network model extracts family characteristics and housing characteristics, and the family characteristics include: family population size, highest education level, maximum age, intergenerational structure The characteristics of the residential building include: residential building type, residential building rent, property right attribute. The neural network model quantifies the family characteristics, such as: the number of family members: 1-3 people is 1, 4-6 people is 2, and more than 7 people is 3; intergenerational structure: 1-generation household is 1, 2-generation household is 2 , 3 generations and above are 3; and so on, similar quantitative processing is carried out for other characteristics of family characteristics and residential building characteristics.
本实施例中神经网络模型模型为:输入层神经元数量S为4,即:家庭人口数量、最大年龄、最高受教育程度、代际结构,权重设定分别为W1s W2s W3s W4s;输出层神经元数量O为3,即:住栋挂牌售价、住栋户型、住栋产权类型;隐含层神经元数量为4,由经验计算方法得到。神经网络模型的误差函数为/>其中,tn为期望输出,un为实际输出,N为家庭样本的个数。根据输出进行反馈处理,调整输入层、输出层及隐含层神经元权重,重复训练,直至预测准确率大于设定精度。The neural network model model in this embodiment is: the number S of neurons in the input layer is 4, namely: the number of family members, the maximum age, the highest level of education, and the intergenerational structure, and the weights are set to W 1s W 2s W 3s W 4s The output layer neuron quantity O is 3, that is: the listing price of the house, the house type, and the property right type of the house; the hidden layer neuron number is 4, which is calculated by the empirical get. The error function of the neural network model is /> Among them, t n is the expected output, u n is the actual output, and N is the number of family samples. Perform feedback processing according to the output, adjust the neuron weights of the input layer, output layer, and hidden layer, and repeat the training until the prediction accuracy is greater than the set accuracy.
步骤S300:基于预测模型、各类住栋的真实容量形成的约束条件,以效用损失最小为目标将所述社区人口微观数据集中各家庭样本分配至各类住栋,获得带有空间信息与居民属性的社区居民人口微观数据;Step S300: Based on the constraints formed by the prediction model and the real capacity of various residential buildings, with the goal of minimizing the utility loss, assign each family sample in the community population micro-data set to various residential buildings, and obtain information with spatial information and residents. The micro-data of community residents population of attributes;
具体地,采用动态规划算法,考虑各类住栋的真实容量,以效用损失最小为目标将各家庭样本分配至楼栋,生成带有空间信息与居民属性的社区居民人口微观数据。Specifically, a dynamic programming algorithm is used to consider the real capacity of various residential buildings, and the household samples are allocated to the buildings with the goal of minimizing utility loss, so as to generate microscopic data of community residents with spatial information and resident attributes.
在一个实施例中,如图2所示,具体包括如下步骤:In one embodiment, as shown in FIG. 2 , it specifically includes the following steps:
步骤S310:基于各类住栋的真实容量的约束条件,以效用损失最小化为目标,构建动态优化模型的目标函数,所述动态优化模型用于对各住栋居民进行优化分配;Step S310: Based on the constraint conditions of the real capacity of various residential buildings, with the goal of minimizing the utility loss, construct the objective function of the dynamic optimization model, and the dynamic optimization model is used to optimize the allocation of residents in each residential building;
步骤S320:获得各类住栋的特征并将该特征、所述预测模型的预测结果输入动态优化模型,获得所述社区居民人口微观数据。Step S320: Obtain the characteristics of various residential buildings and input the characteristics and the prediction results of the prediction model into the dynamic optimization model to obtain the microscopic data of the population of residents in the community.
具体地,首先建立目标函数,基于预测模型中各分类家庭样本的住栋选择概率,以分配过程中效用损失最小化为目标,构建人口微观数据分配的目标函数,将各住栋特征、人口微观样本、预测模型的住栋选择概率输入到由目标函数和约束条件共同构成的优化模型中,并运行模型。Specifically, firstly, the objective function is established. Based on the housing selection probability of each classified family sample in the prediction model, with the goal of minimizing the utility loss in the distribution process, the objective function of population micro data allocation is constructed, and the characteristics of each housing building, population micro data The sample and the housing selection probability of the prediction model are input into the optimization model composed of the objective function and constraints, and the model is run.
其中,约束条件为即所有住区含有的某类家庭数之和≤该类家庭数总数;/>即分配到每个住区家庭数之和≤该住区总容量。目标函数的表达式为:Among them, the constraints are That is, the sum of the number of families of a certain type contained in all residential areas ≤ the total number of families of this type;/> That is, the sum of the number of households allocated to each residential area ≤ the total capacity of the residential area. The expression of the objective function is:
上述式子中,Ci表示第i类家庭的数量,i=1,2,3,...M,M表示共M类家庭;Aik为预测的第i类家庭选择k类住栋的概率,i=1,2,3...M,M为家庭类别的数量;Tj表示第j类住栋的户数容量,j=1,2,3,...N,共N类住栋;Bik为第i类家庭对应的4个属性,k=1,2,3,4;Dij为第i类家庭被分配到第j类住栋的数量,i=1,2,3...M,j=1,2,3...N,N为住栋类型的数量;Pi=0或1表示在分配过程中该住栋是否被选中,i=1,2,...N;Wk为第k种住栋属性的权重,为Pi的均值。In the above formula, C i represents the number of families of type i, i=1, 2, 3,...M, and M represents a total of M types of families; Probability, i=1,2,3...M, M is the number of household types; T j represents the number of households in the jth type of residential building, j=1,2,3,...N, a total of N types housing; B ik is the four attributes corresponding to the i-type family, k=1,2,3,4; D ij is the number of the i-th family assigned to the j-th type of housing, i=1,2, 3...M, j=1,2,3...N, N is the number of building types; P i =0 or 1 indicates whether the building is selected during the allocation process, i=1, 2, ...N; W k is the weight of the kth residential property, is the mean value of Pi .
由上所述,本发明将社区居民人口微观数据合成技术与神经网络模型、动态规划算法相结合,实现住栋人口微观数据生成并预测住栋居民各层面属性,获得带有空间信息与居民属性的社区居民人口微观数据,实现了城市社区区人口属性信息的预测,为公配设施选址、交通仿真模拟、防灾资源配置等应用场景提供数据信息支持,促进城市精细化治理的推进。From the above, the present invention combines the community resident population micro-data synthesis technology with neural network models and dynamic programming algorithms to realize the generation of residential population micro-data and predict the attributes of residents at all levels, and obtain spatial information and resident attributes. The micro-data of the population of community residents realizes the prediction of population attribute information in urban community areas, provides data information support for application scenarios such as public facility location selection, traffic simulation simulation, and disaster prevention resource allocation, and promotes the advancement of refined urban governance.
在一个实施例中,如图3所示,上述步骤S100中获得社区人口微观数据集,具体包括如下步骤:In one embodiment, as shown in FIG. 3, the community population micro-data set obtained in the above step S100 specifically includes the following steps:
步骤S110:根据微观人口抽样数据中家庭分类与人口特征之间的关系,获得频率矩阵;Step S110: Obtain a frequency matrix according to the relationship between family classification and population characteristics in the micro-population sampling data;
具体地,根据微观人口抽样数据计算各类家庭的占比,作为家庭信息迭代拟合的边际约束,定义为λ,其中λ表示含有第i种特征的家庭数量占总数的比例。生成频率矩阵D,维度为N×m,其中N为全体家庭样本个数,m为人口特征约束(包含家庭特征与人口特征)。Specifically, the proportion of various types of households is calculated based on the micro-population sampling data, which is defined as λ as a marginal constraint for iterative fitting of family information, where λ represents the proportion of the number of households with the i-th characteristic to the total. Generate a frequency matrix D with a dimension of N×m, where N is the number of samples of all families, and m is the constraint of population characteristics (including family characteristics and population characteristics).
Dij是第i类家庭样本对第j类人口特征出现的贡献值。D ij is the contribution value of the i-th family sample to the j-th population characteristic.
步骤S120:基于频率矩阵,根据迭代比例更新算法获得各人口特征对应的联合分布值;Step S120: Based on the frequency matrix, the joint distribution value corresponding to each population characteristic is obtained according to the iterative proportional update algorithm;
步骤S130:循环迭代并根据频率矩阵和联合分布值计算每一次迭代的拟合度,直至所述拟合度小于设定阈值,获得各家庭分类的概率分布;Step S130: Iterate in a loop and calculate the fitting degree of each iteration according to the frequency matrix and the joint distribution value, until the fitting degree is less than the set threshold, and obtain the probability distribution of each family classification;
具体地,首先采用迭代比例更新算法计算每个人口特征的联合分布值。假定目标表其中,/>代表家庭样本i的联合分布值,/>代表个体j的联合分布值。初始设定容差阈值为0.0001,/>及/>初始化/>j=1,2,…m;初始化权重列向量Wi=1,i=1,2,…N,初始化拟合度标量σmin=σ,初始化标量k=1作为约束计数器。Specifically, an iterative proportional update algorithm is firstly used to calculate the joint distribution value of each population characteristic. hypothetical target table where, /> represents the joint distribution value of household sample i, /> represents the joint distribution value of individual j. The initial setting tolerance threshold is 0.0001, /> and /> initialization /> j=1,2,...m; initialize the weight column vector W i =1, i=1,2,...N, initialize the fitness scalar σ min =σ, and initialize the scalar k=1 as the constraint counter.
计算每一次循环中的临时误差: Compute the temporary error in each loop:
当临时误差大于容差阈值时继续循环迭代:Continue looping while the temporary error is greater than the tolerance threshold:
有/> Yes />
获得各人口特征对应的联合分布值Cj,其中ci=bi,i=1,2,3,…m。A joint distribution value C j corresponding to each population characteristic is obtained, where c i = bi , i=1, 2, 3, . . . m.
根据频率矩阵和联合分布值计算每一次迭代的拟合度:其中,σ为拟合度,Dij为频率矩阵,Cj为联合分布值,m为人口特征的数量,W为权重向量。Compute the fit for each iteration from the frequency matrix and joint distribution values: Among them, σ is the degree of fit, D ij is the frequency matrix, C j is the joint distribution value, m is the number of population characteristics, and W is the weight vector.
生成用于记录索引的m个列向量Sj=index(Dij≠0),i=1,2,…N,j=1,2,…m,Sj表示频率矩阵中第j列中非零元素的索引列向量,Sqj表示频率矩阵中第j列的第q个非零元素的索引。Generate m column vectors S j =index(D ij ≠0) for recording indexes, i=1,2,...N, j=1,2,...m, S j represents the non- The index column vector of zero elements, S qj represents the index of the qth non-zero element of the jth column in the frequency matrix.
计算适应度值:根据适应度值更新权重向量W,其中并重新计算拟合度/> Calculate the fitness value: Update the weight vector W according to the fitness value, where and recalculate the fit />
根据当前迭代的拟合度值与上次迭代的拟合度值,计算拟合度改善情况Δ=|σ-σprev|,如果σ<σmin,σmin=σ,SWi=Wi,i=1,2,3…N。According to the fitting value of the current iteration and the fitting value of the last iteration, calculate the improvement of the fitting degree Δ=|σ-σ prev |, if σ<σ min , σ min =σ, SW i =W i , i=1,2,3...N.
如果Δ>ε,即拟合度改善情况太大,重新计算临时误差进行循环迭代;当最终σ全部小于阈值便停止运行,得到每个带有住宅类型属性的家庭权重,并将权重值转化为各家庭分类的概率分布。If Δ>ε, that is, the improvement of the fitting degree is too large, the temporary error is recalculated for loop iteration; when the final σ is all less than the threshold, the operation is stopped, and the weight of each family with the attribute of the housing type is obtained, and the weight value is transformed into Probability distributions for each family category.
步骤S140:基于概率分布,采用蒙特卡洛方法随机抽取家庭样本至所述社区人口微观数据集。Step S140: Based on the probability distribution, a Monte Carlo method is used to randomly select family samples to the community population micro-data set.
具体地,按照获得的概率分布使用蒙特卡洛方法随机抽取家庭样本选入最终的数据集,得到与编辑分布没有显著差异且带有住宅信息的社区人口微观数据集。Specifically, according to the obtained probability distribution, the Monte Carlo method is used to randomly select household samples to select the final data set, and a community population micro data set with no significant difference from the edited distribution and with residential information is obtained.
本实施例中,根据人口微观数据中年龄、性别、职业类型等个体属性的概率分布,通过蒙特卡洛模拟为每个合成社区人口的个体分配相应的个体属性。接着根据人口普查数据中家庭类别、家庭规模、家庭年龄成分等家庭属性的概率构建合成家庭,并将合成社区人口的个体填充进合成家庭。In this embodiment, according to the probability distribution of individual attributes such as age, gender, and occupation type in the population micro-data, Monte Carlo simulation is used to assign corresponding individual attributes to individuals of each synthetic community population. Then, a synthetic family is constructed according to the probability of family attributes such as family category, family size, and family age component in the census data, and the individuals of the synthetic community population are filled into the synthetic family.
人工人口的优势在于以较低的成本模拟人的出行及其他社会行为,检验交通控制、社会管理等政策的可行性和有效性。同时,个体行为的计算模型能够仿真得到定量的评价结果,为管理部门的量化决策提供参考。当人工人口能够准确反映现实人口的属性、结构和分布特点时,得到的出行模拟、经济活动、城市演化等仿真结果才具有较高可信度。The advantage of artificial population is that it simulates human travel and other social behaviors at a relatively low cost, and tests the feasibility and effectiveness of policies such as traffic control and social management. At the same time, the calculation model of individual behavior can be simulated to obtain quantitative evaluation results, which can provide reference for the quantitative decision-making of management departments. When the artificial population can accurately reflect the attributes, structure, and distribution characteristics of the real population, the simulation results of travel simulation, economic activities, and urban evolution can have high credibility.
由上所述,以人口微观抽样数据和人口普查数据为基础,采用迭代比例更新算法,生成社区人口微观数据集,这种方法计算时间短、拟合精度高,是一种对人口普查数据进行深度开发、构建高精度微观人口数据集以及去除人口隐私信息的有效方法。As mentioned above, based on population micro-sampling data and census data, an iterative proportional update algorithm is used to generate community population micro-data sets. This method has short calculation time and high fitting accuracy. An effective method for in-depth development, construction of high-precision micro-population datasets, and removal of population privacy information.
需要说明的是,虽然本实施例以社区人口数据为例进行说明,但是本发明也可以构建超大城市家庭和个人微观数据库。It should be noted that although the present embodiment uses community population data as an example for illustration, the present invention can also construct microscopic databases of households and individuals in megacities.
示例性设备exemplary device
如图4所示,对应于上述社区居民人口微观数据合成方法,本发明实施例还提供一种社区居民人口微观数据合成装置,上述社区居民人口微观数据合成装置包括:As shown in Fig. 4, corresponding to the synthesis method of microscopic data of community resident population, an embodiment of the present invention also provides a microscopic data synthesis device of community resident population. The above microscopic data synthesis device of community resident population includes:
社区人口微观数据集获取模块600,用于基于行政区域宏观人口统计数据与社区的微观人口抽样数据,根据迭代比例更新算法获得社区人口微观数据集,所述社区人口微观数据集中包括住栋信息和家庭信息;The community population micro data set acquisition module 600 is used to obtain the community population micro data set according to the iterative proportional update algorithm based on the macro demographic data of the administrative area and the community micro population sampling data. The community population micro data set includes housing information and family information;
预测模块610,用于将所述社区人口微观数据集输入神经网络模型,获得用于预测家庭与住栋之间关系的预测模型;Prediction module 610, for inputting the microcosmic data set of the community population into the neural network model to obtain a prediction model for predicting the relationship between the family and the building;
分配模块620,用于基于所述预测模型、各类住栋的真实容量形成的约束条件,以效用损失最小为目标将所述社区人口微观数据集中各家庭样本分配至各类住栋,获得带有空间信息与居民属性的社区居民人口微观数据。The allocation module 620 is used to allocate the family samples in the community population micro-data set to various types of residential buildings based on the constraints formed by the prediction model and the real capacity of various residential buildings with the goal of minimizing the utility loss, and obtain Community resident population micro data with spatial information and resident attributes.
具体的,本实施例中,上述社区居民人口微观数据合成装置的各模块的具体功能可以参照上述社区居民人口微观数据合成方法中的对应描述,在此不再赘述。Specifically, in this embodiment, the specific functions of each module of the microscopic data synthesis device for community resident population can refer to the corresponding description in the microscopic data synthesis method for community resident population, and will not be repeated here.
基于上述实施例,本发明还提供了一种智能终端,其原理框图可以如图5所示。上述智能终端包括通过系统总线连接的处理器、存储器、网络接口以及显示屏。其中,该智能终端的处理器用于提供计算和控制能力。该智能终端的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和社区居民人口微观数据合成程序。该内存储器为非易失性存储介质中的操作系统和社区居民人口微观数据合成程序的运行提供环境。该智能终端的网络接口用于与外部的终端通过网络连接通信。该社区居民人口微观数据合成程序被处理器执行时实现上述任意一种社区居民人口微观数据合成方法的步骤。该智能终端的显示屏可以是液晶显示屏或者电子墨水显示屏。Based on the above embodiments, the present invention also provides an intelligent terminal, the functional block diagram of which may be shown in FIG. 5 . The above intelligent terminal includes a processor, a memory, a network interface and a display screen connected through a system bus. Wherein, the processor of the smart terminal is used to provide calculation and control capabilities. The memory of the smart terminal includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a microscopic data synthesis program of community resident population. The internal memory provides an environment for the operation of the operating system in the non-volatile storage medium and the microcosmic data synthesis program of community resident population. The network interface of the smart terminal is used to communicate with external terminals through a network connection. When the microscopic data synthesis program of community resident population is executed by the processor, the steps of any one of the methods for synthesizing microscopic data of community resident population are realized. The display screen of the smart terminal may be a liquid crystal display screen or an electronic ink display screen.
本领域技术人员可以理解,图5中示出的原理框图,仅仅是与本发明方案相关的部分结构的框图,并不构成对本发明方案所应用于其上的智能终端的限定,具体的智能终端可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the functional block diagram shown in Figure 5 is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the smart terminal to which the solution of the present invention is applied. The specific smart terminal More or fewer components than shown in the figures may be included, or certain components may be combined, or have a different arrangement of components.
在一个实施例中,提供了一种智能终端,上述智能终端包括存储器、处理器以及存储在上述存储器上并可在上述处理器上运行的社区居民人口微观数据合成程序,上述社区居民人口微观数据合成程序被上述处理器执行时进行以下操作指令:In one embodiment, an intelligent terminal is provided. The above-mentioned intelligent terminal includes a memory, a processor, and a community resident population micro-data synthesis program stored on the above-mentioned memory and operable on the above-mentioned processor. The above-mentioned community resident population micro-data When the synthesis program is executed by the above-mentioned processor, the following operation instructions are performed:
基于行政区域宏观人口统计数据与社区的微观人口抽样数据,根据迭代比例更新算法获得社区人口微观数据集,所述社区人口微观数据集中包括住栋信息和家庭信息;Based on the macro-demographic data of the administrative area and the micro-population sampling data of the community, the micro-data set of the community population is obtained according to the iterative proportional update algorithm, and the micro-data set of the community population includes housing information and family information;
将所述社区人口微观数据集输入神经网络模型,获得用于预测家庭与住栋之间关系的预测模型;Input the microcosmic data set of the community population into the neural network model to obtain a prediction model for predicting the relationship between the family and the building;
基于所述预测模型、各类住栋的真实容量形成的约束条件,以效用损失最小为目标将所述社区人口微观数据集中各家庭样本分配至各类住栋,获得带有空间信息与居民属性的社区居民人口微观数据。Based on the constraints formed by the prediction model and the real capacity of various residential buildings, with the goal of minimizing the utility loss, each family sample in the microscopic data set of the community population is allocated to various residential buildings, and the spatial information and resident attributes are obtained. The population micro-data of community residents.
可选的,所述神经网络模型的输入层提取家庭特征和住栋特征,所述家庭特征包括:家庭人口数量、最高受教育程度、最大年龄、代际结构;所述住栋特征包括:住栋户型、住栋租金、产权属性。Optionally, the input layer of the neural network model extracts family features and housing features, and the family features include: family population, maximum education level, maximum age, and intergenerational structure; the housing features include: housing Building type, building rent, property right attribute.
可选的,所述基于行政区域宏观人口统计数据与社区的微观人口抽样数据,根据迭代比例更新算法获得社区人口微观数据集,包括:Optionally, based on the macro-demographic data of the administrative region and the micro-population sampling data of the community, the community population micro-data set is obtained according to an iterative proportional update algorithm, including:
根据微观人口抽样数据中家庭分类与人口特征之间的关系,获得频率矩阵;According to the relationship between family classification and population characteristics in the micro-population sampling data, a frequency matrix is obtained;
基于所述频率矩阵,根据迭代比例更新算法获得各人口特征对应的联合分布值;Based on the frequency matrix, a joint distribution value corresponding to each population characteristic is obtained according to an iterative proportional update algorithm;
循环迭代并根据所述频率矩阵和所述联合分布值计算每一次迭代的拟合度,直至所述拟合度小于设定阈值,获得各家庭分类的概率分布;Iterating in a loop and calculating the fitting degree of each iteration according to the frequency matrix and the joint distribution value, until the fitting degree is less than a set threshold, and obtaining the probability distribution of each family classification;
基于所述概率分布,采用蒙特卡洛方法随机抽取家庭样本至所述社区人口微观数据集。Based on the probability distribution, a Monte Carlo method is used to randomly select household samples to the microcosmic data set of the community population.
可选的,计算拟合度的表达式为:Optionally, the expression for calculating the degree of fit is:
其中,σ为拟合度,Dij为频率矩阵,Cj为联合分布值,m为人口特征的数量,W为权重向量。Among them, σ is the degree of fit, D ij is the frequency matrix, C j is the joint distribution value, m is the number of population characteristics, and W is the weight vector.
可选的,所述神经网络模型的误差函数模型为:Optionally, the error function model of the neural network model is:
其中,tn为期望输出,un为实际输出,N为家庭样本的个数。Among them, t n is the expected output, u n is the actual output, and N is the number of family samples.
可选的,所述基于所述预测模型、各类住栋的真实容量形成的约束条件,以效用损失最小为目标将所述社区人口微观数据集中各家庭样本分配至各类住栋,获得带有空间信息与居民属性的社区居民人口微观数据,包括:Optionally, based on the constraint conditions formed by the prediction model and the real capacity of various types of residential buildings, with the goal of minimizing the utility loss, each family sample in the community population micro-data set is allocated to various types of residential buildings, and the belt Community resident population microdata with spatial information and resident attributes, including:
基于各类住栋的真实容量的约束条件,以效用损失最小化为目标,构建动态优化模型的目标函数,所述动态优化模型用于对各住栋居民进行优化分配;Based on the constraint conditions of the real capacity of various residential buildings, with the utility loss minimization as the goal, the objective function of the dynamic optimization model is constructed, and the dynamic optimization model is used to optimize the distribution of residents in each residential building;
获得各类住栋的特征并将该特征、所述预测模型的预测结果输入动态优化模型,获得所述社区居民人口微观数据。Obtain the characteristics of various types of residential buildings and input the characteristics and the prediction results of the prediction model into the dynamic optimization model to obtain the microscopic data of the population of residents in the community.
可选的,所述目标函数的表达式为:Optionally, the expression of the objective function is:
其中,Aik为预测的第i类家庭选择k类住栋的概率,i=1,2,3...M,M为家庭类别的数量;Bik为第i类家庭对应的4个属性,k=1,2,3,4;Dij为第i类家庭被分配到第j类住栋的数量,i=1,2,3...M,j=1,2,3...N,N为住栋类型的数量;Pi=0或1表示在分配过程中该住栋是否被选中,i=1,2,...N;Wk为第k种住栋属性的权重,为Pi的均值。Among them, A ik is the predicted probability that the i-th family chooses the k-type residential building, i=1,2,3...M, M is the number of family categories; B ik is the four attributes corresponding to the i-th family , k=1,2,3,4; D ij is the number of households of type i allocated to type j housing, i=1,2,3...M,j=1,2,3.. .N, N is the number of residential building types; P i =0 or 1 indicates whether the residential building is selected during the allocation process, i=1, 2,...N; W k is the property of the kth residential building Weights, is the mean value of Pi .
本发明实施例还提供一种计算机可读存储介质,上述计算机可读存储介质上存储有社区居民人口微观数据合成程序,上述社区居民人口微观数据合成程序被处理器执行时实现本发明实施例提供的任意一种社区居民人口微观数据合成方法的步骤。The embodiment of the present invention also provides a computer-readable storage medium. The computer-readable storage medium stores a community resident population micro-data synthesis program. When the community resident population micro-data synthesis program is executed by a processor, the embodiment of the present invention provides The steps of any method for synthesizing microscopic data of community resident population.
应理解,上述实施例中各步骤的序号大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that the sequence numbers of the steps in the above embodiments do not mean the order of execution, and the execution order of each process should be determined by its functions and internal logic, and should not constitute any limitation to the implementation process of the embodiment of the present invention.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将上述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used for illustration. In practical applications, the above-mentioned functions can be assigned to different functional units, Module completion means that the internal structure of the above-mentioned device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated into one processing unit, or each unit may exist separately physically, or two or more units may be integrated into one unit, and the above-mentioned integrated units may adopt hardware It can also be implemented 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 protection scope of the present invention. For the specific working processes of the units and modules in the above system, reference may be made to the corresponding processes in the aforementioned method embodiments, and details will not be repeated here.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the descriptions of each embodiment have their own emphases, and for parts that are not detailed or recorded in a certain embodiment, refer to the relevant descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各实例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟是以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functions in different ways for each particular application, but such implementation should not be considered as exceeding the scope of the present invention.
在本发明所提供的实施例中,应该理解到,所揭露的装置/终端设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/终端设备实施例仅仅是示意性的,例如,上述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以由另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal equipment and method may be implemented in other ways. For example, the device/terminal device embodiments described above are only illustrative. For example, the division of the above-mentioned modules or units is only a logical function division. In actual implementation, other division methods may be used, such as multiple units or Components may be combined or integrated into another system, or some features may be omitted, or not implemented.
上述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,上述计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,上述计算机程序包括计算机程序代码,上述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。上述计算机可读介质可以包括:能够携带上述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,RandomAccess Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,上述计算机可读存储介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减。If the above-mentioned integrated modules/units are realized in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the present invention realizes all or part of the processes in the methods of the above embodiments, and can also be completed by instructing related hardware through computer programs. The above computer programs can be stored in a computer-readable storage medium. When executed by the processor, the steps in the above-mentioned various method embodiments can be realized. Wherein, the above-mentioned computer program includes computer program code, and the above-mentioned computer program code may be in the form of source code, object code, executable file or some intermediate form. The above-mentioned computer-readable medium may include: any entity or device capable of carrying the above-mentioned computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random Access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the above computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction.
以上所述实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解;其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不是相应技术方案的本质脱离本发明各实施例技术方案的精神和范围,均应包含在本发明的保护范围之内。The above-described embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand; The technical solutions recorded in the examples are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not mean that the essence of the corresponding technical solutions deviates from the spirit and scope of the technical solutions of the various embodiments of the present invention, and should be included in this document. within the scope of protection of the invention.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211046776.8A CN115409671B (en) | 2022-08-30 | 2022-08-30 | Composition method, device, terminal and storage medium of community resident population micro data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211046776.8A CN115409671B (en) | 2022-08-30 | 2022-08-30 | Composition method, device, terminal and storage medium of community resident population micro data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115409671A CN115409671A (en) | 2022-11-29 |
CN115409671B true CN115409671B (en) | 2023-08-22 |
Family
ID=84161777
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211046776.8A Active CN115409671B (en) | 2022-08-30 | 2022-08-30 | Composition method, device, terminal and storage medium of community resident population micro data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115409671B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115758894B (en) * | 2022-11-23 | 2023-07-14 | 天津市城市规划设计研究总院有限公司 | Population microscopic data year-by-year inversion system and method based on iteration proportion update |
CN116150230B (en) * | 2023-03-02 | 2023-08-29 | 重庆市规划和自然资源信息中心 | Dynamic housing population registration monitoring method based on multiple spatial scales |
CN116934073B (en) * | 2023-06-07 | 2024-06-04 | 深圳大学 | A refined calculation method for urban disaster resilience based on spatiotemporal activity analysis |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112951004A (en) * | 2021-03-09 | 2021-06-11 | 东部机场集团有限公司 | Multi-objective multi-period flight guarantee resource dynamic optimization allocation method |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11202175B2 (en) * | 2018-02-27 | 2021-12-14 | Ntt Docomo, Inc. | At-home prediction device |
US12148138B2 (en) * | 2019-09-27 | 2024-11-19 | Carl Zeiss X-ray Microscopy, Inc. | Process parameter prediction using multivariant structural regression |
-
2022
- 2022-08-30 CN CN202211046776.8A patent/CN115409671B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112951004A (en) * | 2021-03-09 | 2021-06-11 | 东部机场集团有限公司 | Multi-objective multi-period flight guarantee resource dynamic optimization allocation method |
Non-Patent Citations (1)
Title |
---|
北京城乡空间发展模型:BUDEM2;龙瀛;《现代城市研究》(第11期);8-15 * |
Also Published As
Publication number | Publication date |
---|---|
CN115409671A (en) | 2022-11-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN115409671B (en) | Composition method, device, terminal and storage medium of community resident population micro data | |
Cao et al. | Electrical load prediction of healthcare buildings through single and ensemble learning | |
CN112766596B (en) | Construction method of building energy consumption prediction model, energy consumption prediction method and device | |
Lin et al. | Analyzing the spatial factors related to the distributions of building heights in urban areas: A comparative case study in Guangzhou and Shenzhen | |
Zhang et al. | Modeling fine-scale residential land price distribution: An experimental study using open data and machine learning | |
Wang et al. | Simulation optimization in healthcare resource planning: A literature review | |
CN102750411A (en) | Urban dynamic micro-simulation method based on multi-agent discrete choice model | |
Taravatrooy et al. | A novel hybrid entropy-clustering approach for optimal placement of pressure sensors for leakage detection in water distribution systems under uncertainty | |
CN113743667A (en) | Method, device, equipment and storage medium for predicting power consumption of transformer area | |
CN112418508B (en) | Population distribution prediction method based on the interaction between physical space and social network space | |
Kayalica et al. | Electricity consumption analysis based on Turkish household budget surveys | |
Kotthoff et al. | Calibrating agent-based models of innovation diffusion with gradients | |
Niu et al. | An activity-based integrated land-use transport model for urban spatial distribution simulation | |
Cheng et al. | Short-term fast forecasting based on family behavior pattern recognition for small-scale users load | |
Zhao et al. | LandSys II: Agent-based land use–forecast model with artificial neural networks and multiagent model | |
Yilmaz | Housing gans: Deep generation of housing market data | |
Guo et al. | A data-driven multi-fidelity simulation optimization for medical staff configuration at an emergency department in Hong Kong | |
Wu et al. | A BP Neural Network‐Based GIS‐Data‐Driven Automated Valuation Framework for Benchmark Land Price | |
Liang et al. | A statistical analysis model of big data for precise poverty alleviation based on multisource data fusion | |
CN118194034A (en) | Prediction model training method, device, computer equipment, medium and product | |
CN115859765B (en) | Prediction methods, devices, equipment and storage media for urban expansion | |
CN116843065A (en) | A machine learning-based prediction method and system for municipal solid waste production | |
Yun et al. | Impacts of public medical insurance reforms on households: An application of fuzzy cognitive map for scenario evaluation | |
CN117151540A (en) | Data processing method and system applied to intelligent endowment development level evaluation | |
CN115936264A (en) | Single-day engineering quantity calculation method, staged engineering quantity prediction method and prediction device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |