Community multilayer network generation method and system based on community connection relationship
By constructing a virtual population and using polynomial distribution and normal distribution to generate community networks, the problem of not being able to obtain micropopulation data is solved, and accurate description of interpersonal relationships within the community and analysis of dynamic changes is achieved.
Patent Information
- Application Number
- CN202411112991.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-12-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In residents' communities, due to the inability to obtain micro-population data, it is difficult for existing technologies to accurately describe interpersonal and social relationships, thus unable to establish an effective community network.
By constructing a virtual population, using polynomial distribution and normal distribution to generate family and grid structures, establish a community synthetic family network, a resident microgrid contact network and a community grid work contact network, and form a multi-layer community network.
It realizes a more accurate description of the formation and dynamic changes of interpersonal relationships within the community, fully considering the mutual influence of social relations and individual attributes, and provides statistical characteristics that match the real population.
Smart Images

Figure CN119090663A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of community management, and in particular to a method and system for generating a community multi-layer network based on community connection relationships. Background Art
[0002] One of the core aspects of social system modeling is to describe the relationships between people and their interactions. The basic idea of using complex networks to describe social relationships is to regard people in different social scenarios as nodes in the network, and the relationships between them as edges in the network. Then, networks in multiple scenarios are superimposed to transform social relationships into complex network graphs.
[0003] Network modeling within residential communities needs to take into account the relationships and interactions among people in the local area, but micro-population data are difficult to obtain directly, so it is impossible to accurately describe the interpersonal and social relationships within the community, and thus it is impossible to establish an effective community network. Summary of the invention
[0004] Purpose of the invention: The purpose of the present invention is to provide a method and system for establishing a multi-layer community network by constructing a virtual population, which can solve the problem of being unable to obtain micro-population data and help to more accurately describe the formation and dynamic changes of interpersonal relationships within the community.
[0005] Technical solution: The method for generating a community multi-layer network based on community connection relationships of the present invention comprises the following steps:
[0006] (1) Determine the number of households and establish a multinomial distribution of households with respect to household size, household composition, and age;
[0007] (2) generating corresponding family size and family composition for each family according to the polynomial distribution of residents, generating the age of the head of the household and the spouse and / or children and / or parents in combination with the family composition, and establishing a community synthetic family network;
[0008] (3) Determine the number of microgrid members and grid leaders, and establish a grid polynomial distribution of the age and management quantity of microgrid members and grid leaders;
[0009] (4) generating a corresponding age and number of households managed for each microgrid member according to the grid polynomial distribution, generating the age of the head of each household by combining the number of households and the community synthetic family network, and establishing a resident microgrid connection network according to the age of the microgrid member and the corresponding age of the head of each household;
[0010] (5) generating a corresponding age and the number of micro-grid members managed by each grid leader according to the grid polynomial distribution, and establishing a community grid work contact network according to the age of the grid leader and the age of the corresponding micro-grid member;
[0011] (6) Aggregating the community synthetic family network, the resident microgrid contact network and the community grid work contact network to obtain a community multi-layer network.
[0012] Furthermore, the multi-item distribution of residents in step (1) includes:
[0013] The first multinomial distribution for household size;
[0014] A second multinomial distribution of the age of the household head, given the household size;
[0015] The third multinomial distribution of household composition given household size and age of household head;
[0016] The fourth multinomial distribution of the age of the household head’s spouse given the age of the household head;
[0017] The fifth polynomial distribution of the age of the household head's children given the age of the household head;
[0018] The sixth multinomial distribution of the ages of the householder's parents, given the age of the householder.
[0019] Further, step (2) comprises the following steps:
[0020] Generate the corresponding family size for each family according to the first multinomial distribution;
[0021] Generate the corresponding age of the head of household for each household according to the second multinomial distribution;
[0022] Generate a corresponding family composition pattern for each family according to the third multinomial distribution;
[0023] If the family includes the spouse of the head of the household, the spouse's age is generated according to the fourth polynomial distribution; if the family includes the children of the head of the household, the children's age is generated according to the fifth polynomial distribution; if the family includes the parents of the head of the household, the parents' age is generated according to the sixth polynomial distribution;
[0024] Add the age of the head of household, the age of the spouse, and / or the age of the children, and / or the age of the parents of each generated family into the empty family list in turn;
[0025] The above steps are repeated until the number of households is reached, and the community synthetic household network is output.
[0026] Furthermore, the grid multi-item distribution in step (3) includes:
[0027] The first normal distribution of the age of microgrid workers;
[0028] The second normal distribution of the age of the grid leader;
[0029] The seventh polynomial distribution of the number of managed households under the condition of the age of the microgrid workers;
[0030] The eighth polynomial distribution of the number of microgrid managers given the age of the grid.
[0031] Further, step (4) comprises the following steps:
[0032] The age of each microgrid member is generated according to the first normal distribution;
[0033] The number of households A that each microgrid worker needs to manage is generated according to the seventh polynomial distribution;
[0034] For each microgrid member, select A household heads in the community synthetic family network;
[0035] Add the age of each microgrid member and the ages of the A household heads corresponding to the microgrid member to the empty list of resident microgrid contacts;
[0036] The above steps are repeated until the number of micro-grid members is reached, and the resident micro-grid contact network is output.
[0037] Further, step (5) comprises the following steps:
[0038] Generate each grid length age according to the second normal distribution;
[0039] Generate the number of micro-grid members B that each grid leader needs to manage according to the eighth polynomial distribution;
[0040] For each grid leader, select B microgrid members in the resident microgrid contact network;
[0041] Add the age of each grid leader and the ages of B micro-grid members corresponding to the grid leader into the empty list of community grid work contacts;
[0042] Repeat the above steps until the number of grid leaders is reached, and output the community grid work contact network.
[0043] The community multi-layer network generation system based on community connection relationship of the present invention includes:
[0044] A unit for establishing a resident multinomial distribution is used to determine the number of households and to establish a multinomial distribution of residents regarding household size, household composition and age;
[0045] A community synthetic family network establishment unit is used to generate a corresponding family size and family composition for each family according to the resident polynomial distribution, generate the age of the head of the household and the spouse and / or children and / or parents in combination with the family composition, and establish a community synthetic family network;
[0046] A grid polynomial distribution establishment unit is used to determine the number of micro-grid members and grid leaders, and to establish a grid polynomial distribution regarding the age and management quantity of the micro-grid members and grid leaders;
[0047] A resident microgrid contact network establishing unit is used to generate a corresponding age and number of households managed for each microgrid member according to the grid polynomial distribution, generate the age of the head of each family in combination with the number of households and the community synthetic family network, and establish a resident microgrid contact network according to the age of the microgrid member and the corresponding age of the head of each family;
[0048] A community grid work contact network establishing unit, used to generate a corresponding age and the number of micro-grid members managed for each grid leader according to the grid polynomial distribution, and establish a community grid work contact network according to the age of the grid leader and the age of the corresponding micro-grid member;
[0049] The community multi-layer network establishing unit is used to aggregate the community synthetic family network, the resident micro-grid contact network and the community grid work contact network to obtain a community multi-layer network.
[0050] Furthermore, the multiple distribution of residents includes:
[0051] The first multinomial distribution for household size;
[0052] A second multinomial distribution of the age of the household head, given the household size;
[0053] The third multinomial distribution of household composition given household size and age of household head;
[0054] The fourth multinomial distribution of the age of the household head’s spouse given the age of the household head;
[0055] The fifth polynomial distribution of the age of the household head's children given the age of the household head;
[0056] The sixth polynomial distribution of the age of the householder's parents given the age of the householder;
[0057] The grid multi-item distribution includes:
[0058] The first normal distribution of the age of microgrid workers;
[0059] The second normal distribution of the age of the grid leader;
[0060] The seventh polynomial distribution of the number of managed households under the condition of the age of the microgrid workers;
[0061] The eighth polynomial distribution of the number of microgrid managers given the age of the grid.
[0062] The electronic device described in the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is loaded into the processor, the method for generating a community multi-layer network based on community connection relationships is implemented.
[0063] The computer-readable storage medium of the present invention stores a computer program, and when the computer program is executed by a processor, the method for generating a community multi-layer network based on community connection relationships is implemented.
[0064] Beneficial effects: Compared with the prior art, the advantages of the present invention are: the present invention makes full use of the technology of synthetic population, takes into account the mutual influence between social relations and individual attributes, constructs a virtual population, whose statistical characteristics match the real population, and establishes a community multi-layer network based on community connection relationships based on the virtual population, which helps to more accurately describe the formation and dynamic changes of interpersonal relationships within the community. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 A flow chart of a method for generating a community multi-layer network according to the present invention;
[0066] Figure 2 This is a schematic diagram of the community multi-layer network structure of the present invention. DETAILED DESCRIPTION
[0067] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.
[0068] In order to overcome the limitations of obtaining corresponding micro-population data, this method uses the technology of synthetic population to construct a virtual population whose statistical characteristics match the real population, thereby meeting the needs of building a community multi-layer network based on community connection relationships. Because modeling the social relations between community residents requires considering the mutual influence between social relations and individual attributes, in the modeling process, the model agent contains relevant attributes such as social statistics and behavioral characteristics. In order to obtain these attribute characteristics, detailed micro-population data is required, but due to privacy protection and legal restrictions, these data cannot be directly obtained. Therefore, the present invention uses a synthetic population technology to generate a community multi-layer network based on community connection relationships.
[0069] like Figure 1 As shown, the method for generating a community multi-layer network based on community connection relationships of the present invention includes the following steps.
[0070] Step 1: Generate multiple resident polynomial distributions based on the collected and statistical resident community micro-data and the number of households N required to be generated H; Resident community micro data includes resident_id, age, gender and house_id. The resident multinomial distribution includes the following 6 types, as shown in Table 1.
[0071] Table 1
[0072]
[0073]
[0074] The establishment method of each multinomial distribution is as follows.
[0075] (1.1)M(h s ) represents the family size h s The multinomial distribution of is given by:
[0076]
[0077] In formula #(1), N is the number of households. Assume that there are n possible household sizes, and record their occurrence times as random variables X1, X2, …, X n ,k1,k2,…,k n is the number of occurrences of each household size category, p1,p2,…,p n is the probability of each family size category occurring. X1+X2+…+X n =k1+k2+…+k n =N, p1+p2+…+p n =1.
[0078] (1.2) Indicates that at a given family size Under the condition that hm The multinomial distribution of is given by:
[0079]
[0080] In formula #(2), N is the number of household heads. Assume that there are n possible age groups, and record their occurrence times as random variables X1, X2, …, X n ,k1,k2,…,k n is the number of occurrences of each age group, p1,p2,…,p n is the probability of each age group appearing, The condition is that the family size is X1+X2+…+X n =k1+k2+…+k n =N, p1+p2+…+p n=1.
[0081] (1.3) Indicates that at a given family size and age of household head Under the condition of , the multinomial distribution of family composition is as follows:
[0082]
[0083] In formula #(3), N is the number of households. Assume that there are n possible household composition patterns, and record their occurrence times as random variables X1, X2, …, X n ,k1,k2,…,k n is the number of occurrences of each family composition pattern, p1, p2, …, p n is the probability of each family composition pattern occurring, The condition is that the family size is The condition is that the age of the head of household is X1+X2+…+X n =k1+k2+…+k n =N, p1+p2+…+p n =1.
[0084] (1.4) Indicates that at a given age of the household head Under the condition that sp The multinomial distribution of is given by:
[0085]
[0086] In formula #(4), N is the number of spouses. Assume that there are n possible age groups, and record their occurrence times as random variables X1, X2, …, X n ,k1,k2,…,k n is the number of occurrences of each age group, p1,p2,…,p n is the probability of each age group appearing, The condition is that the age of the head of household is
[0087] (1.5) Indicates that at a given age of the household head Under the condition that the age of the children of the head of the household is c The multinomial distribution of is the same as #(4), but N represents the number of children.
[0088] (1.6) Indicates that at a given age of the household head Under the condition that p The multinomial distribution of is the same as #(4), but N represents the number of parents.
[0089] Conditional Multinomial Distribution describes the probability distribution of the number of occurrences of multiple categories of events under certain given conditions. The present invention uses conditional multinomial distribution to generate member attributes such as the age of the household head, the composition pattern of the family, and the ages of other family members of the household head.
[0090] The steps of parameter estimation are as follows: For example, first, from the micro data of the residential community, we count the age of each age group at a given household head age. This involves counting the number of occurrences of each age group k1, k2, …, k n Then, using the observed frequency data, calculate the probability p1, p2, …, p for each age group n This embodiment uses maximum likelihood estimation or other statistical methods to estimate these probabilities. The same method can be used to estimate the parameters of other multinomial distributions.
[0091] Step 2: Multinomial distribution M(h) based on the input household size s ) Generate the corresponding family size for the i-th family through a for loop
[0092] Then, according to the multinomial distribution of the age of the household head under the condition of the i-th household size Generate the corresponding age of the head of household for the i-th household
[0093] Then, according to the multinomial distribution of the family composition pattern under the condition of the i-th family size and the age of the household head, Generate the corresponding family composition model for the i-th family If the i-th family composition pattern includes the spouse of the head of the household, then the multinomial distribution of the spouse's age given the age of the head of the i-th family is Generate the corresponding spouse age for the i-th family Similarly, if the ith family model contains children of the head of the household, then the multinomial distribution of the children's ages given the age of the head of the ith family is Generate the corresponding children's ages for the i-th family If the ith family model contains the parents of the household head, then the multinomial distribution of the parents' ages given the age of the household head of the ith family is Generate the corresponding parent age for the i-th family
[0094] Then, the head of household age, spouse age, children age, and parents age of the generated ith family are added to the ith family empty list. Until the Nth H The for loop completes the generation of the last family, and the for loop ends to output the final community synthetic family network Net h .
[0095] Step 3: Set the number of microgrid members N MG and the number of grid lengths N G , grid polynomial distribution is generated based on grid community micro data, which includes the ages of micro grid members and grid leaders; grid polynomial distribution includes the following four types, as shown in Table 2.
[0096] Table 2
[0097]
[0098] The establishment method of each multinomial distribution is as follows.
[0099] (3.1)N(a g ) represents the age of the grid length a g The normal distribution of is as follows:
[0100]
[0101] In formula #(5), μ represents the mean age of the grid length, σ 2 Represents the variance of the grid leader age. The specific value is determined according to the grid leader age of the grid community micro data.
[0102] (3.2)N(a mg ) represents the age of the microgrid member mg The normal distribution of is as follows:
[0103]
[0104] In formula #(6), μ represents the mean age of microgrid members, σ 2 Represents the variance of the age of microgrid members. The specific value is determined according to the age of microgrid members in the micro data of the grid community.
[0105] Normal distribution is also called Gaussian distribution, which is one of the most common continuous probability distributions in statistics and is usually used to describe the distribution of various phenomena in nature. The present invention uses normal distribution to generate the age of microgrid members and the age of grid leaders.
[0106] The steps of parameter estimation are as follows: Take the age of grid leaders as an example. First, collect the age data of grid leaders from the grid community micro data. Then, calculate the mean μ and variance σ of these collected grid leader age data. 2 Then, using the maximum likelihood estimation method, the mean and variance of these sample data are used as the population mean μ and variance σ 2 The goal of maximum likelihood estimation is to find the parameter value that maximizes the probability of the observed data. The same method can be used to estimate the parameters of other normal distributions.
[0107] (3.3) Indicates the age of a given microgrid member Under the condition of rm The multinomial distribution of is given by:
[0108]
[0109] In formula #(7), N is the number of households. Assume that there are n possible numbers of managed households, and record their occurrence times as random variables X1, X2, …, X n ,k1,k2,…,k n is the number of occurrences of each type of managed households, p1, p2, …, p n is the probability of occurrence of each number of managed households, The condition is that the age of a given microgrid member is X1+X2+…+X n =k1+k2+…+k n =N, p1+p2+…+p n =1.
[0110] (3.4) Indicates the age of a given grid Under the condition of gm The multinomial distribution of is given by:
[0111]
[0112] In formula #(8), N is the number of microgrid members. Assume that there are n possible numbers of management microgrid members, and record their occurrence times as random variables X1, X2, …, X n ,k1,k2,…,k n is the number of times each type of management microgrid member appears, p1, p2, …, p n is the probability of each type of management microgrid member appearing, The condition is that the age of the given grid is X1+X2+…+Xn =k1+k2+…+k n =N, p1+p2+…+p n =1.
[0113] Step 4: According to the normal distribution N(a) of the input microgrid member age mg ) Generate the age of the i-th microgrid member through a for loop
[0114] Then, according to the multinomial distribution of the number of managed households under the condition of the age of the i-th microgrid worker, Generate the number of households that need to be managed for the i-th microgrid member
[0115] Then, through the second layer of for loop, the home networks generated previously are selected one by one a householder;
[0116] Then, the generated i-th microgrid member age, The age of the household head is added to the empty list of contacts of the i-th resident microgrid Until the Nth MG The next loop completes the generation of the last resident microgrid connection, and the for loop ends to output the final resident microgrid connection network Net rm .
[0117] Step 5: According to the normal distribution of the input grid length age N(a g ) Generate the i-th grid length age through a for loop
[0118] Then, according to the multinomial distribution of the number of microgrid managers under the condition of the age of the i-th grid leader, Generate the number of micro-grid members required to be managed by the i-th grid leader
[0119] Then, through the second layer of for loop, the previously generated resident microgrid contact network is selected in turn microgrid members;
[0120] Then, the generated i-th grid length, The age of each microgrid member is added to the empty list of work contacts of the i-th community grid. Until the Nth G The for loop completes the generation of the last community grid work contact, and the for loop ends to output the final community grid work contact network Net gm .
[0121] Step 6: Aggregate the household network, the resident microgrid contact network, and the community grid work contact network to generate the final community multi-layer network Net, whose structure is as follows: Figure 2 shown.
[0122] The community multi-layer network generation system based on community connection relationship of the present invention includes:
[0123] A unit for establishing a resident multinomial distribution is used to determine the number of households and to establish a multinomial distribution of residents regarding household size, household composition and age;
[0124] A community synthetic family network establishment unit is used to generate a corresponding family size and family composition for each family according to the resident polynomial distribution, generate the age of the head of the household and the spouse and / or children and / or parents in combination with the family composition, and establish a community synthetic family network;
[0125] A grid polynomial distribution establishment unit is used to determine the number of micro-grid members and grid leaders, and to establish a grid polynomial distribution regarding the age and management quantity of the micro-grid members and grid leaders;
[0126] A resident microgrid contact network establishing unit is used to generate a corresponding age and number of households managed for each microgrid member according to the grid polynomial distribution, generate the age of the head of each family in combination with the number of households and the community synthetic family network, and establish a resident microgrid contact network according to the age of the microgrid member and the corresponding age of the head of each family;
[0127] A community grid work contact network establishing unit, used to generate a corresponding age and the number of micro-grid members managed for each grid leader according to the grid polynomial distribution, and establish a community grid work contact network according to the age of the grid leader and the age of the corresponding micro-grid member;
[0128] The community multi-layer network establishing unit is used to aggregate the community synthetic family network, the resident micro-grid contact network and the community grid work contact network to obtain a community multi-layer network.
[0129] The electronic device described in the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is loaded into the processor, the method for generating a community multi-layer network based on community connection relationships is implemented.
[0130] The computer-readable storage medium of the present invention stores a computer program, and when the computer program is executed by a processor, the method for generating a community multi-layer network based on community connection relationships is implemented.
[0131] The computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, flash memory, or any other medium that can be used to store the desired program code in the form of instructions or data structures and that can be accessed by a computer.
[0132] The processor is used to execute the computer program stored in the memory to implement each step of the method involved in the above embodiment.
Claims
1. A method for generating a community multi-layer network based on community connection relations, characterized in that: The steps include: (1) Determine the number of households and establish a multinomial distribution of households with respect to household size, household composition, and age; (2) generating corresponding family size and family composition for each family according to the polynomial distribution of residents, generating the age of the head of the household and the spouse and / or children and / or parents in combination with the family composition, and establishing a community synthetic family network; (3) Determine the number of microgrid members and grid leaders, and establish a grid polynomial distribution of the age and management quantity of microgrid members and grid leaders; (4) generating a corresponding age and number of households managed for each microgrid member according to the grid polynomial distribution, generating the age of the head of each household by combining the number of households and the community synthetic family network, and establishing a resident microgrid connection network according to the age of the microgrid member and the corresponding age of the head of each household; (5) generating a corresponding age and the number of micro-grid members managed by each grid leader according to the grid polynomial distribution, and establishing a community grid work contact network according to the age of the grid leader and the age of the corresponding micro-grid member; (6) Aggregating the community synthetic family network, the resident microgrid contact network and the community grid work contact network to obtain a community multi-layer network.
2. The method for generating a community multi-layer network based on community connection relationships according to claim 1, characterized in that: The multi-resident distribution in step (1) includes: The first multinomial distribution for household size; A second multinomial distribution of the age of the household head, given the household size; The third multinomial distribution of household composition given household size and age of household head; The fourth multinomial distribution of the age of the household head’s spouse given the age of the household head; The fifth polynomial distribution of the age of the household head's children given the age of the household head; The sixth multinomial distribution of the ages of the householder's parents, given the age of the householder.
3. The method for generating a community multi-layer network based on community connection relationships according to claim 2, characterized in that: Step (2) comprises the following steps: Generate the corresponding family size for each family according to the first multinomial distribution; Generate the corresponding age of the head of household for each household according to the second multinomial distribution; Generate a corresponding family composition pattern for each family according to the third multinomial distribution; If the family includes the spouse of the head of the household, the spouse's age is generated according to the fourth polynomial distribution; if the family includes the children of the head of the household, the children's age is generated according to the fifth polynomial distribution; if the family includes the parents of the head of the household, the parents' age is generated according to the sixth polynomial distribution; Add the age of the head of household, the age of the spouse, and / or the age of the children, and / or the age of the parents of each generated family into the empty family list in turn; The above steps are repeated until the number of households is reached, and the community synthetic household network is output.
4. The method for generating a community multi-layer network based on community connection relationships according to claim 1, characterized in that: The grid multinomial distribution in step (3) includes: The first normal distribution of the age of microgrid workers; The second normal distribution of the age of the grid leader; The seventh polynomial distribution of the number of managed households under the condition of the age of the microgrid workers; The eighth polynomial distribution of the number of microgrid managers given the age of the grid.
5. The method for generating a community multi-layer network based on community connection relationships according to claim 4, characterized in that: Step (4) comprises the following steps: The age of each microgrid member is generated according to the first normal distribution; The number of households A that each microgrid worker needs to manage is generated according to the seventh polynomial distribution; For each microgrid member, select A household heads in the community synthetic family network; Add the age of each microgrid member and the ages of the A household heads corresponding to the microgrid member to the empty list of resident microgrid contacts; The above steps are repeated until the number of micro-grid members is reached, and the resident micro-grid contact network is output.
6. The method for generating a community multi-layer network based on community connection relationships according to claim 5, characterized in that: Step (5) comprises the following steps: Generate each grid length age according to the second normal distribution; Generate the number of micro-grid members B that each grid leader needs to manage according to the eighth polynomial distribution; For each grid leader, select B microgrid members in the resident microgrid contact network; Add the age of each grid leader and the ages of B micro-grid members corresponding to the grid leader into the empty list of community grid work contacts; Repeat the above steps until the number of grid leaders is reached, and output the community grid work contact network.
7. A community multi-layer network generation system based on community connection relations, characterized in that: include: A unit for establishing a resident multinomial distribution is used to determine the number of households and to establish a multinomial distribution of residents regarding household size, household composition and age; A community synthetic family network establishment unit is used to generate a corresponding family size and family composition for each family according to the resident polynomial distribution, generate the age of the head of the household and the spouse and / or children and / or parents in combination with the family composition, and establish a community synthetic family network; A grid polynomial distribution establishment unit is used to determine the number of micro-grid members and grid leaders, and to establish a grid polynomial distribution regarding the age and management quantity of the micro-grid members and grid leaders; A resident microgrid contact network establishing unit is used to generate a corresponding age and number of households managed for each microgrid member according to the grid polynomial distribution, generate the age of the head of each family in combination with the number of households and the community synthetic family network, and establish a resident microgrid contact network according to the age of the microgrid member and the corresponding age of the head of each family; A community grid work contact network establishing unit, used to generate a corresponding age and the number of micro-grid members managed for each grid leader according to the grid polynomial distribution, and establish a community grid work contact network according to the age of the grid leader and the age of the corresponding micro-grid member; The community multi-layer network establishing unit is used to aggregate the community synthetic family network, the resident micro-grid contact network and the community grid work contact network to obtain a community multi-layer network.
8. The community multi-layer network generation system based on community connection relationship according to claim 7 is characterized in that: The multiple distribution of residents includes: The first multinomial distribution for household size; A second multinomial distribution of the age of the household head, given the household size; The third multinomial distribution of household composition given household size and age of household head; The fourth multinomial distribution of the age of the household head’s spouse given the age of the household head; The fifth polynomial distribution of the age of the household head's children given the age of the household head; The sixth polynomial distribution of the age of the householder's parents given the age of the householder; The grid multi-item distribution includes: The first normal distribution of the age of microgrid workers; The second normal distribution of the age of the grid leader; The seventh polynomial distribution of the number of managed households under the condition of the age of the microgrid workers; The eighth polynomial distribution of the number of microgrid managers given the age of the grid.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the computer program is loaded into a processor, the method for generating a community multi-layer network based on community connection relationships according to any one of claims 1 to 6 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for generating a community multi-layer network based on community connection relationships according to any one of claims 1 to 6 is implemented.
