Multi-source population portrait-based population information data synthesis simulation method and system
Through a data synthesis method based on multi-source population portraits, using encoder and decoder models, combined with energy models and Langevin dynamics sampling, the problem of difficulty in adjusting demographic characteristics in the existing technology is solved, and flexibly generated in line with feature distribution is achieved. Simulate data to avoid privacy and missing data issues.
Patent Information
- Application Number
- CN202410522231.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-28
- Publication Date
- 2024-08-23
AI Technical Summary
It is difficult for existing population information data synthesis and simulation methods to change demographic feature settings according to needs, especially in deep learning methods that require real data sets and cannot adjust population proportions at will.
A data synthesis method based on multi-source population portraits is used to divide and construct training samples, encoder and decoder models through AOI, and use energy models and Langevin dynamics sampling to generate synthetic data that conforms to specific demographic characteristics.
It is possible to flexibly adjust population feature settings without exposing user privacy, and generate simulated data that conforms to the distribution of real data features, avoiding the problems of small data sets and missing key information.
Smart Images

Figure CN118536386A
Abstract
Description
Technical Field
[0001] The present invention relates to the application field of social simulators, and in particular to a method and system for synthesizing and simulating population information data based on multi-source population portraits. Background Art
[0002] In a large-scale social simulator, it is necessary to define modern social residents of different occupations, ages, genders, etc., and construct their identities and behavioral attributes so that the characters can accurately reflect their behavioral characteristics in the simulation, which is very necessary for building an artificial society. Because the reliability of real data for controlled intervention experiments in this artificial society often involves user privacy, real data is generally desensitized to a certain extent, making it difficult to obtain a single piece of real user information data; using simulated data becomes a good choice.
[0003] Real user data in reality generally expresses user data as corresponding virtual representations of real users, effectively classifies them according to their user motivations, and uses elements such as interests and preferences, age groups, lifestyles, consumption, family, social, and environmental aspects to create and statistically describe user prototypes, which are the so-called demographic portrait data.
[0004] Synthetic simulations of demographic information data are performed based on real demographic portrait data, which are designed to have the same mathematical properties as the real-world data on which they are based, but do not contain any of the same information. This makes the simulation results more consistent with reality while avoiding user privacy issues.
[0005] The existing population information data synthesis simulation methods are mainly divided into two types:
[0006] (1) Methods based on statistical distribution: By observing the real statistical distribution and extracting numbers from the distribution, similar factual data can be reproduced; a data set is created, which will have a random sample of the distribution. This can be achieved through normal distribution, chi-square distribution, exponential distribution, etc. When generating data, some of the data attributes in the same data attribute segment can be considered to be independent random variables, while others satisfy the correlation relationship. The data volume is allocated according to user needs so that the data volume in each interval and the distribution form satisfy the probability density function. The generated multiple attribute samples are randomly sampled and merged to form a synthetic sample; or the joint probability distribution method is used for modeling and sampling.
[0007] The above-mentioned method based on statistical distribution requires a thorough understanding of the statistical distribution in real data. The rationality of sampling is difficult to guarantee. Variables are not necessarily independent of each other. A more complex model is needed to consider the dependency between variables. That is, the above-mentioned method based on statistical distribution cannot know the joint distribution. If the joint distribution is estimated by professionals, it is not accurate enough.
[0008] (2) Using deep learning methods: Traditional GANs (generative adversarial networks) consist of a generative network and an adversarial network; the generative network takes input data and uses it to generate a synthetic version of that data, and the adversarial network compares real data to synthetic data, using a discriminator mechanism to distinguish between the two data types. When the two networks perform these tasks, theoretically the results should improve until the synthetic data is almost indistinguishable from real-world data.
[0009] However, the above-mentioned deep learning methods usually require a certain real data set, and the sample is a real data example. It is impossible to arbitrarily change the demographic characteristics settings, that is, the population proportions of different genders, different ages, different education levels, etc., to generate simulated data. Summary of the invention
[0010] In view of the defects existing in the prior art, the technical problem solved by the present invention is: how to change the demographic feature settings according to the needs during the population data synthesis simulation.
[0011] To achieve the above objectives, in a first aspect, an embodiment of the present application provides a method for synthesizing and simulating population information data based on multi-source population portraits, characterized in that the method comprises the following steps:
[0012] S1: Determine the demographic characteristics of the study area using AOI as the dimension;
[0013] S2: Construct training samples based on demographic characteristics of the study area;
[0014] S3: Construct a population information synthesis model based on demographic information and training samples. The construction process includes: encoding the training sample x through an encoder to obtain a latent variable z, and training z under the guidance of demographic information u; after the training is completed, decoding it through a decoder to obtain x; the population information synthesis model is expressed as: p θ (x,z)=p α (u,z)p β (x|z); where p θ (x,z) represents the encoder, p β (x|z) represents the decoder, p α (u,z) is an energy-based model;
[0015] S4: From p α After sampling (u,z) to obtain z, it is input into the decoder to obtain population information synthetic simulation data.
[0016] In combination with the first aspect, in one implementation, the encoder construction process in S3 includes: mapping the vector v to the latent space through a Bert encoder to obtain a latent variable z corresponding to x; concatenating the demographic feature information of multiple dimensions under the AOI corresponding to x and sending them to an MLP for training to obtain latent variables of the same dimension; concatenating the latent variables to obtain a latent variable u containing statistical information of all dimensions;
[0017] The p α (u,z) are constructed into EBMs:
[0018]
[0019] p0(z) is the reference distribution known in advance, and Z(α) is the probability normalized distribution;
[0020] Where dz is the integral expression, which means integrating z. Energy function module f α (u,z) combines z and u, and f α The implementation method of (u,z) includes: given z and u, mapping u to the same dimension as z and concatenating them.
[0021] In combination with the first aspect, in one implementation, the construction process of the decoder in S3 includes: for text modeling, let x=(x (t) |x (1) ,...,x (t-1) ,z),x (t) Represents the tth token; From p α The sampling in (u,z) and pθ(z|x) is done via Langevin dynamics; α The Langevin dynamics sampling process of (u,z) is: Where T is the number of sampling steps, s is the predefined scaling in sampling, and e t are data drawn from a standard normal distribution.
[0022] In combination with the first aspect, in one implementation, after obtaining the population information synthesis model in S3, the following steps are further included: target optimization of the population information synthesis model: parameter estimation is performed using maximum likelihood, and the observed training samples are defined as (x i ,i=1,...,n), the maximum likelihood function is:
[0023] The gradient update is:
[0024]
[0025] For the encoder, using p α (u,z) distribution, sample a z, and calculate the distance between it and the z in the prior distribution; for the decoder, use p β (x|z) distribution, calculated from<z,u> Get the NLL loss between x and the true x and use it as the loss of the decoder;
[0026]
[0027] During training, predict the next tokenx t is to use the real previous sequence x <t During inference, predicting the next token is based on the previous sequence x predicted by the model. <t .
[0028] In combination with the first aspect, in one embodiment, the process of S2 includes: generating a number of pseudo sample data, constructing a training sample template based on the demographic characteristic information of the study area, removing abnormal data from all pseudo sample data based on the training sample template and the large language model, and using the remaining pseudo sample data as training samples.
[0029] In combination with the first aspect, in one implementation, the process of S2 specifically includes: in a given statistical area, a number of pseudo sample data are generated through the Faker package of Python, and for each AI, the extracted population portrait statistical feature information is extracted. Input into the large language model to construct a suitable training sample template; according to the training sample template, filter out the pseudo sample data {xai1, xai2, xaim} with high confidence as the training sample of the ai; m is the number of filtered training samples.
[0030] In combination with the first aspect, in one implementation, after obtaining the synthetic simulation data in S4, the following steps are also included: after removing abnormal data in all the synthetic simulation data according to the training sample template and the large language model, the remaining synthetic simulation data is used as valid data.
[0031] In combination with the first aspect, in one embodiment, the process of S1 includes: dividing the study area into several AOIs, and counting the multi-source population information data within each AOI; determining several relevant statistical features according to the target, and determining the probability distribution of each relevant statistical feature within the AOI according to the multi-source population information data within each AOI; and obtaining the population statistical feature information of the study area according to the probability distribution of all statistical features of each AOI.
[0032] In combination with the first aspect, in one implementation, the process of S1 specifically includes: taking AOI as a dimension, dividing the research area into K AOIs, and counting each AOI (a i ) within the multi-source population information data; integrate the multi-source population information data of each AOI to obtain a complete population portrait data set; select the most relevant n statistical features F= <f1,f2,...,f n >As population profile feature data; obtain a i Probability distribution of the next n statistical features get
[0033] In a second aspect, an embodiment of the present application provides a population information data synthesis system based on multi-source population portraits, which is used to implement the method provided in the first aspect.
[0034] Compared with the prior art, the advantages of the present invention are:
[0035] The present invention proposes a model for synthesizing population information data based on reverse engineering of multi-dimensional population portraits. The model uses these simulation data to not only avoid problems such as user privacy security, small data sets, and missing key information, but also can use population portraits to reflect the characteristics of population characteristics and pre-embed certain valuable information in user information data, thereby facilitating the use of simulation simulators.
[0036] At the same time, the present invention uses an energy model to model sample statistical characteristics, and takes into account the distribution of real sample characteristics in the process of constructing the energy function. Therefore, when generating simulated data, the demographic characteristics setting can be changed at will to generate conditional simulated data. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0038] Figure 1 It is a flow chart of a method for synthesizing and simulating population information data based on multi-source population portraits in an embodiment of the present invention. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0040] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0041] The method for synthesizing and simulating population information data based on multi-source population portraits in an embodiment of the present invention comprises the following steps:
[0042] S1: Using AOI (Area Of Interest) as the dimension, determine the demographic characteristics of the study area.
[0043] S2: Construct training samples based on the demographic characteristics of the study area.
[0044] S3: A population information synthesis model is constructed based on demographic information and training samples. The model consists of two parts: an encoder and a decoder. The encoder is responsible for compressing the input data into a latent vector, which usually obeys a specific distribution (such as a Gaussian distribution), while the decoder restores the original data based on this latent vector. The construction process of the population information synthesis model includes: encoding the training sample x through an encoder to obtain a latent variable z, training z under the guidance of demographic information u; and decoding x through a decoder after the training is completed.
[0045] Specifically, the population information synthesis model is expressed as: p θ (x,z)=p α (u,z)p β (x|z); where p θ (x,z) represents the encoder, p β (x|z) represents the decoder, i.e., the generative model generator, which is a conditional autoregressive model that can be learned through variational inference and maximum likelihood learning; p α (u,z) is an energy-based model; the posterior distribution p θ The parameters θ=(α,β) in (z|x) are obtained through an inference model The variational approximation is obtained.
[0046] S4: From p α After sampling (u,z) to obtain z, it is input into the decoder generator to obtain the population information synthesis simulation data.
[0047] Preferably, the process of S1 includes: dividing the study area into several AOIs, and counting the multi-source population information data in each AOI; determining several relevant statistical features according to the target, and determining the probability distribution of each relevant statistical feature in the AOI according to the multi-source population information data in each AOI; and obtaining the population statistical feature information of the study area according to the probability distribution of all statistical features of each AOI.
[0048] The above process specifically includes:
[0049] S101: Spatial processing: Taking AOI as the dimension, divide the research area into K AOIs, and count each AOI (a i ) in the multi-source population information data;
[0050] S102: Data integration: Integrate the multi-source population information data of each AOI to obtain a complete population portrait data set;
[0051] S103: Feature selection: Select the most relevant n statistical features F according to the target <f1,f2,...,f n >As demographic profile data;
[0052] S104: Feature distribution modeling: Get a i Probability distribution of the next n statistical features get
[0053] Preferably, the above multi-source population information data includes:
[0054] Basic demographic information, such as gender, age, race, marital status, education level, occupation, etc.;
[0055] Economic information: such as income, property, spending habits, credit history, etc.;
[0056] Traffic information: such as traffic inflow and outflow in different areas;
[0057] Other relevant information: such as whether there are pets, children, cars, etc.
[0058] The sources of the above multi-source population information may be government statistics, business survey data, Internet traffic and e-commerce data, and grid worker data, etc. The form given is based on the statistical proportions at different spatial scales. For example, basic population information data is expressed as the statistical proportions of different genders, ages, races, marital status, education levels, and occupations within the spatial area.
[0059] Preferably, the process of S2 includes: generating a number of pseudo-sample data, constructing a training sample template according to the demographic characteristic information of the research area, and after removing the abnormal data in all the pseudo-sample data according to the training sample template and the large language model, using the remaining pseudo-sample data as training samples.
[0060] The above process specifically includes: under a given statistical area, generating a number of pseudo-sample data through the Faker package of Python, and for each ai, inputting the extracted demographic characteristic information into the large language model to construct a suitable training sample template; screening out the pseudo-sample data {xai1, xai2, xaim} (m is the number of training samples screened out) with higher confidence according to the training sample template as the training sample of this ai.
[0061] It should be noted that the above-mentioned Faker is a Python library, mainly used to quickly generate a large number of seemingly real virtual data for use in the development and testing stages. The working principle of Faker is based on random number generation and predefined templates. When calling a faker function (such as fake.name()), it will randomly select a name from the preset name list. Similarly, fake.address() will randomly select an address from the preset address list. For the case of generating data according to a specific statistical ratio, it can be achieved by using faker through logic. For example, if you want to generate a dataset with a gender ratio of 45% male and 55% female, you can use fake.random_element(elements = OrderedDict([("male", 0.45), ("female", 0.55)])) to generate the corresponding proportion of data. For different portrait features, this method can be adopted. After generating the corresponding features, each feature is concatenated to form a complete user data.
[0062] When the scale of the generated data is large, the distribution of different features can meet the requirements of the original statistical features. However, a problem brought by this is that although the generated data meets the statistical distribution of a single feature, there will be unreasonable single data among them. Therefore, it is necessary to filter out the unreasonable data. The filtering method is to construct a training sample template by combining the semantic understanding ability of the large model: "This is a personnel information: Maliu, male, 11 years old, in good health", is it possible that "this person's education level is junior high school, occupation is taxi driver, and marital status is married"? Please answer yes or no". Input it into the large language model to screen out and exclude the pseudo-samples with extremely low possibility and inconsistent social roles. The remaining personnel information x is used as a training sample and input into the model for training.
[0063] S3 will organize x into text form. For example, this is the information of Zhang San from Xingyuan Community. He is male, 34 years old, married, has a doctorate degree, and is a doctor. It is modeled as a cloze test. Given the corresponding prompt, the generator is used to complete the information in the blank.
[0064] Preferably, the construction process of the encoder in S3 includes: mapping the vector v to the latent space through the Bert encoder to obtain the latent variable z corresponding to x; at the same time, the demographic feature information of multiple dimensions under the AOI corresponding to x is spliced and sent to an MLP (simple neural network) for training to obtain the latent variables of the same dimension; after splicing the latent variables, the latent variable u containing the statistical information of all dimensions is obtained.
[0065] The p α (u,z) is constructed into EBMs (Energy-Based Models). For energy models, an energy function can be defined to represent the statistical characteristics of the sample, and sampling can be performed through methods such as gradient descent. By designing the energy function, it can be ensured that the generated sample set conforms to the statistical data of the population.
[0066]
[0067] p0(z) is a known reference distribution. It can be modeled using a simple Gaussian distribution or by treating features of multiple dimensions as independent variables to solve for specific values using a joint probability distribution. Z(α) is a probability normalized distribution, also known as a partition function, which normalizes the probability and is expressed as:
[0068]
[0069] Where dz is the integral expression, which means integrating z. There is no restriction on its expression form, it can be any function (the energy function may be multi-peaked and does not need to rely on mixed distribution), and it can also introduce neural network, for example, it can be parameterized by multi-layer perceptron. α (u,z) combines z and u, and f α The implementation method of (u,z) is: given z and u, map u to the same dimension as z and concatenate them.
[0070] Preferably, the decoder in S3 is equivalent to the generator, which converts from z to x. α (u,z) is built on the decoder p β (x|z). The decoder construction process includes: for text modeling, let x = (x(t) |x (1) ,...,x (t -1) ,z), where x (t) represents the tth token. Following the previous text population information synthesis model, here p β (x|z) is defined as a conditional autoregressive model of a recurrent network with parameter β, specifically: From p α The sampling in (u,z) and pθ(z|x) can be done by Langevin dynamics. α The sampling process of (u,z) and Langevin dynamics sampling is as follows:
[0071] Where T is the number of sampling steps, s is the predefined scaling in sampling, and e t are data drawn from a standard normal distribution.
[0072] Preferably, after S3 obtains the population information synthesis model, it also includes the following steps: optimizing the population information synthesis model, specifically: using maximum likelihood to perform parameter estimation, defining the observed training samples as (x i ,i=1,...,n), the maximum likelihood function is:
[0073] The gradient update is:
[0074]
[0075] For the encoder, using p α (u,z) distribution, sample a z, and calculate the distance between it and the z in the prior distribution; for the generative model (decoder), use p β (x|z) distribution, calculated from<z,u> The NLL loss (NLL Loss, Negative Log Likelihood Loss) between x and the true x is obtained and used as the loss of the decoder. The two steps are trained together to finally obtain the model parameters θ, and learn the complex dependencies between different feature variables in the data x.
[0076] Minimize the gap between the prior distribution (obtained by sampling) and the posterior distribution (KL divergence) and the NLL loss between the predicted results and the labels, using a parameter of Network To approximate the posterior distribution. The specific loss formula is as follows:
[0077]
[0078] During training, predict the next tokenx t is to use the real previous sequence x <t During inference, predicting the next token is based on the previous sequence x predicted by the model. <t .
[0079] Preferably, after S4 obtains the synthetic simulation data, it also includes the following steps: screening the synthetic simulation data according to the screening method in S2 to obtain valid data, that is, after removing abnormal data in all synthetic simulation data according to the training sample template and the large language model, the remaining synthetic simulation data is used as valid data.
[0080] In summary, the present invention proposes a model for synthesizing population information data based on reverse engineering of multi-dimensional population portraits. The model uses these simulation data not only to avoid problems such as user privacy security, small data sets, and missing key information, but also to embody the characteristics of population characteristics with the help of population portraits, and to pre-embed certain valuable information in user information data, thereby facilitating the use of simulation simulators.
[0081] At the same time, the present invention utilizes the generation capability of the large model to pre-generate a batch of pseudo sample data as sample training; uses the energy model to model the statistical characteristics of the samples, and considers the distribution of real sample characteristics in the process of constructing the energy function. Therefore, when generating simulated data, the demographic characteristics settings can be changed at will to generate conditional simulated data.
[0082] The embodiment of the present invention further provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented. It should be noted that the storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM (Read-Only Memory), a RAM (Random Access Memory), a magnetic disk or an optical disk.
[0083] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program that runs on the processor, and the processor implements the above method when executing the computer program.
[0084] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In a hardware implementation, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable storage medium, which may include a computer-readable storage medium (or a non-transitory medium) and a communication medium (or a temporary medium).
[0085] As is known to those of ordinary skill in the art, the term computer-readable storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer-readable storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and may include any information delivery medium.
[0086] Exemplarily, the computer-readable storage medium may be an internal storage unit of the electronic device of the aforementioned embodiment, such as a hard disk or memory of the electronic device. The computer-readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device.
[0087] The above are only specific implementations of the embodiments of the present invention, but the protection scope of the embodiments of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the embodiments of the present invention, and these modifications or replacements should be included in the protection scope of the embodiments of the present invention. Therefore, the protection scope of the embodiments of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for synthesizing and simulating population information data based on multi-source population portraits, characterized in that: The method comprises the following steps: S1: Determine the demographic characteristics of the study area using AOI as the dimension; S2: Construct training samples based on demographic characteristics of the study area; S3: Construct a population information synthesis model based on demographic information and training samples. The construction process includes: encoding the training sample x through an encoder to obtain a latent variable z, and training z under the guidance of demographic information u; after the training is completed, decoding it through a decoder to obtain x; the population information synthesis model is expressed as: p θ (x,z)=p α (u,z)p β (x|z); where p θ (x,z) represents the encoder, p β (x|z) represents the decoder, p α (u,z) is an energy-based model; S4: From p α After sampling (u,z) to obtain z, it is input into the decoder to obtain population information synthetic simulation data.
2. The method for synthesizing and simulating population information data based on multi-source population portraits according to claim 1, characterized in that: The encoder construction process in S3 includes: mapping the vector v to the latent space through the Bert encoder to obtain the latent variable z corresponding to x; concatenating the demographic feature information of multiple dimensions under the AOI corresponding to x and sending them to an MLP for training to obtain the latent variables of the same dimension; concatenating the latent variables to obtain the latent variable u containing the statistical information of all dimensions; The p α (u,z) are constructed into EBMs: p0(z) is the reference distribution known in advance, and Z(α) is the probability normalized distribution; Where dz is the integral expression, which means integrating z. Energy function module f α (u,z) combines z and u, and f α The implementation method of (u,z) includes: given z and u, mapping u to the same dimension as z and concatenating them.
3. The method for synthesizing and simulating population information data based on multi-source population portraits as claimed in claim 1, characterized in that: The construction process of the decoder in S3 includes: for text modeling, let x = (x (t) |x (1) ,...,x (t-1) ,z),x (t) Represents the tth token; From p α The sampling in (u,z) and pθ(z|x) is done via Langevin dynamics; α The Langevin dynamic sampling process of (u,z) is: z0~p0(z), Where T is the number of sampling steps, s is the predefined scaling in sampling, and e t are data drawn from a standard normal distribution.
4. The method for synthesizing and simulating population information data based on multi-source population portraits according to claim 1, characterized in that: After the population information synthesis model is obtained in S3, the following steps are also included: target optimization of the population information synthesis model: parameter estimation is performed using maximum likelihood, and the observed training samples are defined as (x i ,i=1,...,n), the maximum likelihood function is: The gradient update is: For the encoder, using p α (u,z) distribution, sample a z, and calculate the distance between it and the z in the prior distribution; for the decoder, use p β (x|z) distribution, calculated from<z,u> Get the NLL loss between x and the true x and use it as the loss of the decoder; During training, predict the next tokenx t is to use the real previous sequence x <t During inference, predicting the next token is based on the previous sequence x predicted by the model. <t .
5. The method for synthesizing and simulating population information data based on multi-source population portraits according to any one of claims 1 to 4, characterized in that: The process of S2 includes: generating a number of pseudo sample data, constructing a training sample template according to the demographic characteristics information of the study area, removing abnormal data from all pseudo sample data according to the training sample template and the large language model, and using the remaining pseudo sample data as training samples.
6. The method for synthesizing and simulating population information data based on multi-source population portraits as claimed in claim 5, characterized in that: The specific process of S2 includes: in a given statistical area, generate a number of pseudo sample data through the Faker package of Python, and for each AI, extract the statistical feature information of the population portrait. Input into the large language model to construct a suitable training sample template; according to the training sample template, filter out the pseudo sample data {xai1, xai2, xaim} with high confidence as the training sample of the ai; m is the number of filtered training samples.
7. The method for synthesizing and simulating population information data based on multi-source population portraits as claimed in claim 5, characterized in that: After the synthetic simulation data is obtained in S4, the following steps are also included: after removing abnormal data in all the synthetic simulation data according to the training sample template and the large language model, the remaining synthetic simulation data is used as valid data.
8. The method for synthesizing and simulating population information data based on multi-source population portraits as claimed in claim 1, characterized in that: The process of S1 includes: dividing the study area into several AOIs, and counting the multi-source population information data in each AOI; determining several relevant statistical features according to the target, and determining the probability distribution of each relevant statistical feature in the AOI according to the multi-source population information data in each AOI; and obtaining the population statistical feature information of the study area according to the probability distribution of all statistical features of each AOI.
9. The method for synthesizing and simulating population information data based on multi-source population portraits as claimed in claim 8, characterized in that: The specific process of S1 includes: taking AOI as the dimension, dividing the research area into K AOIs, and counting each AOI (a i ) within the multi-source population information data; integrate the multi-source population information data of each AOI to obtain a complete population portrait data set; select the most relevant n statistical features F= <f1,f2,...,f n >As population profile feature data; obtain a i Probability distribution of the next n statistical features get 10. A population information data synthesis system based on multi-source population portraits, characterized by: The system is used to implement the method described in any one of claims 1 to 9.
Citation Information
Cited By
Social world simulation method and system based on large model and electronic equipment
CN119808934A
